Plain English

What is x402?

x402 is an open payment protocol that lets a website or API charge for a single request using stablecoins. The name comes from HTTP 402 — Payment Required — a status code the web reserved decades ago and never standardised.

The old way: keys and subscriptions

Today, most APIs work like this: you sign up, copy an API key, stay inside a free tier, then pay a monthly subscription. Every request carries that key so the provider can track usage and bill you later.

That system was built for human developers who plan usage in advance. It is awkward for AI agents that need a weather feed, a price check, or one article — right now — without creating an account.

Think of an API as a waiter

  • You (the client) look at the menu.
  • The waiter (the API call) takes the order to the kitchen.
  • The kitchen (the server) prepares the data.
  • The waiter brings it back.

x402 adds the missing bill: pay for this one dish, then eat. No membership required.

How a paid request works

Client Asks

An unauthenticated request. No API key. No login.

Server 402

HTTP 402 Payment Required, with amount, asset, and destination.

Wallet Pays

The agent or user pays from a connected wallet, usually USDC.

Facilitator Confirms

A helper verifies settlement so the seller does not run their own chain infrastructure.

The facilitator is the checkout person. Coinbase and others run hosted facilitators. Sellers can also self-host or use community options. Live sellers and transactions can be inspected on x402scan.

What it is used for

Anywhere a tiny, on-the-spot payment is cleaner than a monthly plan.

Compute

Pay for a model call, a short burst of GPU time, or a specialist tool.

Data

A single dataset, a live price, a parking feed, or a search result.

Content

One newspaper article, one magazine piece, one report, or one creator video — without a 12-month subscription.

Money and networks

Today the main settlement asset is USDC. The chains that matter first are those that are fast and cheap enough for cents and fractions of a cent — notably Base (an Ethereum layer 2) and Solana. The protocol is designed to be chain-agnostic over time.

x402 will not be the only way agents pay. Lightning, other machine-payment protocols, prepaid sessions, and card-based agent wallets will coexist. For ordinary web APIs and digital resources, an HTTP-native standard has a strong chance of becoming the default.

Read the official standard

This site explains x402 for Australian businesses. The protocol itself is maintained as an open standard.

Go to x402.org