What is x402? The HTTP payment protocol AI agents use

RoundhouseReviewed .md
In short

x402 is an open protocol that lets a client pay for an HTTP request at the moment it makes it. The server answers 402 Payment Required with machine-readable terms, the client signs a stablecoin authorisation, and it resends the request with an X-PAYMENT header. No account, no API key, no human.

Contents
  1. What problem does x402 solve?
  2. How does the x402 flow work?
  3. What is a facilitator, and why does it matter?
  4. What does x402 actually cost?
  5. Which networks and assets does x402 use?
  6. How is x402 different from just sending a crypto payment?
  7. Frequently asked questions
  8. Where to check this yourself

What problem does x402 solve?#

Every existing way to pay for an API assumes a person. Someone signs up, enters a card, accepts terms and copies an API key into a configuration file. That works when software is operated by a human on a timescale of days.

It does not work when the buyer is an agent that found your endpoint thirty seconds ago and wants one call. The sign-up is the blocker, and it is a blocker no amount of documentation removes.

x402 removes the account. The buyer proves it can pay, in the same request where it asks for the thing.

How does the x402 flow work?#

Five steps, all inside one HTTP exchange.

  1. The client requests a resource with no payment attached.
  2. The server replies HTTP 402 Payment Required with an accepts array: how much, in which asset, on which network, and to which address.
  3. The client picks one of those terms and signs an authorisation to transfer that amount. On EVM chains this is an EIP-3009 TransferWithAuthorization, which is a signature rather than a transaction.
  4. The client resends the original request with the signed authorisation in an X-PAYMENT header.
  5. The server verifies the authorisation, settles it, and returns the resource along with an X-PAYMENT-RESPONSE header naming the settlement.

Note

The buyer signs; it does not broadcast. A facilitator submits the transaction and pays the gas, which is why an agent holding only USDC, and no native token, can still pay.

What is a facilitator, and why does it matter?#

A facilitator is the service that checks a payment authorisation is valid and then puts it on-chain. It sits between the buyer and the seller and does two jobs the seller would otherwise have to build: verify and settle.

This matters for a reason that is easy to miss. The facilitator is the party that submits the transaction, so the transaction's sender is the facilitator, not the payer. That is what makes x402 payments identifiable on-chain at all. It is the subject of how the settlement record is built.

What does x402 actually cost?#

The protocol does not set a price; the resource server does. In practice the prices are small, because the point is to make a single call purchasable.

Typical x402 callTraditional API
Price point$0.001 – $1 per requestMonthly plan or committed tier
OnboardingNone. Pay on the first requestAccount, card, key provisioning
SettlementSeconds, on-chainInvoiced monthly
Buyer needsA funded walletA human with a card
Refusal signalHTTP 402 with termsHTTP 401/403 with a sign-up link

The cost that is easy to overlook is gas. Because a facilitator relays the transfer, the buyer does not pay it directly. The facilitator does, and prices it in.

Which networks and assets does x402 use?#

In practice today: USDC on Base. The protocol is chain-agnostic and the accepts array can offer several options at once, but the overwhelming majority of live settlements are USDC on Base, because that is where the facilitators and the catalogues are.

Roundhouse indexes Base mainnet. Over the 90 days to 23 September 2026 it recorded 26,671,518 x402-pattern settlements on Base, within about 1% of the 26.4M that Token Terminal reported for the same chain and window, which is the closest thing the ecosystem has to an independent check.

How is x402 different from just sending a crypto payment?#

A bare transfer tells the seller nothing. It does not say which request it was for, it does not arrive inside the request, and the seller has to reconcile it afterwards.

x402's contribution is that the payment is part of the HTTP exchange. The 402 response carries the terms, the retry carries the authorisation, and the 200 carries the receipt. A seller never has to match a payment to an order, because the payment arrived attached to the order.

Frequently asked questions#

Is x402 a blockchain or a token?#

Neither. x402 is an HTTP protocol. It describes how a server states its price and how a client attaches a payment, and it leaves the settlement to whichever chain and asset the two agree on. There is no x402 token.

Do I need an account to pay with x402?#

No. That is the point of it. A client needs a funded wallet and the ability to sign; it does not register, authenticate or hold an API key. A seller that wants per-customer limits can still issue keys on top, but the protocol does not require one.

Does the buyer need ETH for gas?#

No, on the common path. The buyer signs an EIP-3009 authorisation and a facilitator broadcasts it, paying the gas itself. This is what lets an agent operate holding only a stablecoin.

Is an x402 payment reversible?#

No. It settles on a public blockchain and there is no chargeback. A seller that needs to refund does so by sending a new payment. This is a genuine difference from card rails and it should shape what you sell this way.

How can I see real x402 payments?#

They are public, and how much of that volume is real is worth reading before using any headline figure. Roundhouse indexes them into a queryable record: the live flow of funds shows settlements as they land, services lists the endpoints being paid, and the data API answers the same questions programmatically.

Where to check this yourself#

Every claim above about live activity is checkable against the index rather than taken on trust. The data API serves the same rows these figures come from. GET /v0/endpoints and the capability layer answer without a credential, and the rest take a key you can mint yourself for $0.01 over x402 at GET /v0/test/x402, no account. Each figure here names the chain and the window it was measured over.

Reading this as an agent?

Every page here has a markdown twin at the same URL plus .md. Same words, no navigation, no markup to strip. And the settlement record this article describes is a live index you can query rather than a claim you have to take on trust.

  • GET https://roundhouseai.io/resources/what-is-x402.mdthis page, as markdown
  • GET https://roundhouseai.io/llms.txtevery surface on roundhouseai.io
  • GET https://api.roundhouseai.io/v0the index: endpoints and schema
  • GET https://api.roundhouseai.io/v0/test/x402$0.01 over x402, and it mints your own key with no account

/docs/api has the limits and the SQL surface. /v0/account, /v0/endpoints and the capability layer answer without a key.

Read next