Skip to main content

x402

x402

  • AI coding
  • Stage 3 · Going Deeper
  • refs checked 2026-11-21
What problem it solves

Let APIs, content and digital services charge directly over HTTP 402: the client receives payment requirements, pays, and retries the same request without an account, API key or subscription.

What it is
x402 reuses the long-reserved HTTP 402 Payment Required status. The server returns price, payee, asset and network; after payment the client retries with a proof. It is a payment negotiation layer, not a settlement implementation: stablecoins, facilitators and batched settlement can all sit underneath.
Why it matters

Agents make many pay-per-call requests, while sign-up, card-on-file and monthly subscriptions are built for humans. x402 puts “does this request cost money, how much and to whom” back into HTTP itself.

Chinese aliases

Sources
  • x402 official documentation ↗
  • x402 official site ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →