The plain-English guide to x402
x402, explained
for people and AI.
x402 lets software pay for an API call the way a browser loads a page: one request, a price, a payment, a result. Ask402 explains how it works, lists who is building on it, and shows you what any paid endpoint charges.
24 answers with sources · 61 verified projects · no sign-up
A payment in four lines
- 1 · ask
GET /api/search?q=weather - 2 · price
402 Payment Required
PAYMENT-REQUIRED: $0.01 in USDC on Base - 3 · pay
GET /api/search?q=weather
PAYMENT-SIGNATURE: signed transfer - 4 · result
200 OK · PAYMENT-RESPONSE: receipt
Simplified. The real headers hold encoded JSON.
See the real thing, step by step →The answers people look for first.
Each one opens with a direct answer, then the detail, then the sources it was checked against.
What is x402?
x402 is an open standard for paying for things over the web with a normal HTTP request. A server answers with status 402 Payment Required and a price, the caller attaches a signed payment and asks again, and the server returns the result. No account, API key or checkout page is involved.
How does x402 work, step by step?
The caller makes a normal request. The server replies 402 with a PAYMENT-REQUIRED header listing the price and payment options. The caller signs a payment for one option and repeats the request with a PAYMENT-SIGNATURE header. The server verifies and settles it, then returns the result with a PAYMENT-RESPONSE receipt.
Can I use x402 services without a crypto wallet?
Sometimes. x402 itself settles in tokens, so somebody needs a wallet, but it does not have to be you. Some services also take cards through MPP, sell finished products through a normal card checkout, or offer free tools that need no payment at all. A managed wallet is another option, where a provider holds the keys.
x402 vs MPP: what is the difference?
Both let software pay for an HTTP request by answering with status 402. x402 came from Coinbase, is run by the x402 Foundation, and settles in blockchain tokens. MPP, the Machine Payments Protocol, was written by Tempo and Stripe, uses the standard WWW-Authenticate header, and also supports cards and Lightning. One endpoint can offer both at once.
How do I pay for an x402 API?
Install an x402 client library, give it a wallet that holds the token the seller accepts (usually USDC), and make your request through it. The library reads the 402 reply, signs the payment and repeats the request for you. Official clients exist for JavaScript, Python and Go.
How do I accept x402 payments on my API?
Add x402 middleware to your server, tell it which routes cost what and which wallet address receives the money, and point it at a facilitator that verifies and settles payments. Official middleware exists for Express, Next.js, Hono, Fastify, FastAPI, Flask and Go. Start on a test network, then switch to a production facilitator.
What does this endpoint charge?
Paste any paid API address into the 402 checker. It reads the reply and lists every payment option across x402, MPP and L402, without paying.
Who is building on x402.
61 projects, each checked against its own site: no pay-to-list, no marketing copy.
From our publisher
Use x402 today, with or without a wallet.
Agent402 is the tool catalog run by the company behind Ask402. It takes x402 and MPP, and gives you three ways in.
Try a free tool
Convert data, format text, or calculate something useful. Eligible tools need no wallet or payment.
Open the free playground ↗Read a finished report
See a published sample before buying research, a company dossier, or a domain audit by card.
Browse samples and previews →Connect your AI
Bring 500+ tools into your own assistant or application through MCP or an API client.
Find your setup path →A few questions, answered.
What is x402?+
x402 is an open standard for paying for things over the web with a normal HTTP request. A server answers with status 402 Payment Required and a price, the caller attaches a signed payment and asks again, and the server returns the result. No account, API key or checkout page is involved.
Read the full answer →How does x402 work, step by step?+
The caller makes a normal request. The server replies 402 with a PAYMENT-REQUIRED header listing the price and payment options. The caller signs a payment for one option and repeats the request with a PAYMENT-SIGNATURE header. The server verifies and settles it, then returns the result with a PAYMENT-RESPONSE receipt.
Read the full answer →Can I use x402 services without a crypto wallet?+
Sometimes. x402 itself settles in tokens, so somebody needs a wallet, but it does not have to be you. Some services also take cards through MPP, sell finished products through a normal card checkout, or offer free tools that need no payment at all. A managed wallet is another option, where a provider holds the keys.
Read the full answer →x402 vs MPP: what is the difference?+
Both let software pay for an HTTP request by answering with status 402. x402 came from Coinbase, is run by the x402 Foundation, and settles in blockchain tokens. MPP, the Machine Payments Protocol, was written by Tempo and Stripe, uses the standard WWW-Authenticate header, and also supports cards and Lightning. One endpoint can offer both at once.
Read the full answer →Who writes this. Ask402 is published by Havok Holdings LLC, which also runs Agent402, one of the x402 services covered here. Agent402 is labelled wherever it appears. Everything else is described from each project’s own documentation, and nobody pays to be listed.