Cloudflare AI Gateway logo

Cloudflare AI Gateway Review (2026)

Core gateway features free on every Cloudflare plan, running at the edge rather than in one region. Its 2026 unified billing lets you pay OpenAI, Anthropic and Google through a single Cloudflare invoice.

Researched

Rating

4.0

Starting Price

$0

Free Plan

Yes

SDKs & Frameworks

3

Deployment

3

Best For

Teams already on Cloudflare who want caching, rate limiting and cost visibility at the edge with no markup, and who have separate tooling for evaluation.

Last Updated:

10 Things You Should Know About Cloudflare AI Gateway

  1. 1 AI Gateway is available on all Cloudflare plans with core features offered free
  2. 2 Core features include dashboard analytics, caching and rate limiting
  3. 3 The free tier includes 100,000 AI Gateway logs per month
  4. 4 The Workers Paid plan starting at $5 per month provides 1 million logs
  5. 5 Unified billing was introduced in 2026, covering OpenAI, Anthropic and Google AI Studio
  6. 6 Supported providers include OpenAI, Anthropic, Google, Replicate and Workers AI
  7. 7 Cloudflare has stated that some future features may become part of a premium plan
  8. 8 Observability covers request metrics, logs, usage analytics and cost visibility

Pros & Cons

Pros

  • Core features are genuinely free on every Cloudflare plan, which is the most generous entry point of any managed gateway
  • No percentage markup on tokens, unlike OpenRouter's 5.5%
  • Runs at the edge, so the control plane sits near your users rather than in a single region
  • Unified billing consolidating OpenAI, Anthropic and Google onto one Cloudflare invoice removes real procurement friction
  • Caching and rate limiting at the gateway are mature capabilities inherited from Cloudflare's core business
  • One line of code and a Cloudflare account to get started

Cons

  • Metered on logs rather than requests, so the free tier's 100,000 logs is the real constraint
  • Observability stops at request metrics, logs, usage and cost - there is no structured evaluation or CI/CD gating
  • Cloudflare has stated some future features may become part of a premium plan, so today's free scope is not a commitment
  • Provider coverage is narrower than LiteLLM's 100+ or OpenRouter's 500+ models
  • Ties you to Cloudflare as an infrastructure relationship, which is significant if you are not already a customer

Features

Routing to OpenAI, Anthropic, Google, Replicate and Workers AI
Analytics, logging, caching and rate limiting
Request retry and model fallback
DLP scanning and guardrails
Unified billing for third-party model usage through Cloudflare
Runs on Cloudflare's global edge network

Free because the gateway is not the product

Core features are free on every Cloudflare plan - dashboard analytics, caching and rate limiting - requiring a Cloudflare account and one line of code.

And critically, there is no percentage markup on your tokens.

That is the structural difference against OpenRouter, which takes 5.5% of everything you spend, forever, with no volume discounts. At $50,000 a month of provider spend, that is $2,750 monthly to OpenRouter and nothing to Cloudflare.

The reason Cloudflare can do this is worth understanding rather than treating as a gift: the gateway is not the product. It is a way to make Cloudflare more central to your infrastructure, and they monetise elsewhere. That is genuinely a good deal for you - as long as you are comfortable with the relationship it deepens.

The meter is logs

PlanPriceAI Gateway logs/month
Free$0100,000
Workers PaidFrom $5/mo1,000,000

Logs, not requests or tokens. That is the number to model, and it means consumption depends partly on how much you choose to retain rather than purely on traffic. Persistent logs are available on all plans with storage limits varying by plan.

For most teams 100,000 is a real free tier rather than a trial, and $5 for ten times that is close to negligible - a striking contrast with Langtail’s $99 entry tier or Parea’s $150.

Unified billing solves a procurement problem

Introduced in 2026, unified billing lets you pay for third-party model usage from OpenAI, Anthropic and Google AI Studio through a single Cloudflare invoice.

This sounds administrative and is more valuable than it reads. The friction it removes is not technical:

  • Separate vendor relationships, each needing approval
  • Separate payment methods and invoices to reconcile
  • Separate spend to track across three dashboards

In a company of any size, adding a vendor is a multi-week process. Consolidating model spend onto an existing supplier relationship sidesteps that entirely, and gives you one place to see total spend.

Nothing else in this category offers it.

The edge argument

Cloudflare AI Gateway runs on Cloudflare’s global edge network, so the control plane sits close to your users rather than in a single region.

For a component that sits in the request path, that matters. Every gateway adds latency by definition; one running at the edge adds less of it for geographically distributed users than a single-region proxy does.

This is inherited capability rather than something built for AI, which is also why the caching and rate limiting are mature - they come from Cloudflare’s core business rather than being a first attempt.

Also included: request retry, model fallback, DLP scanning and guardrails.

Where it stops

Evaluation. Observability centres on request metrics, logs, usage analytics and cost visibility.

You will see what was called, how often, how fast, and what it cost. You will not see whether the answers were any good.

That is a reasonable scope boundary, but it means pairing this with Langfuse, Logfire or a dedicated eval framework - the same architecture LiteLLM implies. This is the routing and caching layer, not the quality layer.

Provider coverage is also narrower - OpenAI, Anthropic, Google, Replicate and Workers AI, against LiteLLM’s 100+ integrations and OpenRouter’s 500+ models. If breadth of model access is the point, this is not the tool.

One honest caveat on the free tier

Cloudflare has stated it will continue expanding the product, with some new features free as core features and others potentially part of a premium plan, announced as they become available.

That is a fair and transparent position rather than a warning sign. But it does mean today’s free scope is not a permanent commitment. If a specific capability is why you are choosing this, check whether it is core or newly added - new is where the premium risk sits.

Should you use it?

Use Cloudflare AI Gateway if you already run Cloudflare, you want caching, rate limiting and cost visibility with no markup, and you have separate tooling for evaluation.

Don’t use it if you need broad provider coverage, structured evaluation in the same product, or you are not otherwise a Cloudflare customer - adopting Cloudflare to get a gateway is a bigger decision than adopting LiteLLM.

Bottom line: the most generous free managed gateway available, with genuine architectural advantages at the edge and a billing consolidation nobody else offers. Model your log volume, pair it with real evaluation tooling, and it is very hard to beat on cost.


Pricing, log limits, provider coverage and the 2026 unified billing addition verified against Cloudflare’s own documentation and third-party comparisons on 3 August 2026. This is a researched directory entry - we have not yet instrumented this gateway with our reference application.

Pricing Plans

Free

$0

  • Core gateway features on all Cloudflare plans
  • Dashboard analytics, caching and rate limiting
  • 100,000 AI Gateway logs per month
Most Popular

Workers Paid

From $5/mo

  • 1 million AI Gateway logs per month
  • Same core gateway features

Enterprise

Custom

  • Higher log retention and limits
  • Contact sales

SDKs & Frameworks

OpenAI-compatible endpoint Any language via HTTP Workers AI native

Deployment

OpenAI, Anthropic, Google, Replicate, Workers AI Cloudflare global edge network Unified billing across supported providers

Eval Methods

None built in - request metrics and logs only Structured evaluation requires a separate tool

Billing Unit

Logs per month

Our Verdict

Cloudflare AI Gateway is the best free managed gateway available, and the reason is that Cloudflare is not trying to make money from it directly. Core features - dashboard analytics, caching, rate limiting - are free on every plan, there is no percentage markup on your tokens, and the free tier includes 100,000 logs a month with the $5 Workers Paid plan lifting that to a million. Compare OpenRouter charging 5.5% of everything you spend forever, and the difference at volume is substantial. Running at the edge is a genuine architectural advantage too, putting the control plane near your users rather than in one region. The 2026 addition of unified billing, letting you pay for OpenAI, Anthropic and Google AI Studio usage through a single Cloudflare invoice, removes procurement friction that is more annoying in practice than it sounds. Two honest limits. The metering is logs, not requests, so that is the number to model. And observability stops at request metrics and cost - there is no structured evaluation, so this is one component of a stack rather than the stack.

Similar Tools

Frequently Asked Questions

Is it really free?

Yes, for core functionality, and that is unusual enough to state plainly. AI Gateway is available on all Cloudflare plans with core features offered for free, requiring just a Cloudflare account and one line of code. Dashboard analytics, caching and rate limiting are included. Crucially there is no percentage markup on your tokens, which is the structural difference against OpenRouter's 5.5%. The reason Cloudflare can do this is that the gateway is not the product - it is a way to make Cloudflare more central to your infrastructure, and they monetise elsewhere. That is a good deal for you as long as you are comfortable with the relationship.

What is the actual metered limit?

Logs, not requests, and that is the number to model. The free tier includes 100,000 AI Gateway logs per month, and the Workers Paid plan from $5 per month provides 1 million. Persistent logs are available on all plans with storage limits varying by plan. Because the unit is logs rather than requests or tokens, your consumption depends on how much you choose to retain rather than purely on traffic. For most teams 100,000 is a genuine free tier rather than a trial, and $5 for ten times that is close to negligible.

What does unified billing actually solve?

More than it sounds like. Introduced in 2026, it lets teams pay for third-party model usage from OpenAI, Anthropic and Google AI Studio through a single Cloudflare invoice. The friction it removes is procurement rather than technical - separate vendor relationships, separate payment methods, separate invoices to reconcile and separate spend to track, each requiring its own approval in a company of any size. Consolidating that onto an existing supplier relationship is genuinely valuable for teams where adding a vendor is a multi-week process. It also means one place to see total model spend rather than three dashboards.

Where does it stop being enough?

At evaluation. Cloudflare's observability centres on request metrics, logs, usage analytics and cost visibility, so structured evaluation and CI/CD gating require a separate workflow. You will see what was called, how often, how fast and what it cost. You will not see whether the answers were any good. That is a reasonable scope boundary for a gateway, but it means pairing this with Langfuse, Logfire or a dedicated eval framework - the same architecture LiteLLM implies. Treat it as the routing and caching layer, not the quality layer.

Will it stay free?

Core features look safe, but Cloudflare has been explicit that this may change at the edges. They note they will continue expanding the product, with some new features free as core features and others potentially part of a premium plan, announced as they become available. That is a fair and honest position rather than a warning sign, but it means today's free scope is not a permanent commitment. If a specific capability is why you are choosing this, check whether it is core or new, since new is where the premium risk sits.

How does it compare with LiteLLM?

Cloudflare if you want managed and are already a customer; LiteLLM if you want maximum provider coverage and full control. Cloudflare gives you a free managed gateway at the edge with no infrastructure to run, but narrower provider coverage and a Cloudflare relationship. LiteLLM is MIT with 100+ providers and no markup, but you operate it. Both avoid OpenRouter's percentage fee, which is the main thing that matters at volume. If you already run Cloudflare, this is close to a free upgrade. If you do not, adopting Cloudflare to get a gateway is a bigger decision than adopting LiteLLM.