AivexaNewsSearch
AI news for builders and product teamsChecked every hour

Monetization Gateway beta: charge AI agents for consumption with HTTP 402

Collected Oct 8, 2026

Cloudflare announced the closed beta of its Monetization Gateway, a service that lets domain owners charge AI agents for access to websites, APIs, MCP tools or datasets. The company says the gateway was announced three months ago and has since been built with customers who are already running it in production. Access is by application through the Cloudflare Dashboard, and the beta is limited to eligible sellers and buyers based in the United States, with support for additional geographies described as on the way.

The mechanism is built on the HTTP 402 Payment Required status code. A seller marks which requests need payment and at what price; a buyer that hits the resource without paying gets a 402 response carrying payment instructions, signs an authorization, and receives the resource once the payment has settled. Cloudflare stresses that there is no redirect to a checkout page and no separate payment API to call — the payment negotiation happens inline with the resource request itself. In its simplest description, the gateway is a paywall for agents.

Pricing rules can match any part of a request, including the URL, headers or query parameters, and sellers pick from several pricing schemes. Cloudflare handles payment verification and settlement through Coinbase's x402 Facilitator, along with failures and retries, analytics, and tracking changes to the x402 protocol. Payments settle on the Base blockchain in USDC, a stablecoin pegged to the US dollar. Cloudflare also describes an origin-controlled pricing configuration, where the gateway fetches pricing directly from the seller rather than requiring the seller to keep a rules catalog in the gateway. Sellers who want that setup are asked to email Cloudflare. The roadmap mentions agent-facing service discovery, transaction logs, additional payment rails and identity primitives.

One nuance in the product design: the gateway is aimed at resources where each request is the use, such as APIs, tools and data. Cloudflare separates high-value content, where a page might be crawled once and reused many times, and points that case to a separate offering called Pay Per Use, which relies on a trusted network of verified buyers who report each use and pay for it. This suggests the company is drawing a distinction between metered API-style access and content licensing, rather than treating every monetized resource the same way.

Cloudflare also disclosed four customers using the gateway in production. The first is its own AI Gateway, a control plane and model marketplace that gives developers access to hundreds of AI models through a single API key. Starting today, US-based Cloudflare customers can pay for inference at request time against a select set of models by adding the header PAYMENT-METHOD: x402, with instructions in the AI Gateway developer docs. AI Gateway normally relies on prepaid credits; Cloudflare argues that requiring a credit balance adds friction as more agents carry wallets, and says the gateway was co-designed to support origin-controlled pricing so AI Gateway can keep using its existing per-token pricing engine.

Ceramic.ai, a web search API for agents, uses the gateway's fixed pricing scheme to let agents run a search and pay without an API key. The company maintains a proprietary index of more than 40 billion pages and says it returns results in as little as 50 milliseconds. Its founder, Dr. Anna Patterson, framed search as one of the first things an agent needs and therefore one of the first things an agent should be able to buy. Search is also highly elastic: a simple question might take one query and a research task hundreds, so per-query payment lets an agent decide how hard to look instead of rationing against a pre-set budget.

Stocktwits, launched in 2008 and used by more than 10 million people, is exposing its market signals through a separate agent-facing path with the gateway in front of it, while leaving its existing API and enterprise data products unchanged. The signals include sentiment (whether recent posts about a ticker skew bullish or bearish), message volume relative to a ticker's typical activity, follower counts as a measure of sustained retail interest, and trending tickers. Each request is priced individually, so an agent monitoring a portfolio can pay for the specific lookups it makes without a traditional data license. Founder and CEO Howard Lindzon described request-level charging as a new distribution channel for the company's data.

API2PDF, a REST API for generating PDFs from HTML and Office documents that launched in 2018, uses the gateway to return a 402 when a caller has no API key. Previously, customers had to create an account, get a key, and after the first month supply a credit card — a flow the company says caused more than 50 percent drop-off in conversion. Because each request's compute and bandwidth costs vary, API2PDF uses variable pricing to tell the agent the maximum a single request could cost; the request is fulfilled after payment and settles only at actual consumption.

In practice, the interesting engineering bet here is that HTTP 402 — long reserved and effectively unused — becomes the standard handshake for machine payments. A developer building an agent that calls paid tools would need to handle a 402 response, read the payment instructions, sign an authorization and retry, rather than managing API keys or prepaid balances per vendor. That could lower integration overhead and make many small purchases viable, since the flow is designed for cheap, fast transactions with minimal human intervention. A likely trade-off is dependence on stablecoin rails and a specific blockchain: Cloudflare names USDC on Base today, and says other rails may emerge over time. Settlement latency, refund behavior for failed deliveries, and how disputes are handled are not spelled out in the announcement, and the US-only beta means teams elsewhere cannot yet test it. The Pay Per Use split also implies that content publishers with crawl-once-read-many economics will need a different integration than API providers. Cloudflare's stated intent to push 402 natively through more of its infrastructure suggests the gateway is meant to become a general billing primitive on its network rather than a standalone product.

Why it matters: For API and tool providers, this is a way to sell to autonomous agents without accounts, keys or subscription negotiation, and for agent builders it hints at a future where a 402-and-pay retry loop replaces per-vendor credential management. The US-only closed beta limits near-term adoption, so most teams should treat this as a design signal — worth prototyping against x402 semantics and watching whether the pricing, identity and geolocation gaps close. Any move to agent-native payments also raises new questions for finance and fraud teams, since spending can happen machine-to-machine without a human in the loop.

Read at Cloudflare AI

Based on reporting from the original publisher. Visit the source for full context and later updates.

Publisher excerpt

Cloudflare’s AI Gateway, Ceramic.ai, Stocktwits, and more are using the Cloudflare Monetization Gateway today to charge agents for access to tokens, APIs, and MCP tools. U.S.-based sellers can now apply for access to the closed beta.