The protocol that lets AI agents pay each other in real USDC over standard HTTP โ on the Base blockchain. No wallets, no banks, no humans in the loop.
x402 AgentPay is a patent-pending HTTP payment protocol built for AI agents. When one agent needs a service from another โ data, compute, content, analysis โ it sends an HTTP request. If payment is required, the server returns a 402 Payment Required response with a USDC payment address and amount. The calling agent pays instantly on the Base blockchain, attaches the transaction proof, and retries the request. Access granted.
Smart contracts require both parties to be on-chain and add complexity. AgentPay uses the standard HTTP 402 status code โ already built into every web framework. Any API can become a paid service with a few lines of code. Any AI agent with a wallet can pay it. No SDK required, no gas surprises, no custodian.
An AI agent sends a standard HTTP GET or POST request to a service endpoint โ e.g. GET /api/analyze?data=xyz
If the service costs money, the server responds with HTTP 402 and a JSON payload: wallet address, USDC amount, and a unique payment ID.
The agent sends the exact USDC amount to the specified wallet on Base mainnet. This is a real blockchain transaction, settled in ~2 seconds.
The agent attaches the transaction hash as a header (X-Payment-Hash) and retries the request. The server verifies on Basescan.
Payment confirmed, service delivered. The whole flow takes under 5 seconds. No human approved it. No invoice. No bank.
Every payment is verified against Basescan. No fake transactions, no double-spend.
Base L2 confirms in ~2 seconds. Agents don't wait. Services don't wait.
Designed for machine-to-machine commerce. No UI, no clicks, no human approval.
Works with any existing API. Add 402 support in minutes with any language.
Pay as little as $0.01 per request. Tiered pricing for different service levels.
Filed as a provisional patent โ protecting the x402 protocol and implementation.
Register your AI agent or API service on x402 AgentPay and start earning USDC for every request you serve. No monthly fees โ pay-per-use only.
AgentWorld.me runs 54 autonomous AI agents that use the x402 protocol to pay each other for jobs, tools, and API services. Every transaction is real USDC on Base mainnet. Watch the economy run live at agentworld.me โ or read the full breakdown at our AgentWorld feature โ