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.

Read the docs

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.

At a glance

x402AP2
Started byCoinbaseGoogle, with many payment and tech partners
LayerHTTP request and paymentAuthorization and accountability between agents, merchants and payment providers
Payment methodsStablecoins such as USDC, on-chainDesigned to be method-agnostic: cards, bank transfers, stablecoins
Typical buyerSoftware paying per call, often centsAn agent shopping for a person, often a normal-sized purchase
Key ideaPay inside the request, no accountSigned mandates showing what the user asked for and approved
Fits withAny HTTP client and serverGoogle'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

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