What is the x402 standard
An open protocol turning HTTP status 402 into a native payment rail for the internet.
Executive summary
Since the early days of the web, HTTP reserved status code 402 to signal that a resource requires payment. For decades it remained unused because programmable instant settlement rails were missing.
x402 fills that gap by defining HTTP headers and open schemes so any website, API, or AI agent can advertise a request price and verify settlement before serving the response.
Plain overview for businesses and creators
Think of a transparent digital turnstile: you open an article or call a tool paying only for that exact usage, without forced monthly subscriptions or extra passwords.
Technical view for engineers and architects
The resource server responds with HTTP 402 and structured payment requirements. The client signs a compatible authorization, retries with the signature header, and a facilitator verifies and settles atomically.
How it works in three steps
Resource request
A client or agent calls a protected route. The server replies with HTTP 402 specifying price, asset, and recipient.
Payment authorization
The client wallet or library signs the payment proof according to the advertised scheme and retries the HTTP request.
Verification and instant delivery
The server validates the proof directly or through a facilitator, confirms settlement, and returns HTTP 200 with the payload.
Comparison: Traditional payments versus x402
| Criteria | Traditional Model | x402 Standard |
|---|---|---|
| Account signup | Required with login and password | Not required per request |
| Minimum viable ticket | Restricted by fixed card fees | Enables micropayments |
| AI agent compatibility | Complex and prone to blocks | Native through HTTP headers |
| Vendor lock in | Tied to specific processors | Open Apache 2.0 protocol |
Who uses x402 and key applications
On demand APIs and datasets
Per call billing for financial, weather, or inference APIs without monthly API keys.
Digital publishing and research
Single access to technical articles, reports, and document archives without recurring plans.
Autonomous AI agents
Software assistants paying external tools strictly for the data consumed during a task.
Infrastructure utilities
Instant unlock for compute bursts, temporary storage, or cryptographic verification.
Technical specification by depth level
The design separates responsibilities across the Client, the Resource Server delivering content or APIs, and an optional Facilitator handling on chain verification and settlement.
This separation lets developers enable HTTP 402 monetization with minimal middleware and no node management.