HeadlinesBriefing favicon HeadlinesBriefing.com

Cloudflare Monetization Gateway Brings x402 Micropayments to Web Resources

Hacker News •
×

Cloudflare launched the Monetization Gateway, enabling customers to charge for any asset protected by their network through the x402 protocol. The system handles payment verification and enforcement at the edge, supporting stablecoin settlements with over 25 industry partners via the x402 Foundation. It provides a unified control plane for managing payment policies across web pages, APIs, datasets, and MCP tools.

The shift addresses fundamental changes in web economics as AI agents become dominant users. Unlike humans who engage with advertising or subscriptions, agents consume content once and move on, creating massive imbalance where crawlers make hundreds of requests for each visitor. Cloudflare argues this demands usage-based pricing where agents pay per request, token, or outcome rather than per seat or month. Examples include cents per web search or variable pricing for compute-intensive tasks.

x402 leverages the HTTP 402 status code for seamless machine payments without redirects or separate APIs. Clients request resources, receive pricing information, pay peer-to-peer, and retry with proof of payment. Settlement occurs in under a second with negligible fees, making sub-cent transactions viable. The protocol eliminates account requirements since payment itself serves as credential.

Built on Cloudflare's global network spanning 330+ cities, the gateway enforces payment rules at the edge while keeping pricing logic with origin servers. Customers can charge specific REST verbs, implement variable pricing based on complexity, or require payment from unauthenticated callers. This removes the burden of building billing infrastructure while enabling fine-grained monetization for the AI-driven web economy.