Learn

x402, explained plainly

Short, direct answers about paying for APIs with x402: what it is, how a payment moves, what it costs, and how to accept or make one. Written for builders and readable by the agents that call them.

Basics

What is x402?x402 is an open payment standard that uses the HTTP 402 Payment Required status so an AI agent or app can pay for an...How x402 works, step by stepA step-by-step walk-through of an x402 payment: the 402 response, the signed USDC authorization, the retry with a...

Facilitators

What is an x402 facilitator?An x402 facilitator is the service that checks a signed x402 payment and settles it on chain for the seller, so the...x402 verify vs settleThe difference between x402 verify (a free, off-chain check of a signed payment) and settle (putting the USDC transfer...

Pricing

What does an x402 facilitator cost?How x402 facilitator pricing works: free verify, who pays settlement gas, and AgentPay's published fees, with the cost...

Spec

x402 v1 vs v2: what changedThe differences between x402 version 1 and version 2: header names, CAIP-2 network IDs, amount fields, and why a v2...The x402 402 response, field by fieldWhat an x402 HTTP 402 Payment Required response contains: scheme, network, asset, amount, payTo, timeout and...

Under the hood

EIP-3009 transferWithAuthorization, explainedHow EIP-3009 transferWithAuthorization lets an x402 payer sign a USDC transfer offline so a facilitator can submit it...

Networks

x402 on BaseWhy Base is the main network for x402 payments, which USDC contract to use, the CAIP-2 identifier, and how settlement...x402 on SolanaHow x402 payments work on Solana: the CAIP-2 network ID, USDC mint, fee payer, and how it differs from...

Comparisons

x402 vs card payments for AI agentsHow x402 USDC payments compare with card payments for AI agents and APIs: per-transaction cost, minimum viable price,...x402 vs API keys and subscriptionsWhy x402 pay-per-call can replace API keys and monthly subscriptions for AI agents: no signup, no key management, pay...

Troubleshooting

x402 payment refusal codes and fixesEvery reason the AgentPay x402 facilitator refuses a payment, what each code means, whose fault it is, and how to fix...

Sellers

How to accept x402 payments on your APIA practical guide for sellers: return a correct x402 402 response, verify and settle through a facilitator, and get...

Buyers

How an AI agent pays with x402How to give an AI agent the ability to pay x402 endpoints in USDC: a funded wallet, a spend budget, reading the 402,...

Discovery

How agents discover x402 endpointsHow AI agents find paid x402 APIs: discovery indexes such as Coinbase's x402 Bazaar, directories, MCP servers, OpenAPI...

AgentPay features

Trust layer for agent paymentsPrivacy paymentsThe payment ledgerAgent payment recallx402 escrow
Read the API docs
DocsSettlement policyEndpoint report