Cloudflare AI Gateway
LLM proxy with free analytics, caching and rate limits across providers
Overview
Cloudflare AI Gateway sits between your app and providers such as OpenAI, Anthropic, Google and Workers AI, adding analytics, exact-match caching, rate limits, spend limits, retries, fallback and model aliases behind one endpoint. Analytics, caching and rate limiting are free on all plans; logs follow Workers plan pricing, moving to Observability pricing on 1 December 2026, and Unified Billing adds a 5% fee on credits. Betas for x402 stablecoin payments and a Web Search API arrived in autumn 2026.
Pricing
Pricing shown for reference only. These figures reflect RECATOOLS research as of 23 Nov 2026 and may be out of date or incomplete. This is not financial or purchasing advice — always confirm the current price on the provider’s official website before making any decision.
- Dashboard analytics
- Caching
- Rate limiting
- DLP: two predefined profiles
- Workers Free: 200,000 events a day, 3-day retention
- Workers Paid: 20M a month included, +$0.60 per extra million, 7-day retention
- From 1 Dec: Free 0.5 GB/day; Paid 50 GB ingestion + 10 GB-month, then $0.25/GB and $0.10/GB-month; 7-day retention
- Workers Free: 100,000 logs total across all gateways
- Workers Paid: 10,000,000 logs per gateway
- 25 GB a month each to internal and external destinations, per account
- Then $0.03/GB internal, $0.10/GB external
- Transformation: 1 GB free, then $0.04/GB
- Billed as Workers AI token-based inference (llama-guard-3-8b)
- 5% fee on credits purchased
- Provider inference passed through with no markup
Use cases
What you can produce with Cloudflare AI Gateway
- One endpoint and REST API for OpenAI, Anthropic, Google, Workers AI and other providers
- Exact-match response caching, request retries, model fallback and model aliases
- Token, cost and latency analytics, plus a per-user spend view in User Insights
- Spend limits by model, provider or metadata, and per-gateway rate limiting
- Free DLP scanning with financial and national-ID profiles
- One Cloudflare credit balance for third-party and Workers AI models through Unified Billing
AI Gateway puts a control layer in front of LLM API calls: one endpoint for many providers, with token and cost analytics, exact-match caching, rate limiting, spend limits, retries, model aliases and fallback. Inference is passed through at provider rates, and Unified Billing lets one Cloudflare credit balance pay for third-party and Workers AI models for a 5% fee on credits.
The costs sit in logging. Newer accounts follow Workers Logs pricing, which moves to Cloudflare's gigabyte-based Observability pricing on 1 December 2026. Caching is exact-match only, and the docs list no MCP feature. A sensible default for teams already on Cloudflare.
What we found
Cloudflare AI Gateway is a proxy between an application and its model providers. It was announced in September 2023 and reached general availability in May 2024. Route OpenAI, Anthropic, Google or Workers AI calls through it and you get request, token and cost analytics, exact-match caching, rate limiting, retries and fallback. Cloudflare's pricing page lists analytics, caching and rate limiting as core features, free on every plan; DLP scanning is free with two predefined profiles.
Most 2026 additions concern money and control. Spend limits, added in June, cap dollar spend by model, provider or custom metadata. Unified Billing lets one prepaid credit balance pay for third-party models and, since August, Workers AI, with a 5% fee on each credit purchase and provider token prices passed through. User Insights attributes spend to users, flags anomalous sessions and, since September, suggests where a cheaper model would do. Two betas followed: x402 stablecoin payments for US customers and a Web Search API billed to gateway credits. November brought model aliases with ordered fallback, mandatory authentication for new gateways and last-used dates for stored keys.
Logging is where bills appear. Accounts whose first gateway dates from 24 September 2026 use Workers Logs: 200,000 events a day kept three days on Workers Free, or 20 million a month plus $0.60 per extra million, kept seven days, on Workers Paid, which starts at $5 a month. Older accounts keep caps of 100,000 logs on Free and 10 million per gateway on Paid. From 1 December 2026 these logs move to Observability pricing: 0.5 GB a day on Free, or 50 GB of ingestion and 10 GB-months of storage on Paid, then $0.25 per GB and $0.10 per GB-month.
Caching remains exact-match, semantic caching is only planned, and the docs list no MCP feature. For teams already on Cloudflare it is a cheap way to add cost visibility and guardrails, not a reason to switch platforms.
Compiled by RECATOOLS from public sources: vendor documentation and pricing, code repositories and published reporting.
About this listing
This entry was compiled from publicly available data including Cloudflare AI Gateway's official website, press releases, documentation, and reputable third-party publications. RECATOOLS is not affiliated with Cloudflare AI Gateway unless explicitly stated.
Third-party AI tools update their pricing, features, availability, and policies frequently. Information here may be outdated by the time you read this — we make reasonable efforts to keep listings current, but cannot guarantee absolute accuracy.
For the latest details, please refer to Cloudflare AI Gateway directly →
Spotted something out of date? Suggest an update →
Related reading
Alternatives to Cloudflare AI Gateway
More in Security & Safety