x402 vs AP2 (Agent Payments Protocol)
x402 and AP2 work at different layers: x402 is a way to pay for a single HTTP request: the server answers 402 with a price and the client sends a signed stablecoin payment with the retry. AP2, Google's Agent Payments Protocol, is about trust and authorization: it gives an agent signed proof (mandates) that a person approved a purchase, and it's designed to work with cards, bank transfers and stablecoins. They aren't rivals, and AP2 even has an extension that uses x402 for the crypto part.
The question each one answers
Put another way, x402 is plumbing for moving money per request, and AP2 is paperwork that proves consent. A purchase can use one, the other, or both.
- x402: "How does this request get paid, right now, without an account?" It defines the 402 answer, the payment header and how the server verifies and settles the payment.
- AP2: "How do the merchant, the payment provider and the bank know a human really wanted this?" It defines signed records of what the user asked for and approved, which travel with the purchase.
At a glance
| x402 | AP2 | |
|---|---|---|
| Started by | Coinbase | Google, with many payment and tech partners |
| Layer | HTTP request and payment | Authorization and accountability between agents, merchants and payment providers |
| Payment methods | Stablecoins such as USDC, on-chain | Designed to be method-agnostic: cards, bank transfers, stablecoins |
| Typical buyer | Software paying per call, often cents | An agent shopping for a person, often a normal-sized purchase |
| Key idea | Pay inside the request, no account | Signed mandates showing what the user asked for and approved |
| Fits with | Any HTTP client and server | Google's Agent2Agent (A2A) protocol and MCP |
What a mandate is, in plain words
AP2 describes an intent mandate (the user's instructions, for example "buy these concert tickets if they drop below a set price") and a cart mandate (the user's approval of an exact basket and price). Both are signed, so if something goes wrong there's a record of who authorized what.
That matters most when a person's card or bank account is involved, because card networks and banks need to decide who is liable. For a $0.01 API call paid from an agent's own wallet, that level of paperwork is usually more than the job needs.
Which one to build on
- You sell an API or data per request to software: x402 is the direct fit, and it works today with any x402 v2 client.
- You run an agent that buys things for people with their own payment methods: look at AP2, because the consent trail is the hard part.
- You need both: an AP2 flow can settle the crypto part with x402, so learning x402 isn't wasted either way.
What iamai.markets supports
Our 8 pay-per-call APIs use x402 v2, paid in USDC on Base, from $0.01 per call. We don't implement AP2 mandates. For purchases on behalf of a person, our MCP server returns a card checkout page that the person completes, and agent accounts have spending limits that can only be raised after a 24-hour wait.
Questions
Is AP2 a competitor to x402?
Not really. AP2 covers authorization and consent across payment methods; x402 is one way to move the money. Google and Coinbase have described them working together.
Can I pay an x402 API without AP2?
Yes. x402 needs only an x402 client and a wallet with the right token. AP2 isn't involved.
Does AP2 move money by itself?
No. It carries proof of what was authorized; the payment still goes through a card network, a bank or a blockchain.
Related
Updated 2026-12-01