HTTP has a payment code.
Now it works.
x402 turns 402 Payment Required into a real protocol.
AI agents discover services, pay in USDC, and get results —
no API keys, no accounts, no humans in the loop.
Three exchanges. Zero friction.
No signup. No dashboard. No API key rotation.
Request
Send a normal HTTP request. No auth headers.
POST /api/v1/explain-code
Content-Type: application/json
{"code": "def fib(n): ..."} 402 + Price
Server returns the exact price. Agent reads it.
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <base64>
# Decoded:
# amount: 50000 (USDC micro)
# network: eip155:8453 (Base) Pay + Result
Agent signs USDC transfer. Server verifies and responds.
POST /api/v1/explain-code
PAYMENT-SIGNATURE: <base64>
HTTP/1.1 200 OK
PAYMENT-RESPONSE: <base64>
{"result": "This function..."} API keys don't scale to agents.
x402 is how machine-to-machine commerce actually works.
No credentials to manage
The payment receipt is the credential. An agent with a USDC balance can call any x402 service in the world without a single API key.
Built for autonomous agents
Agents discover services, evaluate prices, and pay — all without human intervention. The protocol was designed for this. OAuth wasn't.
Every payment on-chain
Settled in USDC on Base L2. Instant, auditable, final. No chargebacks, no billing disputes, no monthly invoices.
Discovery built in
Any x402 service exposes /.well-known/x402.json — a machine-readable manifest of what it does, what it costs, and where to pay.
Backed by the Linux Foundation
x402 is a vendor-neutral open standard with 50+ member organizations. Not a startup's proprietary protocol — shared infrastructure for the future of machine commerce.
Where 24K Labs fits
We don't own the protocol. We build what runs on it.
The Protocol
x402 spec, facilitators, SDKs. Owned by the Linux Foundation. We use it, we don't build it.
Discovery & Authority
Gold-402 directory. 26,000+ services. The editorial layer that tells agents what's worth using.
Services
The AI tools agents actually pay for. Code analysis, time context, and more. Also 24K Labs.
Start building on x402.
Use our services, list in our directory, or build your own x402 endpoint.