
x402
Open standard using HTTP 402 to let clients and servers pay for API access instantly.
About x402
x402 is an open payment standard that revives the long-dormant HTTP 402 "Payment Required" status code to add native payments to ordinary HTTP requests. When a client requests a resource that costs money, the server responds with a 402 status and payment instructions; the client attaches proof of a stablecoin payment and retries the request, and the server verifies the payment before returning the data. The whole exchange happens within a single HTTP round trip, without user accounts, API keys, credit cards, or subscription sign-ups. The protocol was introduced by Coinbase and is now stewarded under Linux Foundation governance as a neutral, chain-agnostic standard, with the x402 Foundation coordinating its development. It settles payments in stablecoins such as USDC and works across EVM-compatible chains and Solana. Integration is designed to be minimal on the server side, effectively adding one line of code to require payment on an endpoint before a request is fulfilled. The design principles emphasize no protocol fees beyond normal network costs, fast settlement, no required personal information, and an open, permissionless structure that any server or client can implement. x402 is aimed at developers who want to monetize APIs or digital content in a way that AI agents and automated software can pay for programmatically, without the friction of human checkout flows. By the tool's own reporting, it has processed tens of millions of transactions and tens of millions of dollars in volume since launch. As a machine-to-machine payment standard rather than a consumer product, it is not something end users interact with directly.
At a glance
- Platforms
- API
- API
- Available
- Last verified
- August 2026
Who It's For
- •Developers building APIs and web services.
- •Businesses offering digital content or services online.
- •AI and automation developers enabling autonomous transactions.
- •Financial service providers integrating AI for payments.
How It Works
- 1Utilizes the HTTP 402 Payment Required status code to initiate payments.
- 2Web servers return payment details in response to a resource request.
- 3Clients, including AI agents, pay and retry requests with authorization.
- 4Supports monetizing APIs and digital content seamlessly.
How to Use x402
- 1Implement the x402 protocol in your web services.
- 2Return HTTP 402 responses with payment data when resources are requested.
- 3Clients process the payment and retry the request with authorization.
Key Features
- •Uses HTTP 402 status code to request payment within a normal HTTP exchange
- •Stablecoin settlement (e.g. USDC) over EVM-compatible chains and Solana
- •No accounts, API keys, or credit cards required to pay
- •Chain-agnostic, permissionless, open standard
- •Minimal server-side integration to require payment on an endpoint
- •Linux Foundation governance
Use Cases
- •Monetizing API endpoints so AI agents can pay per request
- •Paywalling digital content for automated or agentic access
- •Enabling machine-to-machine micropayments without human checkout
Pros & Cons
Advantages
- •Facilitates seamless, autonomous online payments.
- •Standards-based approach compatible with web technologies.
- •Supports monetization for AI and digital services.
Disadvantages
- •Relies on adoption of the protocol by web servers and clients.
- •New standard requiring implementation effort.
- •Limited widespread adoption or tools at this stage.
Alternatives
- Stripe
- Lightning Network
Reviews for x402
Based on 0 reviews
Rating Distribution
No Reviews Yet
Be the first to share your experience with x402!
Frequently Asked Questions
What is x402?
x402 is an open payment standard that revives the long-dormant HTTP 402 "Payment Required" status code to add native payments to ordinary HTTP requests. When a client requests a resource that costs money, the server responds with a 402 status and payment instructions; the client attaches proof of a stablecoin payment and retries the request, and the server verifies the payment before returning the data.
How much does x402 cost?
x402 uses custom pricing — contact the vendor for a quote.
Is x402 free?
x402 is a paid tool and does not offer a free plan.
What are the best x402 alternatives?
Popular x402 alternatives include Stripe, Lightning Network.
What is x402 used for?
x402 is commonly used for Monetizing API endpoints so AI agents can pay per request, Paywalling digital content for automated or agentic access, Enabling machine-to-machine micropayments without human checkout.
Does x402 have an API?
Yes, x402 offers an API for developers.
What platforms does x402 support?
x402 is available on API.
Information Accuracy
Please note: While we regularly update all tool information including descriptions, features, pricing, and other details, this information may change over time as tools evolve and update their offerings. For the most current and accurate information, we recommend visiting the official website directly. Our goal is to provide you with comprehensive and up-to-date information to help you make informed decisions.