Email me

Explainer · 7 min read

Filed under AI agents Guides

What is x402?

Short answer

x402 is an open standard that makes the HTTP status code 402 Payment Required do what its name says. A server answers an unpaid request with 402 and a machine-readable price. The client (usually an AI agent with a wallet) signs a payment in a stablecoin like USDC and sends the same request again with the payment attached. No account, no API key, no checkout page: the payment is the login.

Title card reading What is x402? HTTP 402, finally used for money.
A status code reserved since the 1990s, finally wired to a payment. Image: Tensorust, made for this page.
On this page · 8 sections
  1. Key facts
  2. How it works
  3. Why it exists (and why now)
  4. What we learned running it
  5. Common misconceptions
  6. Related
  7. FAQ
  8. Sources

We run it in production. As of October 23, 2026, 11 of our endpoints across five small sites (all deployed to Vercel from the CLI) answer x402, priced from 5 cents to $24.99. The number of payments they have settled so far is a good reason to read the misconceptions section: zero.

Key facts

What Fact Source (checked Oct 23 2026)
HTTP 402 in the official spec "The 402 (Payment Required) status code is reserved for future use." RFC 9110, section 15.5.3
Who runs x402 The x402 Foundation, launched under the Linux Foundation on April 2, 2026 after Coinbase contributed the protocol Linux Foundation, Coinbase docs
Spec and SDKs github.com/x402-foundation/x402, about 6.8k stars GitHub
Headers PAYMENT-REQUIRED (server), PAYMENT-SIGNATURE (client), PAYMENT-RESPONSE (server) x402 repo
Payment schemes exact, upto, batch-settlement x402 repo, CDP docs
Mainnets on Coinbase's facilitator Base, Polygon, Arbitrum, Monad, World (EVM) and Solana CDP Facilitator
Facilitator fee (Coinbase CDP) Verification free; first 1,000 on-chain settlements a month free, then $0.001 each CDP Facilitator
Payments processed through CDP "more than 100 million x402 payments across Base and Solana" CDP x402 docs
Our live x402 endpoints 11, from $0.05 to $24.99 per call Our 402 responses, Oct 23 2026
Our settled x402 revenue 0 USDC Our wallet scan, Oct 23 2026, 4:17 PM ET

How it works

Diagram of eight steps: client asks, server answers 402 with PAYMENT-REQUIRED, client wallet signs, client retries with PAYMENT-SIGNATURE, facilitator verifies, server does the work, facilitator settles on chain, server returns 200 with PAYMENT-RESPONSE.
The whole protocol is one extra round trip. The facilitator is the part most people have not heard of. Credit: Tensorust, flow from the x402 spec and Coinbase docs.

There are three parties, not two.

  1. The client calls an endpoint as usual. No payment attached.
  2. The server replies 402 Payment Required with a PAYMENT-REQUIRED header: base64 JSON listing what it accepts (scheme, network, asset, amount, who to pay, how long the offer is good for).
  3. The client signs a payment authorization for exactly that amount with its wallet and resends the same request with a PAYMENT-SIGNATURE header.
  4. The facilitator is a service the server calls to check that signature and later to settle it on chain. The server never has to run a blockchain node. Coinbase runs the best-known one; the protocol allows anyone to run one.
  5. The server does the work, the facilitator settles, and the response comes back 200 with a PAYMENT-RESPONSE header describing the settlement.

Here is what a real one looks like. This is our pay-to-be-listed wall, called with no payment, tonight:

Terminal capture: curl POST to the-wall-lime.vercel.app api plaque returns HTTP 402 Payment Required with a base64 Payment-Required header, decoded below as x402Version 2, an error message, the resource, and one accepted payment: scheme exact, network eip155:8453 (Base mainnet), amount 1000000 (1 USDC), the USDC contract on Base, payTo omitted, maxTimeoutSeconds 60.
A live x402 quote: 1 USDC on Base, valid for 60 seconds. The amount is in USDC's smallest unit, 6 decimals. Credit: Tensorust, captured with curl Oct 23 2026 9:14 PM ET.

Two details worth noticing. The network is written as eip155:8453, the chain ID for Base mainnet, not a friendly name. And amount is "1000000" because USDC has six decimals, so that string is exactly $1.00. Get either wrong and the client signs nothing.

Why it exists (and why now)

Every paid API today assumes a human: sign up, add a card, copy an API key into an environment variable. An AI agent that finds a useful tool halfway through a task cannot do any of that. x402 lets the price live in the response itself, so an agent with a funded wallet can pay a stranger's endpoint the first time it sees it. That is the pitch, and it is why the foundation's members include Google, Visa, Mastercard, Stripe and Cloudflare.

Our take: the protocol part is genuinely simple. Most of our 11 endpoints went live on mainnet in a single day, October 11, 2026. The hard part is everything around it: a facilitator that will actually settle on mainnet, and buyers whose agents carry money.

What we learned running it

Horizontal bar chart on a log scale of eleven x402 prices: Tensorust Under Oath $0.05, counterfactual search $0.10, The Wall scout feed $0.10, COOKED site audit $0.50, The Wall plaque $1.00 minimum, Desk Idols printable object $2.99, SafeCommit small diff about $6, Desk Idols custom basic $7.99, full drop $11.99, custom variations $14.99, custom pro $24.99. Title: Paid so far $0.
Our x402 price list. Every one of these answered 402 tonight. None has been paid. Credit: Tensorust, from our agents.json and live 402 responses, Oct 23 2026.
  • The free public facilitator is testnet only. The open facilitator at x402.org/facilitator answered our setup calls for Base mainnet and then would not settle mainnet payments; it supports the Base Sepolia testnet. Real USDC needed Coinbase's CDP facilitator with an API key. Our servers now refuse to advertise a mainnet price unless that key is configured, because quoting a payment that cannot complete is worse than not quoting at all.
  • Discovery is its own spec. Coinbase's directory of x402 services (the Bazaar) validates each endpoint by calling the bare URL with no input, so an input-less call has to answer 402 rather than 400. Hand-written discovery metadata was rejected; the declareDiscoveryExtension helper from @x402/extensions/bazaar passed.
  • There is a second 402 standard. The Machine Payments Protocol (MPP) also uses HTTP 402 for machine payments, with official SDKs from Tempo Labs and Wevm. The two use different headers (WWW-Authenticate: Payment for MPP), so one endpoint can offer both, and we wrote SafeCommit, our deploy-protection tool, to do exactly that. Tonight its 402 carries only the x402 rail: the card side of MPP depended on Stripe features that were still a private preview when we built it.
  • Settle after the work. For SafeCommit we settle after the run, so a deploy that gets rolled back is charged less than the agent authorized.
  • Zero payments. As of October 23, 2026, our receiving wallet has settled 0 USDC across all 11 endpoints. Nothing is broken that we know of; there are simply very few agents walking around with funded wallets yet.

Common misconceptions

Myth

"x402 is a cryptocurrency."

The recordNo. It is a payment handshake over HTTP. The money is an existing stablecoin (USDC on Base in our case) moved by an existing chain.

Myth

"HTTP 402 has always meant crypto payments."

The record402 has been in the HTTP spec since the 1990s with no defined behavior, and the current spec (RFC 9110, 2022) still says only "reserved for future use." x402 is one proposal for that future. MPP is another.

Myth

"Agents can now pay for anything."

The recordOnly for services that answer 402, and only if the agent's operator has given it a wallet with funds and a spending policy. Our numbers say most do not yet.

Myth

"No fees."

The recordThe protocol charges nothing, but settlement is not free: on-chain gas exists, and Coinbase's facilitator charges $0.001 per settlement after the first 1,000 a month. For a 5-cent API call that is 2% of the price.

Myth

"Any facilitator works on mainnet."

The recordThe free public one did not for us. Check which networks a facilitator supports before you put a mainnet price on a live endpoint.

FAQ

What is x402?

x402 is an open payment standard built on the HTTP 402 Payment Required status code. A server answers an unpaid request with 402 and a price; the client signs a stablecoin payment and retries the same request with a PAYMENT-SIGNATURE header.

Who made x402?

Coinbase developed it and contributed it to the x402 Foundation, which the Linux Foundation launched on April 2, 2026 with members including Cloudflare, Google, Stripe, Visa and Mastercard.

Does x402 need an account or API key?

No. The payment itself is the authorization: the client needs a wallet with funds, and the server needs a receiving address and a facilitator to verify and settle.

What does x402 cost?

The protocol has no fee. Coinbase's hosted facilitator verifies for free and settles up to 1,000 on-chain transactions a month free, then charges $0.001 per transaction; network gas is separate.

What does HTTP 402 mean?

402 Payment Required is a standard HTTP status code that RFC 9110 still lists as reserved for future use. x402 gives it a concrete meaning: pay, then retry.

Sources

All checked October 23, 2026.

Primary

Secondary (context only, no numbers taken from it)

Our own data

  • The live 402 from The Wall's plaque endpoint, captured with curl on October 23, 2026 at 9:14 PM ET. The receiving address is left out.
  • 11 endpoints answering 402 on October 23, 2026 (curl probes): COOKED's roast, Tensorust's oath and counterfactual search, The Wall's scout feed and plaque, five Desk Idols endpoints and SafeCommit's run. Prices from The Wall's agents.json, the live 402 quotes and SafeCommit's sample price ($6.20).
  • 0 USDC settled: our revenue dashboard's wallet scan, October 23, 2026 at 4:17 PM ET.
  • The testnet-only public facilitator, the CDP key requirement, the Bazaar validator behavior, declareDiscoveryExtension, settling after the run, and the October 11, 2026 rollout: our own build notes.

Images

  • Title card, handshake diagram, the 402 capture and the price chart: made by Tensorust (Pillow and matplotlib, with Archivo, JetBrains Mono and Silkscreen under the SIL Open Font License). The 402 capture is a faithful re-typeset of the real curl output, trimmed for length.

Credit

Next question

Every number on this page links to its source and was checked on Oct 23, 2026. Spot an error or a newer figure? Email matt@tensorust.com and it gets fixed. Related: AI agents for distribution, LLM API cost calculator.

Read next

Back to The Manual →   All articles →

Get the next one by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ