STANDARD · §2.7 · PAY · LAST REVIEWED SEPTEMBER 2026

What is x402?

Payment inside the HTTP request, so an agent can buy access without an account.


Agent Readiness Compare editors · Spec status checked September 2026

Answer

x402 is an open standard for internet-native payments. When a client requests a paid resource without paying, the server responds with HTTP 402 Payment Required; the client pays and retries, and access is granted without API key management. It is blockchain-agnostic, with stablecoin payments as the primary use case, and is run by the x402 Foundation under LF Projects, LLC.

Maintainer:
x402 Foundation (LF Projects, LLC)
Status:
open standard
Spec:
x402.org

1.What is x402?

HTTP has reserved status code 402, Payment Required, for decades without a common way to use it. x402 defines that way: the server says what payment it needs, the client pays, and the request is retried with proof of payment. It is aimed at pay-per-request APIs and content that agents buy on demand.

2.How does the payment flow work?

  1. An agent sends an HTTP request and receives a 402 response.
  2. The agent pays instantly with stablecoins.
  3. Access to the API or resource is granted, with no key management.
First response to an unpaid request (headers abbreviated)
HTTP/1.1 402 Payment Required
Content-Type: application/json

The payment requirements and the proof the client returns are defined by the x402 specification; use its documentation for field names.

x402 supports all EVM-compatible chains, Solana and more, according to x402.org.

3.When does x402 fit, and when does it not?

  • Fits: per-call APIs, datasets, or content that an agent should be able to buy without a human creating an account.
  • Does not fit: most subscription SaaS checkouts, where the buyer is a company, pays by invoice or card, and needs a contract. Those flows need readable pricing and a checkout an agent can follow, and commerce protocols such as ACP and UCP are aimed at that case.
  • Not the same as Cloudflare's Pay per crawl, which lets AI crawlers pay per page and is in private beta.

4.How do you check it?

  1. Request a paid endpoint without payment and confirm a 402 response with machine-readable payment requirements.
  2. Complete a test payment on a test network and confirm the retried request succeeds.
  3. Readiness scanners check the payments layer: ora.ai Scan's payments layer has 6 checks worth 10 of 100 points; Cloudflare Is It Agent Ready lists x402, MPP, UCP and ACP.

5.Where does it sit in the readiness stack?

Layer 4, Pay.

Figure 1. The readiness stack: five layers, the standards that address each, and the tools that document support.
Text version of the diagram
Text version of the readiness stack
LayerQuestionStandardsTools that document support
L1 DISCOVERCan an agent find you, and is it allowed in?robots.txt (RFC 9309); Sitemaps; llms.txt; A2A Agent CardCloudflare AI Crawl Control (controls crawler access); ora.ai Scan (checks it); Cloudflare Is It Agent Ready (checks it)
L2 READCan it read and understand what you offer?llms.txt; Markdown negotiation (Accept: text/markdown); JSON-LDCloudflare Markdown for Agents (serves markdown); ora.ai Scan (checks it)
L3 ACTCan it complete a task on your site or API?MCP; WebMCP; agents.json; OpenAPICloudflare (hosts MCP servers); Vercel (hosts MCP servers); nekuda (builds WebMCP tools); ora.ai Journey and WebMCP audit (test it)
L4 PAYCan it pay you?x402; ACP; UCP; MPPCloudflare Pay per crawl (private beta, for crawlers); ora.ai Scan payments layer (checks it)
L5 TRUSTCan you tell which agent it is, and on whose behalf it acts?Web Bot Auth; OAuth 2.0Cloudflare (verifies signed bots); Vercel (verifies signed bots); Forter (links agentic shoppers to verified customer identities)

Frequently asked questions

Does x402 require cryptocurrency?

x402.org describes stablecoin payments as the primary use case and says the protocol is blockchain-agnostic.

Do I need x402 to be agent-ready?

Only if you sell something an agent should buy per request. Most B2B sites get more from readable pricing and a checkout or demo request an agent can complete.

Source: x402.org · ora.ai methodology · isitagentready.com · Cloudflare Pay per crawl docs · Reviewed Sep 2026