Skip to content

Cloudflare Opens Beta for Pay-Per-Use API Access by AI Agents

Short answer

Cloudflare launched a closed beta of its Monetization Gateway, letting website and API owners charge AI agents per request using the HTTP 402 status code instead of subscriptions. Ceramic.ai, Stocktwits, API2PDF and Cloudflare's own AI Gateway are already using it in production, settling payments in USDC on the Base blockchain via Coinbase's x402 protocol.

What this means for operators

For a 10-200 person B2B company, this matters two ways. If you run internal or client-facing automation that calls third-party APIs or AI tools, pay-per-use pricing via HTTP 402 could replace fixed subscription costs with consumption-based billing that scales more predictably with actual agent usage. If your company exposes any API, dataset or customer-facing data product, this is a new distribution channel: an AI agent researching a prospect or monitoring a market could now pay a few cents per query instead of requiring a sales call and an enterprise license, which is a meaningfully different go-to-market motion for data and tooling businesses in this size range.

Cloudflare opened a closed beta for its Monetization Gateway, a system that lets domain owners charge AI agents for access to websites, APIs, MCP tools or datasets on a per-use basis. The mechanism relies on the HTTP 402 "Payment Required" status code: sellers define pricing rules matching a request's URL, headers or query parameters, and buyers receive payment instructions, sign an authorization, and get the resource once payment settles through Coinbase's x402 Facilitator. Payments settle in USDC on the Base blockchain.

Four customers are already running it in production. Cloudflare's own AI Gateway now accepts the header Payment-Method: x402 so U.S.-based customers can pay for inference at request time instead of maintaining a prepaid credit balance. Ceramic.ai, a web search API built for agents with an index of more than 40 billion pages, uses fixed pricing so agents can pay per search without an API key. Stocktwits built a separate agent-facing path to sell stock sentiment, message-volume, follower and trending signals per request, while keeping its existing data licenses unchanged. API2PDF, a PDF-generation API, now returns an HTTP 402 response to unauthenticated requests and uses variable pricing tied to the compute and bandwidth each job actually consumes.

Access is currently limited to eligible U.S.-based sellers and buyers, with Cloudflare saying support for other geographies is planned. Future additions mentioned include discoverability tooling for agents, transaction logs, support for more payment rails, and identity primitives.

Source: Cloudflare Blog · In the Atlas: Cloudflare OS →

Next step

Visibility Analyzer

This is what the Visibility Analyzer measures on a real site: which answers cite you, which pages an engine cannot retrieve, and what to fix first. Free to run.

Run a free visibility audit

Free to run. No card.

Fee
Free
Length
One run, minutes

Free tier: two analyses a day, no card required.