How AI agents can pay each other with x402
x402 lets AI agents buy what they need mid-task, making agent-to-agent and machine-to-machine payments practical. In most cases, one agent pays for a service that another agent, or the company behind it, sells through a protocol endpoint.
- Paying for APIs, AI models, and digital tools
An agent reads the 402 response, checks the price against its budget, and pays in USDC without creating an account. Linkup and Spider already sell web search and crawling this way, as pay-per-use API payments on Base.
- Buying data and accessing paid resources
Data providers can charge per query instead of selling monthly plans, so agents pay only for the data they use. BlockVision, for example, sells Monad blockchain data for $0.005 to $0.02 per call with no sign-up.
- Enabling agent-to-agent service marketplaces
An agent that translates, summarizes, or audits code can sell that skill per task through a protocol endpoint, a new route to AI agent monetization. Discovery is still early: directories like the x402 Bazaar exist, but full marketplaces with reputation and dispute handling are still being built.
- Supporting multi-step autonomous workflows
A research agent might buy search results, on-chain data, and a chart from three providers, paying a few cents each in stablecoins. Autonomous AI payments like these need a per-task budget, approved providers, and safe retry logic, all set in the agent and its wallet rather than in the protocol.