In short: Cloudflare’s Monetization Gateway lets a site charge AI bots per request instead of only blocking them. The Monetization Gateway is in closed beta, so treat it as something to plan for rather than something to rely on yet.
Table of Contents
For the last few years, the only real choice a website owner had about AI bots was binary: let them scrape your content for free, or block them with robots.txt and hope the bot respects it. Cloudflare’s new Monetization Gateway, now in closed beta, adds a third option that didn’t really exist before: charge the bot per request, automatically, without building any payment infrastructure yourself.
What the Monetization Gateway Does
An AI agent hits a protected URL, gets a 402 response with the price and payment details embedded in it, authorizes the charge, and the gateway grants access once payment settles. There’s no redirect to a checkout page and no separate payment API call for the requesting agent to make; the entire exchange happens inline, within the same request flow the agent was already making.
Site owners define pricing by request component (a specific URL, a header, a query parameter) and choose a pricing scheme: a fixed price per request, a variable price where the agent sees a maximum and pays only for what it actually consumes, or an origin-controlled price the seller’s own server sets dynamically per request. Payments settle on the Base blockchain in USDC through Coinbase’s x402 Facilitator, which is what makes charging a fraction of a cent per request practical. Traditional card processing fees would make a sub-cent microtransaction nonsensical; a stablecoin settlement layer is what makes the economics work at all.
Why HTTP 402, Specifically
The choice of status code is the quietly interesting part of this. 402 Payment Required has sat in the HTTP specification since 1999, explicitly reserved for exactly this kind of future use, and has gone almost entirely unused for over two decades. It’s something of a running joke among web developers: the one status code every browser and server library knows about by name, that almost no production website has ever actually returned, because nobody had built the payment rail to make it mean anything.
Cloudflare reviving a reserved code that has sat in the HTTP specification since 1999 rather than inventing a new header or a proprietary scheme is a signal that this is meant to become a standard, interoperable mechanism other providers can implement against, not a Cloudflare-only trick.
In practice, a request-response exchange looks roughly like this: the agent requests a protected endpoint, the server replies 402 with a machine-readable price and a payment address instead of the usual 200 and content, the agent’s own payment-capable client signs and submits that payment, and a second request with proof of payment attached gets the normal 200 response. The agent handles all of this programmatically in milliseconds; no human ever sees a checkout screen.
Who’s Using the Monetization Gateway So Far
The beta currently showcases four production customers: Cloudflare’s own AI Gateway charging for inference access, Ceramic.ai for search, Stocktwits for market signal data, and API2PDF for PDF generation. All four share something that matters for anyone wondering if this applies to them: they’re API-shaped products, where a single request has a clear, chargeable unit of value attached to it. That’s a meaningfully different situation from a blog or a product catalog page, where the thing being scraped is content a human might also browse for free, not a discrete paid service response.
Block, Allow, or Charge Through the Monetization Gateway: The Real Decision
| Approach | Best suited for | Revenue | Setup effort |
|---|---|---|---|
| Block via robots.txt / WAF | Content and storefront sites, training-data crawlers | None, but nothing lost either | Low |
| Allow for free | Sites wanting AI-search visibility and citations | Indirect (referral traffic, brand mentions) | None |
| Charge per request (HTTP 402) | API-shaped products with a clear per-call value | Direct, per request | Moderate, requires eligibility and integration |
Most small business sites fall into the first two rows today. The third row is where this is heading for anyone running an actual API.
Why This Matters More Than Another Bot-Blocking Tool
Most coverage of AI crawler management treats the problem as purely defensive: identify the bot, decide whether to allow or deny it, done. That framing misses the economic shift happening underneath it. AI crawlers aren’t a nuisance you tolerate for the sake of search visibility the way Googlebot is; most of them, training crawlers especially, send no traffic back to the site they scraped, ever. Blocking them costs nothing and loses nothing.
But a growing second category of AI traffic, live agents fetching a page in real time to answer a user’s question right now, behaves more like a user than a bot, and blocking that category outright can mean losing a referral a human visitor would have followed instead. A per-request charge is a genuinely new middle option between those two extremes: don’t block the traffic, don’t give it away free either, extract some value from it automatically.
What to Do With the Monetization Gateway Right Now
The honest answer, for most small business websites, is: not much yet. The beta is currently restricted to eligible U.S.-based sellers and buyers, with international expansion only planned, not available. It’s also built around API-style endpoints with a clear per-request value, which doesn’t map cleanly onto a typical WordPress blog or a PrestaShop product catalog, where the thing being requested is a rendered page rather than a discrete service call.
If your business exposes an actual API (a pricing endpoint, a data feed, a PDF or document generation service), this is worth watching closely and applying for once eligibility opens up further, since AI agents are a real and growing source of request volume against exactly that kind of endpoint. If your site is a standard content or storefront site, the practical move for now is still the blocking and preference-signaling tools that already exist: a current robots.txt with explicit AI-crawler directives, and Cloudflare’s own existing one-click AI bot blocking if you’re already on its network.
Monetization is the longer-term direction this is heading, not something a typical small business site can configure this week.
The Deeper Shift This Points To
What’s genuinely new here isn’t the specific pricing mechanism so much as the admission, from one of the internet’s largest infrastructure providers, that block-or-allow was never going to be a complete answer to AI crawler traffic. Treating a page view from an autonomous agent as economically different from both a human visit and a bulk training scrape is a more honest model of what’s actually happening to web traffic right now.
Expect the eligibility restrictions here to loosen over time and other CDN and hosting providers to ship some version of the same idea, since the underlying problem, AI agents making automated requests at a scale and pattern human visitors never did, isn’t specific to Cloudflare’s customer base. A reserved, two-decade-old status code finally getting used in production is as good a sign as any that this round of the AI-traffic debate is heading somewhere more structural than another robots.txt directive.
If you run anything API-shaped, request access through the Cloudflare Dashboard or by emailing [email protected] and keep an eye on when eligibility expands beyond the current U.S.-only beta. If you run a standard content or storefront site, keep your robots.txt and bot-management settings current in the meantime and treat this as a trend worth watching over the next year rather than a tool to configure today.
Source: Cloudflare Blog.
Related reading: OpenAI Says ChatGPT’s Own Fetch Bot Doesn’t Have to Follow Your Robots.txt and Your Robots.txt Looks Fine. Your Site Might Still Be Invisible to AI Anyway.

