x402: paying for APIs over HTTP 402
The intersection: putting pay-per-call back into HTTP semantics — the server returns 402 plus payment instructions, the client pays, then receives the resource, with no accounts, sessions or credential management. For AI agents this means tool calls can carry their own budget: a paid API call and its payment settle in the same request path.
Scope: the official docs describe a five-step flow (request, 402 instructions, payment payload, verification and settlement by the server or a facilitator, resource) and state that the standard itself has zero fees and supports batched EVM settlement.
Open: finality, refunds, disputes and compliance sit with the specific service and on-chain asset, not the protocol layer; this entry does not judge any x402 service’s pricing or reliability.
Key specs
- 协议基础 / basis
- HTTP 402 Payment Required
- 费用 / protocol fee
- 0(标准本身,官方文档)
- 结算 / settlement
- EVM 批量结算(batch settlement)
- 适用对象 / users
- 服务方、买家、AI Agent
- 许可 / license
- Apache-2.0(官方文档声明)
What the source says
x402 is the open payment standard that enables services to charge for access to their APIs and content directly over HTTP.
It is built around the HTTP `402 Payment Required` status code and allows clients to programmatically pay for resources without accounts, sessions, or credential management.
Native support for machine-to-machine payments, enabling seamless use by AI agents
Source and licence
- Source checked
- 2026-11-17
- Licence / kind
- official-documentation
- Licence evidence
- https://docs.x402.org/
- Category
- Payments & settlement
- Status
- Production