Cloudflare AI Gateway
Gateway adding caching and rate limits through one line of code. Our LLM gateway software ranking puts Cloudflare AI Gateway at #9 of 12.
Some vendors pay for placement on this site. This profile of Cloudflare AI Gateway is written by us, and vendor links are marked alike: disclosure.
Visit Cloudflare AI Gateway See it in the LLM gateway software ranking
At a glance
| Headquarters | United States |
|---|---|
| Pricing model | Core features included with a Cloudflare account; Unified Billing credits carry a percentage fee; guardrails billed as inference |
| API | Not covered by the sources we used |
| Best for | Teams already on Cloudflare who want caching and rate limits in front of providers |
| Free plan | No free tier on record |
| Deployment | Unclear from the vendor pages |
What is Cloudflare AI Gateway?
Cloudflare AI Gateway sits in front of calls to model providers and reports on them. The product page lists analytics for requests, tokens and cost, logging, caching, rate limiting, model and provider fallbacks with aliases, and dynamic routes, and says setup takes one line of code. A Cloudflare account is the only prerequisite named on the pricing page.
Supported providers include OpenAI, Anthropic, Google AI Studio, Workers AI, AWS Bedrock and Azure OpenAI, with more unnamed. The terms name Cloudflare, Inc. in San Francisco, governed by California law. The core features cost nothing extra, while Unified Billing credits, guardrails and logs beyond the free allowance carry their own conditions.
Cloudflare AI Gateway key features
- One-line setup. The documentation says a gateway needs a Cloudflare account and one line of code. Requests go to a URL of the form gateway.ai.cloudflare.com with account, gateway and provider in the path.
- Analytics on requests, tokens and cost. A dashboard reports how many requests were made, how many tokens they used and what they cost. Analytics are among the features the pricing page marks as free, though retention periods for the figures are not stated.
- Caching and rate limiting. Responses can be cached and request rates limited at the gateway, both listed as free core features. This helps cap provider bills, although the pages we read give no figures on typical savings.
- Fallbacks, aliases and dynamic routes. Model and provider fallbacks are available with aliases, and dynamic routes decide where requests go. The page does not list the conditions that trigger a switch, so behaviour on errors needs testing.
- DLP scanning. Data loss prevention scanning is free on all plans. Accounts without a Zero Trust subscription receive two predefined profiles, one for financial information and one for social, insurance and national identifier numbers.
- Three authentication routes. Callers can use Unified Billing with prepaid credits, BYOK with provider keys stored in Cloudflare, or provider keys sent in request headers. That lets a team choose between central billing and keeping its own provider contracts.
Who Cloudflare AI Gateway suits
- A developer adding visibility to an existing app. Changing the base URL to the gateway URL adds request, token and cost analytics without a rewrite. Provider keys can stay in request headers, so existing billing arrangements are left untouched.
- A small team that wants one invoice for model usage. Unified Billing with prepaid credits lets requests to third-party models be paid through Cloudflare. A 5 percent fee applies to credit purchases, so the convenience has a price worth weighing against direct provider billing.
- A company screening prompts for sensitive identifiers. DLP profiles for financial data and national identifier numbers apply at the gateway. Guardrails add model-based checks, billed as Workers AI inference, so their cost grows with prompt length.
Getting started with Cloudflare AI Gateway
The get-started page says a gateway can be created in three ways: automatically, with the default gateway ID made on the first authenticated request for third-party models; manually in the dashboard; or through the API. After that, requests are sent to a URL that includes your account ID, gateway ID and provider name.
You pick one of three authentication options: Unified Billing with prepaid credits, BYOK with provider keys stored in Cloudflare, or provider keys in request headers. The pages we read do not give a time to first request or sample code beyond the URL format.
Our verdict on Cloudflare AI Gateway
Cloudflare AI Gateway needs a Cloudflare account and one line of code, and analytics, caching and rate limiting cost nothing extra. It lists fallbacks with aliases, dynamic routes and DLP scanning on all plans.
Legacy Logs are limited to 100,000 in total on Workers Free. Unified Billing adds a 5 percent credit fee and takes cards only, and guardrails are billed as Llama Guard inference.
In our LLM gateway software ranking Cloudflare AI Gateway stands at #9 of 12: Kong AI Gateway sits directly above it and Martian directly below. Established names take the places after the first three, in ranked order, and we give no numeric score.
Cloudflare AI Gateway is based in the United States; 7 of the 12 products here share its region, North America.
The case for and against Cloudflare AI Gateway
- Cloudflare AI Gateway needs a Cloudflare account and one line of code, and analytics, caching and rate limiting cost nothing extra.
- Where it fits: Teams already on Cloudflare who want caching and rate limits in front of providers.
- Marked in our records as caching and limits.
- Unified Billing, one of the three traits the catalogue lists for Cloudflare AI Gateway.
- Marked in our records as DLP scanning.
- Not for: Buyers needing virtual keys with per-team budgets as the main feature.
- Legacy Logs stop at 100,000 across all gateways on the Workers Free plan, so log-heavy teams must move to a paid plan.
- Unified Billing accepts credit cards only.
Cloudflare AI Gateway pros and cons in practice
- Analytics, caching, rate limiting and DLP scanning are listed as free, so a first deployment needs no separate gateway budget.
- Setup is one line of code against a documented URL format.
- Provider inference is passed through at the provider's rates with no markup.
- Three authentication options let teams choose between prepaid credits and their own provider keys.
- Legacy Logs are limited to 100,000 in total across all gateways on Workers Free.
- Unified Billing adds a 5% fee on credit purchases and accepts only credit cards.
- Guardrail cost depends on prompt and response length, so it is hard to forecast.
- Without a Zero Trust subscription only two predefined DLP profiles are available.
Paying for Cloudflare AI Gateway
Charging model: Core features included with a Cloudflare account; Unified Billing credits carry a percentage fee; guardrails billed as inference.
The pricing page says the core features are free: dashboard analytics, caching and rate limiting, needing only a Cloudflare account. DLP scanning is free on all plans. Legacy Logs are capped at 100,000 logs in total across all gateways on Workers Free and 10,000,000 logs per gateway on Workers Paid. Gateways created on or after 24 September 2026 use Workers Logs instead, with retention under Workers Logs terms. Unified Billing adds a 5% fee on credit purchases, so a $100 purchase becomes a $105 charge. Provider inference is passed through at the provider's per-token rates with no markup, and only credit cards are accepted. Guardrails are billed as Workers AI token-based inference on Llama Guard 3 8B, scaling with prompt and response length.
Source: the pricing material on developers.cloudflare.com/ai-gateway, as read for Best LLM Gateway Software in 2026 and last reviewed on 23 November 2026.
Living with Cloudflare AI Gateway: setup and exit
Provider support named on the get-started page covers OpenAI, Anthropic, Google AI Studio, Workers AI, AWS Bedrock and Azure OpenAI, reached through a URL carrying account and gateway IDs.
Gateways created from 24 September 2026 log through Workers Logs.
As a Cloudflare product, it sits inside one vendor's wider platform.
Cloudflare AI Gateway: data and security
The website terms name Cloudflare, Inc., at 101 Townsend St., San Francisco, California 94107, USA, and are governed by California law. Provider keys can be stored in Cloudflare under the BYOK option, or sent in each request header and kept out of the gateway.
The pages we read do not list certifications, data residency options or how long prompt and response content is kept, apart from the log limits above. DLP profiles screen for financial and national identifier data, but the page does not say whether detected content is blocked or only flagged.
Integrations and ecosystem
Integrations the vendor names (9):
- OpenAI
- Anthropic
- Google AI Studio
- Workers AI
- AWS Bedrock
- Azure OpenAI
- Cloudflare Workers
- Cloudflare Zero Trust
- Llama Guard 3 8B
Fact sheet: Cloudflare AI Gateway
| Product | Cloudflare AI Gateway |
|---|---|
| Vendor website | developers.cloudflare.com/ai-gateway |
| Catalogue tags | Caching and limits, DLP scanning, Unified Billing |
| Headquarters | United States (North America) |
| Primary guide | Best LLM Gateway Software in 2026 |
| Price visibility | Model recorded, no figure |
| Alternatives page | No dedicated page |
| What we do not hold | uptime history and customer numbers |
| Head-to-head pages | Not paired so far |
| Rank there | #9 of 12 |
Where else Cloudflare AI Gateway is ranked
| Guide | Position |
|---|---|
| Best LLM Gateway Software in 2026 | #9 of 12 |
Close alternatives to Cloudflare AI Gateway
Closest by traits, not by rank: 4 products from the same list that overlap most with Cloudflare AI Gateway.
- TrueFoundry (#3 of 12): Gateway with request budgets, cost tracking and VPC or on-premises hosting. Best for: Teams who want per-team budgets and cost exports with a published seat price.
- Eden AI (#5 of 12): French gateway adding a 5.5 percent fee on credit purchases. Watch out: the 5.5 percent fee is charged on every credit purchase, so it applies to the whole prepaid balance. (France)
- Kong AI Gateway (#8 of 12): Kong's AI proxy for LLM, MCP and agent traffic, priced per model. Watch out: the model proxy add-on is charged for every unique LLM, so a multi-model setup multiplies the bill. (United States)
- Helicone (#12 of 12): Logging proxy now part of Experiential Labs, with request limits.
Cloudflare AI Gateway: questions
9 answersWho is Cloudflare AI Gateway best for?
Teams already on Cloudflare who want caching and rate limits in front of providers. Less suited to: buyers needing virtual keys with per-team budgets as the main feature.
What else should I look at besides Cloudflare AI Gateway?
Start with TrueFoundry, Eden AI, Kong AI Gateway and Helicone. All of them are reviewed in the same ranking.
Which country is Cloudflare AI Gateway from?
The united states is the home country of Cloudflare AI Gateway, in the North America group. Headquarters and hosting region are separate questions; this answers the first.
Where does Cloudflare AI Gateway stand among LLM gateway software?
The LLM gateway software ranking has Cloudflare AI Gateway at position 9 out of 12.
What does Cloudflare AI Gateway cost?
Our catalogue records Cloudflare AI Gateway’s pricing as: Core features included with a Cloudflare account; Unified Billing credits carry a percentage fee; guardrails billed as inference. On free access, a paid plan is required, per our records.
Does Cloudflare AI Gateway cost anything?
The pricing page lists dashboard analytics, caching and rate limiting as free, with a Cloudflare account required. Unified Billing credits carry a 5% fee, and guardrails are billed as Workers AI inference.
Which providers can I route to?
The get-started page names OpenAI, Anthropic, Google AI Studio, Workers AI, AWS Bedrock and Azure OpenAI, and adds that more are supported without listing them.
How many logs can I keep?
Legacy Logs allow 100,000 in total across all gateways on Workers Free and 10,000,000 per gateway on Workers Paid. Gateways created on or after 24 September 2026 use Workers Logs under its own retention terms.
Do I need to hand my provider keys to Cloudflare?
No. You can send provider keys in request headers, store them with BYOK, or pay through Unified Billing with prepaid credits instead.
Cloudflare AI Gateway: sources
Read from the vendor’s own pages on 23 November 2026.
- developers.cloudflare.com/ai-gateway/pricing: free core features, DLP, log limits, Unified Billing fee, guardrail billing
- developers.cloudflare.com/ai-gateway/get-started: supported providers, URL format, authentication options, gateway creation
- developers.cloudflare.com/ai-gateway: feature list and one-line setup
- cloudflare.com/website-terms: Cloudflare, Inc. address and California law
How we rank
We test for four things rather than for features: setup time, price in practice, exit and audience. That puts Cloudflare AI Gateway at #9 of 12. Method and commercial relationships are in our editorial process.