<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc" -->

---
title: Monetization Gateway beta: charge AI agents for...
description: Cloudflare has opened a closed beta for its Monetization Gateway, letting domain owners charge AI agents per-use for APIs, MCP tools, and datasets using the...
canonical: https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Monetization Gateway beta: charge AI agents for consumption with HTTP 402 | daily.dev
og:description: Cloudflare has opened a closed beta for its Monetization Gateway, letting domain owners charge AI agents per-use for APIs, MCP tools, and datasets using the...
og:url: https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc
og:image: https://api.daily.dev/og/posts/KbaO91rgc.png
og:image:alt: Monetization Gateway beta: charge AI agents for consumption with HTTP 402
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Cloudflare](https://daily.dev/sources/cloudflare)** · 10 min read · 1 upvotes · 0 comments

## Summary

Cloudflare has opened a closed beta for its Monetization Gateway, letting domain owners charge AI agents per-use for APIs, MCP tools, and datasets using the HTTP 402 status code combined with Coinbase's x402 protocol and USDC stablecoin payments on Base. Sellers define pricing rules matching request attributes, and Cloudflare handles payment verification, settlement, retries, and analytics. Four customers are already using it in production: Cloudflare's own AI Gateway (pay-per-inference via a PAYMENT-METHOD: x402 header), Ceramic.ai (pay-per-search on a 40-billion-page index), Stocktwits (pay-per-request stock sentiment signals), and API2PDF (pay-per-PDF-generation with variable pricing). The beta is currently limited to U.S.-based sellers and buyers, with more geographies and payment rails planned.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.cloudflare.com/monetization-gateway-beta>

## Questions this post answers

### How do I enable pay-per-use pricing for AI Gateway inference requests using x402?

Add the header Payment-Method: x402 to a POST request to the Cloudflare AI Gateway/AI run endpoint. This lets U.S.-based Cloudflare customers pay for inference on a select set of models at request time instead of relying solely on prepurchased credits, with settlement handled through Coinbase's x402 Facilitator using USDC on the Base blockchain.

_daily.dev surfaces practical guides like this for developers wiring agent payments into their apps._

### What is the Cloudflare Monetization Gateway and how does it use HTTP 402 to charge AI agents?

It is a Cloudflare beta product that lets domain owners charge AI agents per request for access to APIs, MCP tools, or datasets, using the HTTP 402 Payment Required status code. Sellers set pricing rules by URL, header, or query parameter; buyers receive payment instructions, sign an authorization, and get the resource once payment settles via Coinbase's x402 Facilitator in USDC on Base.

_developers deciding how to monetize agent traffic can track releases like this on daily.dev._

### Which companies are already using Cloudflare's Monetization Gateway in production for agent payments?

Four early adopters are live: Cloudflare's own AI Gateway charges per-inference request, Ceramic.ai charges agents per web search across its 40-billion-page index, Stocktwits charges per request for stock sentiment and trending signals, and API2PDF charges per PDF generated from HTML or Office documents, using variable pricing tied to compute and bandwidth cost.

_daily.dev helps builders evaluating agent monetization compare real production case studies like these._

## Similar posts on daily.dev

- [Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402](https://daily.dev/posts/announcing-the-monetization-gateway-charge-for-any-resource-behind-cloudflare-via-x402-aylb3tuzy) · Cloudflare · 1 upvotes · 0 comments
- [Cloudflare and AWS Embed x402 Agent Payments at the Edge](https://daily.dev/posts/cloudflare-and-aws-embed-x402-agent-payments-at-the-edge-vmwjvbzct) · InfoQ · 0 upvotes · 0 comments
- [AI agents can browse the web. Now they need a way to pay for it.](https://daily.dev/posts/ai-agents-can-browse-the-web-now-they-need-a-way-to-pay-for-it--xu9muwtef) · The Next Web · 1 upvotes · 0 comments
- [Why Stack Overflow and Cloudflare launched a pay-per-crawl model](https://daily.dev/posts/why-stack-overflow-and-cloudflare-launched-a-pay-per-crawl-model-oeiqajvbz) · Stack Overflow Blog · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#cloudflare](https://daily.dev/tags/cloudflare), [#stablecoin](https://daily.dev/tags/stablecoin)

[View this post on daily.dev](https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Monetization Gateway beta: charge AI agents for consumption with HTTP 402","url":"https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc"},"datePublished":"2026-09-30T13:01:49.548Z","dateModified":"2026-10-01T20:21:11.291Z","description":"Cloudflare has opened a closed beta for its Monetization Gateway, letting domain owners charge AI agents per-use for APIs, MCP tools, and datasets using the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bdfdd4abe2c6d8d073aae8a655aef775?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bdfdd4abe2c6d8d073aae8a655aef775?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Cloudflare","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Cloudflare","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/38522e1d11354cd6b7af66f9d4316735","url":"https://daily.dev/sources/cloudflare"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,cloudflare,stablecoin","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Cloudflare","item":"https://daily.dev/sources/cloudflare"},{"@type":"ListItem","position":3,"name":"Monetization Gateway beta: charge AI agents for consumption with HTTP 402"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/monetization-gateway-beta-charge-ai-agents-for-consumption-with-http-402-kbao91rgc#faq","mainEntity":[{"@type":"Question","name":"How do I enable pay-per-use pricing for AI Gateway inference requests using x402?","acceptedAnswer":{"@type":"Answer","text":"Add the header Payment-Method: x402 to a POST request to the Cloudflare AI Gateway/AI run endpoint. This lets U.S.-based Cloudflare customers pay for inference on a select set of models at request time instead of relying solely on prepurchased credits, with settlement handled through Coinbase's x402 Facilitator using USDC on the Base blockchain. daily.dev surfaces practical guides like this for developers wiring agent payments into their apps."}},{"@type":"Question","name":"What is the Cloudflare Monetization Gateway and how does it use HTTP 402 to charge AI agents?","acceptedAnswer":{"@type":"Answer","text":"It is a Cloudflare beta product that lets domain owners charge AI agents per request for access to APIs, MCP tools, or datasets, using the HTTP 402 Payment Required status code. Sellers set pricing rules by URL, header, or query parameter; buyers receive payment instructions, sign an authorization, and get the resource once payment settles via Coinbase's x402 Facilitator in USDC on Base. developers deciding how to monetize agent traffic can track releases like this on daily.dev."}},{"@type":"Question","name":"Which companies are already using Cloudflare's Monetization Gateway in production for agent payments?","acceptedAnswer":{"@type":"Answer","text":"Four early adopters are live: Cloudflare's own AI Gateway charges per-inference request, Ceramic.ai charges agents per web search across its 40-billion-page index, Stocktwits charges per request for stock sentiment and trending signals, and API2PDF charges per PDF generated from HTML or Office documents, using variable pricing tied to compute and bandwidth cost. daily.dev helps builders evaluating agent monetization compare real production case studies like these."}}]}
```

