Cloudflare Monetization Gateway
Monetization Gateway beta: charge AI agents for consumption with HTTP 402
Agent 经济的基础设施关键一步,HTTP 402 让机器自动付费成为可能,做 Agentic 应用的同学务必关注这种新的商业化范式。
Today, we’re making the Cloudflare Monetization Gateway available as part of a closed beta, and showcasing four customer use cases that are in production today. Since we announced the plan three months ago, we have been working closely with our customers to make the Gateway fast, flexible, and easy to use.
今天,我们宣布 Cloudflare Monetization Gateway 进入封闭测试阶段,并展示四个已在生产环境中运行的客户用例。自三个月前公布该计划以来,我们一直与客户紧密合作,使 Gateway 具备高速、灵活和易用的特性。
With just a few clicks, the Monetization Gateway allows domain owners to charge agents for access to their website, APIs, MCP tools, or datasets. Request access today in the Cloudflare Dashboard.
只需几次点击,Monetization Gateway 即可允许域名所有者向代理(agents)收取访问其网站、API、MCP 工具或数据集的费用。立即在 Cloudflare Dashboard 中申请访问权限。
Proliferation of agents and machine payments
代理与机器支付的普及
Today, most software businesses sell their products through subscriptions or prepaid credits. These business models require buyers to make a considerable upfront economic investment, so buyers limit themselves to a few subscriptions that fit into their budget. But this business model doesn’t align itself with how the predominant source of traffic on the Internet — agents — operates.
如今,大多数软件企业通过订阅或预付费额度销售产品。这些商业模式要求买家进行可观的前期经济投入,因此买家通常只选择少数符合预算的订阅服务。但这种商业模式并不契合互联网上最主要的流量来源——代理(agents)——的运行方式。
Agents seek outcomes, whether that’s sourced from a direct question or an implicit elicitation. To achieve an outcome, an agent may visit new sites, call MCP tools, or ingest data feeds. Businesses everywhere want to be in the critical path to help agents get better results. This helps them meet new users where they are, get paid for their inputs to those agents' answers, and take a leading position in headless agentic commerce.
代理寻求的是结果,无论是源自直接提问还是隐式引导。为了实现目标,代理可能会访问新网站、调用 MCP 工具或摄入数据流。各地的企业都希望处于关键路径中,以帮助代理获得更好的结果。这有助于他们在用户所在之处接触新用户,为其对代理回答的贡献获得报酬,并在无头代理商务(headless agentic commerce)中占据领先地位。
Companies need to align their business models with the consumption patterns of agents to capture this opportunity. Payments must match an agent's consumption unit: per request, per search query, per token. The popular payment rails of today are unable to support this. These payment rails assume that the buyer will accept high latency, will only transact in large dollar values, and that they are a well-known, or identifiable, entity to the seller. Agents desire the opposite: cheap, fast, and reliable payment rails that can safely scale with minimal human intervention.
企业需要将其商业模式与代理的消费模式对齐,以抓住这一机遇。支付必须匹配代理的消费单位:按请求、按搜索查询、按令牌(token)。当今流行的支付通道无法支持这一点。这些支付通道假设买家将接受高延迟、仅进行大额美元交易,并且是卖家所熟知或可识别的主体。而代理则恰恰相反:它们需要廉价、快速且可靠的支付通道,能够在最少人工干预的情况下安全扩展。
Sellers and buyers will be incentivized to align their business models with consumption, and they’ll use the payment network that helps them achieve that. Today, stablecoin transactions, and their underlying blockchain networks, are able to support these requirements. Over time, we may see existing networks introduce solutions or new payment networks come online. The Monetization Gateway exists to help ensure that sellers can focus on their product, and buyers can receive a predictable buying experience.
卖方和买方将有动力将其商业模式与消费行为对齐,并使用能帮助他们实现这一目标的支付网络。目前,稳定币交易及其底层区块链网络能够支持这些需求。随着时间的推移,我们可能会看到现有网络推出解决方案,或者新的支付网络上线。Monetization Gateway 的存在旨在确保卖方可以专注于其产品,而买方能够获得可预测的购买体验。
Building with the Monetization Gateway
基于 Monetization Gateway 进行构建
The Monetization Gateway lets sellers charge agents for any resource behind Cloudflare’s network, priced per use. It's built for resources where every request is the use, like APIs, tools, and data. High-value content is different: a page might be crawled once and used a thousand times. For that, Pay Per Use offers a trusted network of verified buyers who report each use and pay for it.
Monetization Gateway 允许卖家对 Cloudflare 网络背后的任何资源向代理收费,按使用量定价。它专为那些每次请求即代表一次使用的资源而设计,例如 API、工具和数据。高价值内容则有所不同:一个页面可能被爬取一次,但被使用上千次。针对这种情况,Pay Per Use(按使用付费)提供了一个由已验证买家组成的可信网络,这些买家会报告每次使用情况并为此付费。
The gateway uses the HTTP 402 Payment Required status code so buyers can offer payment for a resource over HTTP, inline with the request for the resource itself. This is an important distinction because there is no redirect to a checkout page and no separate payment API to call.
该网关使用 HTTP 402 Payment Required(需要付款)状态码,以便买家可以通过 HTTP 为资源提供付款,与获取资源本身的请求内联进行。这是一个重要的区别,因为不存在重定向到结账页面的情况,也不需要调用单独的支付 API。
Sellers define which requests require payment, the cost, and where the payment should be sent. Buyers receive the payment instructions, sign an authorization, and receive the resource after the payment has been settled.
卖家定义哪些请求需要付款、费用是多少以及付款应发送至何处。买家接收付款指令,签署授权书,并在付款结算后获得资源。
In its simplest form, this can be thought of as a ‘paywall for agents’. Sellers can go live in seconds with a few clicks, identify the audience they want to charge, and ensure that buyers are unable to access the resources until the buyer has paid.
在最简单的形式下,这可以被视为一种“面向代理的付费墙”。卖家只需几次点击即可在几秒钟内上线,确定他们希望向其收费的目标受众,并确保在买家付款之前无法访问这些资源。
Beyond its ease of implementation, we provide sellers a set of pricing and monetization capabilities out of the box. You write pricing rules that match any part of a request, such as the URL, headers, or query parameters, and choose from several pricing schemes. We handle the rest: payment verification and settlement through Coinbase's x402 Facilitator, failures and retries, analytics, and keeping up with changes to the x402 protocol. Payments settle on the Base blockchain using USDC, a stablecoin pegged to the U.S. dollar. Over time, we plan to help sellers make their services discoverable to agents, expose logs for all transactions, support additional payment rails, and incorporate identity primitives.
除了易于实施之外,我们还为卖家提供开箱即用的定价和变现功能集。您可以编写匹配请求任意部分的定价规则,例如 URL、标头或查询参数,并从多种定价方案中进行选择。我们处理其余工作:通过 Coinbase 的 x402 Facilitator 进行付款验证和结算、处理失败与重试、分析数据,以及跟进 x402 协议的变更。付款通过 Base 区块链使用 USDC(一种与美元挂钩的稳定币)进行结算。随着时间的推移,我们计划帮助卖家使其服务对代理更具可发现性,公开所有交易的日志,支持更多的支付通道,并整合身份原语。
Let’s look at how our customers are using it in production today.
让我们看看我们的客户今天在生产环境中如何使用它。
Cloudflare AI Gateway: pay for inference
Cloudflare AI Gateway:为推理付费
Cloudflare’s AI Gateway is a control plane and model marketplace that allows developers to access hundreds of AI models with a single API key. Our goal is to operate the richest model catalog in the ecosystem and get it in the hands of as many customers as possible. AI Gateway allows customers to purchase credits that can be used toward all AI Gateway consumption. But as more agents carry wallets, maintaining a credit balance as the only usage mechanism adds unnecessary friction.
Cloudflare 的 AI Gateway 是一个控制平面和模型市场,允许开发人员使用单个 API 密钥访问数百个 AI 模型。我们的目标是在生态系统中运营最丰富的模型目录,并尽可能多地将其交付给客户手中。AI Gateway 允许客户购买可用于所有 AI Gateway 消耗的积分。但随着越来越多的代理携带钱包,将维持积分余额作为唯一的使用机制会增加不必要的摩擦。
Starting today, U.S.-based Cloudflare customers can pay for inference at request time to a select set of models by adding the header PAYMENT-METHOD: x402. Detailed instructions are in our AI Gateway Developer Docs. Over time, you can expect to see the HTTP 402 status code embedded natively through more of Cloudflare’s infrastructure products.
从今天起,位于美国的 Cloudflare 客户可以通过添加 PAYMENT-METHOD: x402 标头,按请求时间为一组精选模型支付推理费用。详细说明请参阅我们的 AI Gateway 开发者文档。随着时间的推移,您将看到 HTTP 402 状态码更广泛地原生嵌入到 Cloudflare 的更多基础设施产品中。
AI Gateway has a complex pricing engine powering how each token gets billed. We’ve co-designed Monetization Gateway to meet the requirements of origin-controlled pricing. When this configuration is enabled, the Monetization Gateway requests pricing information directly from the seller (AI Gateway). For AI Gateway, this means being able to rely on its existing pricing module without having to maintain a rules catalog in the Monetization Gateway.
AI Gateway 拥有一个复杂的定价引擎,用于决定每个 token 的计费方式。我们共同设计了 Monetization Gateway 以满足源站控制定价的需求。启用此配置后,Monetization Gateway 会直接向卖家(AI Gateway)请求定价信息。对于 AI Gateway 而言,这意味着可以依赖其现有的定价模块,而无需在 Monetization Gateway 中维护规则目录。
Need to set prices from your origin? Email us and we'll help you get started.
需要从您的源站设置价格吗?请给我们发邮件,我们将帮助您开始使用。
Ceramic.ai: pay for web search
Ceramic.ai:为网络搜索付费
"The web was built for a human buyer, someone who signs up and enters a card. Agents need to act on their own behalf, and payments are how they do it. Search is one of the first things every agent needs, so it should be one of the first things an agent can buy." — Dr. Anna Patterson, Founder, Ceramic.ai
"互联网是为人类买家构建的,即那些注册并输入银行卡的人。智能体需要代表自身行事,而支付正是它们实现这一目标的方式。搜索是每个智能体最先需要的功能之一,因此它也应该是最先能被智能体购买的功能之一。" —— Dr. Anna Patterson,Ceramic.ai 创始人
If inference is the reasoning, search is the reality check. Ceramic.ai provides a web search API built for agents. Ceramic.ai maintains a proprietary index of more than 40 billion pages and has optimized every layer of its stack for machine callers, returning search results in as little as 50 milliseconds. At that speed, an agent can search repeatedly throughout a task.
如果推理是逻辑推演,那么搜索就是现实检验。Ceramic.ai 提供了一款专为智能体构建的网络搜索 API。Ceramic.ai 维护着一个包含超过 400 亿个页面的专有索引,并对其技术栈的每一层进行了优化,以适配机器调用者,搜索结果的返回时间可低至 50 毫秒。凭借这样的速度,智能体可以在任务执行过程中反复进行搜索。
That makes search a natural fit for agent-native payments. Search is one of the most elastic things an agent buys. A simple question might take one query, while a complex research task might take hundreds. When an agent can pay for search itself, it no longer has to ration queries against a budget someone set in advance. It can decide how hard to look based on the task, spending more when the stakes call for more evidence.
这使得搜索成为智能体原生支付的天然契合点。搜索是智能体购买中最具弹性的服务之一。一个简单的查询可能只需一次搜索,而一项复杂的研究任务可能需要数百次。当智能体能够自行支付搜索费用时,它就不再需要根据预先设定的预算来限制查询次数。它可以根据任务需求决定搜索的深度,在需要更多证据时投入更多资源。
Ceramic.ai uses the Monetization Gateway’s fixed pricing monetization scheme to allow agents to pay to execute a search without an API key. Use the demo and Ceramic.ai docs to learn more.
Ceramic.ai 利用 Monetization Gateway 的固定定价货币化方案,允许智能体在没有 API 密钥的情况下付费执行搜索。请使用演示版和 Ceramic.ai 文档了解更多详情。
Stocktwits: pay for stock signals
Stocktwits:为股票信号付费
“Agents change the way data gets consumed. Instead of a customer signing up for a subscription or negotiating an enterprise license, an agent can ask for exactly what it needs, when it needs it. The ability to charge for that individual request opens up a completely new way for Stocktwits to make its data available.” - Howard Lindzon, Founder and CEO, Stocktwits
"Agent 改变了数据消费的方式。客户不再需要订阅或协商企业许可证,Agent 可以在需要时请求它所需的确切内容。对单个请求收费的能力为 Stocktwits 提供了一种全新的数据提供方式。" —— Howard Lindzon,Stocktwits 创始人兼 CEO
When a stock starts moving, one of the first questions traders ask is: what is everyone else saying?
当某只股票开始波动时,交易员提出的第一个问题往往是:其他人都在说什么?
For 18 years, that conversation has been happening on Stocktwits. Launched in 2008, Stocktwits pioneered cashtags (like $NET) to organize market conversations around individual stocks. Today, more than 10 million people use Stocktwits to follow markets, share ideas, and see what other investors are talking about.
18年来,这种对话一直在 Stocktwits 上进行。Stocktwits 于 2008 年推出,率先推出了 cashtag(如 $NET)来围绕个股组织市场讨论。如今,超过 1000 万人使用 Stocktwits 来跟踪市场、分享观点,并了解其他投资者的讨论内容。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力