Defined in the HTTP/1.1 specification (RFC 2616), status code 402 “Payment Required” was a deliberate placeholder, a forward-thinking nod to a future where the web wouldn’t just share cat videos for free, but demand (and deliver) value in return. For 26 years, it was sidelined by ad-fueled freebies and clunky paywalls—until September 2025, when Cloudflare and Coinbase resurrected it via the x402 Foundation, turning the code into an open protocol for machine-to-machine micropayments.

What is x402?
x402 is an open payment standard that revives the long-dormant HTTP 402 “Payment Required” status code, enabling services to charge for access to APIs, content, or resources directly over HTTP without the hassle of accounts, subscriptions, API keys, or complex authentication. Developed initially by Coinbase and now governed by the neutral x402 Foundation co-founded with Cloudflare, the protocol uses standard HTTP headers to communicate payment requests (specifying amounts, accepted networks), and wallet addresses while a “facilitator” (like Coinbase’s fee-free USDC service on Base) handles verification, settlement, and even gas fees behind the scenes. This creates a chain-agnostic framework for instant, programmable payments, primarily using stablecoins like USDC for low-cost, borderless transactions, but extensible to credit cards or deferred schemes for agentic flows. At its core, x402 turns every web request into a potential value exchange, abstracting crypto complexities so developers can add paywalls in just a few lines of code via tools like Cloudflare’s Agents SDK.
What are some use cases?
x402 shines in scenarios where traditional payments fall short, like micropayments too small for Stripe fees or too frequent for manual approvals, unlocking an “agent economy” where AI bots transact autonomously. For API monetization, developers can charge per-request access to data feeds, such as a trading bot paying $0.001 for real-time stock quotes, ditching subscriptions for true pay-per-use models with near-zero costs. In AI workflows, agents integrated with Model Context Protocol (MCP) servers can auto-pay for contextual data or third-party tools, like a virtual assistant querying premium research journals per whitepaper download or using Chainlink VRF to mint NFTs on Base after a USDC tip-off. Content creators benefit from seamless paywalls for digital goods (think paying per-article in a news app or per-second video streams), while broader apps like Cal.com embed paid scheduling into agent-driven calendars. Emerging pilots even extend to machine-to-machine IoT, such as EV chargers settling fees via x402, or deferred batching for B2B procurement where agents aggregate charges before settlement.
Cloudflare’s x402 vs. Stripe’s ATXP
While both x402 and ATXP (Agent Transaction eXtension Protocol from ex-Stripe startup Circuit & Chisel) aim to standardize AI agent payments, they diverge in focus, rails, and maturity. x402 as the broad, HTTP-native micropayment layer versus ATXP’s narrower, MCP-centric orchestration for delegated fiat flows. x402, with Cloudflare’s edge-scale backing and chain-agnostic stablecoin emphasis (e.g., USDC on Base or Polygon), excels in permissionless, global micropays for any web resource, enabling instant settlements without accounts and integrating seamlessly with tools like Google’s AP2 for agentic commerce. ATXP, launched in September 2025 with $19M seed funding, leans on Stripe tokens for reliable fiat transactions in enterprise B2B scenarios, like nested agent negotiations, but stays tightly coupled to MCP servers for tool-specific billing—lacking x402’s broader HTTP extensibility or crypto speed. The frenemy dynamic peaks with ATXP’s official x402 adapter, allowing hybrid setups (fiat for big buys, stablecoins for micros), but x402’s open foundation and integrations (Algorand, peaq) position it as the more versatile challenger to Stripe’s ecosystem lock-in. In a standards race, x402’s web-wide ambition could eclipse ATXP’s dev-focused niche, especially as Cloudflare pushes “Internet-native money” with their NET Dollar stablecoin.
Cloudflare already own the internet rails, now they also want to become the payment rail of the future web.
