Cloudflare AI Gateway

LLM proxy with free analytics, caching and rate limits across providers

Security & Safety Freemium Has API
Researched · Published · Reviewed
RECATOOLS Score
7.7 / 10
Capability
7
Value for money
9
Ease of use
7
ASEAN readiness
7
API quality
8
Founded
2023
HQ
San Francisco, California, USA
Developer
Cloudflare, Inc.

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.

Advertisement

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.

Logs (first gateway on/after 24 Sep 2026)
Workers Logs pricing
Observability pricing from 1 Dec 2026
  • 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
Logs (legacy)
By Workers plan
First gateway before 24 Sep 2026
  • Workers Free: 100,000 logs total across all gateways
  • Workers Paid: 10,000,000 logs per gateway
Logpush
Usage-based
All self-serve plans
  • 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
Guardrails
Usage-based
Workers AI inference
  • Billed as Workers AI token-based inference (llama-guard-3-8b)
Unified Billing
5% on credits
Credit card only
  • 5% fee on credits purchased
  • Provider inference passed through with no markup

Use cases

LLM API observability AI cost control Prompt logging

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
Advertisement
RECATOOLS Verdict

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.

Desk research by RECATOOLS from public sources, written with AI assistance — not a hands-on test. How we review

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

Researched on
Published on
Last reviewed

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.

Data accuracy

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 →

Advertisement