Direct answer
x402 Payments for MCP Tools
For x402 agent payments on MCP, and for how AI agents pay for things in general, the flow is short: a paid MCP tool answers with a 402 payment request, the agent pays USDC on Base and retries the same call, and the call can carry a verifiable receipt. The price tag travels inside the HTTP exchange, so an agent with a wallet can pay mid job without a checkout page, a card, or a person in the loop. This page walks the flow field by field, then separates the payment record from the work record.
Updated October 24, 2026.
How the 402 flow works
HTTP 402 is the Payment Required status code. x402 gives it a working meaning for machines: instead of an error page, the 402 response carries a machine readable invoice.
1. Call without payment. The agent sends the ordinary MCP tool call, exactly as it would to a free tool.
2. Read the request to pay. The server answers 402 with the terms for that call.
3. Check the terms. The agent compares the amount, asset, and destination with its balance and its spending policy. That policy check is the budget gate.
4. Pay and retry. The agent signs the payment and retries the same call with the payment attached in the header.
5. Settle and serve. The server verifies the payment, settles it, and returns the tool result, with a verifiable receipt for the call.
Zambo is the verifiable work layer for AI. Its MCP server at https://zambo.dev/mcp runs this flow across 153 tools total: free calls run free, paid access is answered with a 402, and every call leaves its receipt either way.
What is x402 for AI agents?
For AI agents, x402 is a payment protocol built on the HTTP 402 status code that lets a server ask for payment inside the request itself. The server returns a machine readable challenge naming the amount, the asset, the network, and where to pay, and the agent pays in USDC on Base and retries the same request with the payment attached. Zambo, the verifiable work layer for AI, uses x402 for the Day Pass at $0.99 in USDC on Base for 24 hours, and each call the payment unlocks still returns its own AER-1 receipt under draft-zambo-aer1-26. Read the live challenge fields on the sibling hub page x402 agent payments.
What the server sends
The challenge names everything the client needs and nothing it does not. A real Day Pass challenge captured from the live endpoint decoded to these accepted terms:
{ "x402Version": 2, "error": "Payment required", "human_url": "https://zambo.dev/day-pass", "accepts": [{ "scheme": "exact", "network": "eip155:8453", "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "amount": "990000", "payTo": "0xb753be5Eac5B29c711051DfF91279834e9C9b9AC", "maxTimeoutSeconds": 900 }] }
Read it field by field. network eip155:8453 is Base. asset is the USDC contract on Base. amount 990000 is in the smallest unit of the asset: USDC has six decimals, so 990000 is $0.99. payTo is the destination wallet. maxTimeoutSeconds 900 is how long the signed authorization stays valid. human_url is the path for a person, covered in the last section. Terms are read from the live response at call time, not from documentation, so a price or destination change is picked up on the next call.
What the client does
The client side is the wallet side. The agent holds USDC on Base, reads the challenge, and decides under its own policy whether to answer it. If it pays, it signs an authorization for the exact amount and destination named, then retries the identical call with the payment attached. The server does the verification and settlement; the agent does not need an account, an API key purchase, or a billing portal.
The same handshake works when the seller is another agent. The seller is whoever serves an endpoint and names a payTo. The buyer is whoever holds the wallet and signs. Nothing in the flow requires the seller to be a company or the buyer to be a customer, which is why agent to agent payment uses the same steps as an agent paying an API.
Recording the payment reference in a receipt
Payment and work are two records for two questions, and they should travel together without being confused for each other.
The payment record answers: what did access cost, and did the money move? It carries the amount, the asset, the destination, and the settlement reference.
The verifiable receipt answers: what did the agent actually run, and is this the real result? On Zambo, each call mints an AER-1 receipt at call time, following AER-1, an IETF Internet-Draft (draft-zambo-aer1-26). The receipt can carry the payment reference for the call it belongs to, so spend and execution can be reconciled later instead of trusted. Anyone can check a receipt free at zambo.dev/verify/, for example this checkable worked example: zambo.dev/run/28c79cde-20a0-48a3-b4ec-e5d0e3ac104d.
Keep the distinction: a receipt proves the saved result was not changed after the fact. A payment reference inside it proves which payment unlocked that call. Neither one, alone, proves the other job was done well.
Per-call pricing and the Day Pass alternative for humans
x402 suits per call pricing because the price is quoted per request, at request time. A tool can be free up to a daily limit, priced per call after that, or covered by a pass, and the 402 is only sent when payment is actually due.
On Zambo, the common agent purchase is the Day Pass: $0.99 one time for 24 hours, paid in USDC on Base through the 402 flow. Humans get the same pass a simpler way: open zambo.dev/day-pass/ and pay $0.99 by PayPal or card through PayPal, no wallet needed. Ongoing use is the Zambo Pass at $29 for 30 days, one payment, and $19 for 30 days for $ZAMBO holders. A Lifetime Pass is $250, one payment for good. Work handed between people or AIs can travel as one record with Zambo handover, and the day can be reviewed in zambo.dev/today.
What a rejected payment leaves behind
Rejection is part of the flow, and it leaves a specific trail. Three cases, kept separate:
The agent policy refuses the challenge. The agent reads the 402 terms, decides the amount, asset, or destination is outside its spending policy, and does not sign. Nothing settles, no access is granted, and there is no payment to refund. What remains is the challenge itself: the quoted terms, which the agent should keep with the job record as the reason the call stopped.
The server refuses the signed payment. The live Day Pass challenge states the retry policy plainly: a refused invalid signature is retryable with a newly signed authorization, a consumed nonce or a prior signature must never be reused, and an expired challenge should be requested fresh. The Day Pass also never activates without a verified transfer, so a refused payment buys nothing and charges nothing that settles. The correct next step is a fresh challenge and a fresh signature, not a resend of the failed one.
The agent calls anyway, without valid access. On Zambo, that call is rejected, and the rejection still issues an AER-1 receipt, because receipts issue for rejected calls too. The trail therefore shows the attempt and its outcome instead of a silent gap.
Real receipts minted on October 24, 2026, each returning HTTP 200 when checked for this update:
- zambo.dev/run/4657c609: a successful paid tier style tool call, a live price lookup. Status: success.
- zambo.dev/run/49133b10: a successful capability search. Status: success.
- zambo.dev/run/99284374: a deliberately invalid call, sent with its required input missing and rejected before execution. Status: error receipt. This is the record shape a rejected attempt leaves: visible, timestamped, and checkable, rather than missing.
Keep the accounting straight: a payment record shows money moved or did not, a receipt shows what a call did or that it was rejected, and neither one proves the work a successful payment unlocked was correct.
Honest limits
x402 is a protocol specification for machine payments over HTTP, not a finalized standard, and AER-1 is an IETF Internet-Draft (draft-zambo-aer1-26), not a finalized standard. A payment record proves the payment happened and nothing about the quality of the work it unlocked. An agent still needs a wallet, funds, and a spending policy: Zambo does not approve the spend, the agent policy does, and a challenge the policy rejects stays unpaid. Prices and terms can change between calls, so agents should always pay against the live challenge they just received.
Frequently asked questions
How do AI agents pay for things?
An agent pays by answering a payment request inside the call itself. The server replies with HTTP 402 and the terms: the amount, the asset, the network, and where to pay. The agent checks the terms against its wallet and spending policy, signs a USDC payment on Base, and retries the same call with the payment attached. The server verifies the payment, settles it, and serves the call. No checkout page, no card, and no human approval step is built into the flow.
What is x402 in one sentence?
x402 is a payment protocol built on the HTTP 402 Payment Required status code: the server answers an unpaid request with a machine readable challenge naming the amount, the asset, the network, and where to pay, and the client pays and retries the same request with the payment attached.
What does the server send in a 402 response?
The server sends the payment terms the client needs to pay: the scheme, the network, the asset, the amount in the smallest unit of that asset, the payTo destination, and a time limit for the signed authorization. On Zambo the same response also carries a human_url, so a person who reaches the same endpoint can pay by card through PayPal instead of with a wallet.
Does paying prove the agent did the work?
No. A payment record proves the payment happened: the amount, the asset, the destination, and the settlement. It says nothing about what the agent did with the access it bought. That is a different record: the verifiable receipt for the call itself, which proves the saved result was not changed after the fact. Keep the two records separate, one for the money and one for the work.
What is the Day Pass alternative for humans?
A person opens https://zambo.dev/day-pass/ and pays the same $0.99 one time by PayPal or card through PayPal, with no wallet needed, for 24 hours of access. Agents pay USDC on Base via x402. Humans pay through PayPal. Ongoing use is the Zambo Pass at $29 for 30 days, one payment, and $19 for 30 days for $ZAMBO holders. A Lifetime Pass is $250, one payment for good.
What happens if an agent payment is rejected?
It depends where the rejection happens. If the agent spending policy refuses the 402 challenge, nothing is signed, nothing settles, and no access is granted; the challenge terms remain as the record of why the call stopped. If the server refuses a signed payment, for example an invalid signature or a reused nonce, the payment does not settle and the Day Pass never activates without a verified transfer; the fix is a fresh challenge and a newly signed authorization, never a resend of the failed signature. If the agent then calls without valid access, that call is rejected and, on Zambo, the rejected call still issues an AER-1 receipt, so the attempt is on the record.
What is x402 for AI agents?
x402 is a payment pattern built on the HTTP 402 status code: a server answers a request with payment terms, the agent pays, and the call proceeds. For agents it removes the account step from buying API access, because the payment travels with the request itself. On Zambo the terms are stated in the challenge: USDC on Base, x402 version 2, exact scheme, and a Day Pass activates when the transfer verifies.
How can AI agents pay for APIs?
Three routes cover most of the field: a human buys access and hands the agent a key; the agent works under a prepaid pass; or the agent pays per call with a protocol like x402. Zambo supports the second and third: a Day Pass at $0.99 for 24 hours, and agent-side payment in USDC on Base through x402, so an agent that reaches the day's free limit can buy its own way forward without a human at a checkout.
Which AI tool platforms accept crypto payments from agents?
Platforms that speak x402 accept payment inside the request flow itself; on Zambo that payment is USDC on Base. The practical test for any platform is whether the payment leaves a record tied to the work: on Zambo the payment reference is written into the receipt for the call it opened, so the spend and the work it bought can be checked together later.
Related
- AI agent receipts: how the record for x402 payments for mcp tools is kept
- The x402 hub on zambo.dev
- The Zambo Day Pass: what $0.99 of agent access buys
- Payment receipts vs execution receipts
- How to verify an AER-1 receipt
- Agent spending limits: how to cap what an agent can pay
- Verify a receipt right now
- Get a Day Pass
- My client wants a payment plan for an invoice they cannot pay all at once. How do I set it up?
- How to audit what my AI agent did after the session
- How to let my AI agent buy API access itself
- How much does it cost to run an AI agent for a day?
- Which AI tool platforms accept crypto payments from agents
- What is the cheapest way to pay for AI agent API calls?
- Can I pay per AI tool call instead of a monthly subscription?