Loading services...
Built around the HTTP 402 status code, x402 enables users to pay for resources via API without registration, emails, OAuth, or complex signatures.
Frictionless, autonomous payments for APIs and AI Agents.
x402 as a protocol has 0 fees for either the customer or the merchant
Accept payments at the speed of the blockchain. Money in your wallet in 2 seconds, not T+2
Not tied to any specific blockchain or token, a neutral standard open to integration by all
As little as 1 line of middleware code and you can start accepting payments. No account or personal information required
Anyone can implement or extend x402. It's not tied to any centralized provider, and encourages broad community participation.
Activates the dormant 402 HTTP status code and works with any HTTP stack via headers and status codes
x402 unlocks new monetization models, offering developers and content creators a frictionless way to earn revenue from small transactions without forcing subscriptions or showing ads.
Agents can use the x402 Protocol to pay for API requests in real-time, enabling autonomous commerce without human intervention.
Using x402, customers can easily access storage services without account creation, paying only for what they use.
x402 unlocks instant transactions, enabling true micropayments for content without subscriptions or paywalls.
Just add a single line of code in your app, and you can require a USDC payment for each incoming request.
paymentMiddleware("0xYourAddress", {"/your-endpoint": "$0.01"});
// and thats it!
If a request arrives without payment, the server responds with HTTP 402, prompting the client to pay and retry.
HTTP/1.1 402 Payment Required
x402 allows any web developer to accept crypto payments without the complexity of having to interact with the blockchain.
Real-world applications of the x402 protocol
Charge per API request for data services, AI models, or cloud computing resources without subscriptions.
Enable pay-per-article journalism and premium content without forcing monthly subscriptions.
AI agents autonomously pay for real-time data, APIs, and services without human intervention.
Pay-as-you-go access to storage, compute, and bandwidth without account setup.
Per-play games, per-second streaming, and microtransactions without ads or subscriptions.
Real-time market data, analytics, and specialized databases accessible via micropayments.
x402 is an open protocol not tied to any centralized provider. Anyone can implement or extend it for their use case.