Cloudflare AI Gateway Pricing Explained For 2026

Meet TrueForge: The open-source, vendor-neutral agent harness. 50% lower cost. Explore Now→

Cloudflare AI Gateway Pricing: Costs, Hidden Fees, and Alternatives

By Sahajmeet Kaur
Published: April 27, 2026

Built for Speed: ~10ms Latency, Even Under Load

Blazingly fast way to build, track and deploy your models!

Cloudflare AI Gateway has quickly become a popular choice for teams looking to manage, monitor, and route LLM traffic through a centralized proxy. As LLM adoption accelerates across industries, teams are increasingly introducing AI gateways to add observability, security, and control between their applications and third-party models.

But as AI usage scales, pricing clarity becomes a critical factor. Teams need to understand not just the per-call costs, but the infrastructure and operational patterns that influence long-term spend.

To learn more about how AI Gateways control costs and key considerations to take into account before choosing a vendor, read the full Gartner Market Guide for AI Gateways 2025 here.

At first glance, Cloudflare AI Gateway pricing appears simple, especially with free access to core features. However, real-world usage often reveals hidden costs tied to logging, data retention, and scaling limits.

In this blog, we break down:

What Is Cloudflare AI Gateway?

Before covering Cloudflare AI Gateway cost, it’s important to understand what Cloudflare AI Gateway does and where it fits in the AI stack. It acts as a centralized layer for teams deploying AI applications that rely on third-party LLM providers.

Cloudflare AI Gateway enables teams to:

Cloudflare AI Gateway Features That Impact Its Cost

While Cloudflare AI Gateway does not charge per token, several features indirectly affect overall cost as usage scales:

Cloudflare AI Gateway Pricing Tiers

Cloudflare uses a "freemium" model where the gateway itself is available to all users, but scaling your application typically requires a transition from the Free tier to the Workers Paid tier.

Features Workers Free Workers Paid Enterprise
Monthly Subscription $0 Starts at $5/mo Custom
AI Gateway Logs 100,000 total 1,000,000 total Custom
Max Storage Capacity 10M per gateway 10M per gateway Unlimited
Request Limit 100,000 / day 10M / month (included) Custom

Cloudflare’s AI Gateway is available on all Cloudflare pricing plans, and core features are free to use. There is no per-call gateway fee beyond your Cloudflare plan: you simply add the gateway and start sending traffic. By default, Cloudflare includes a free analytics/dashboard, caching, rate limiting, and logging layer, so many teams can spin it up at no extra cost. Under the free plan, however, some limits apply. For example, Cloudflare’s free (Workers Free) tier includes 100,000 total AI Gateway logs per month (across all gateways) and stops logging beyond that. To increase limits, you must upgrade to a Workers Paid plan, which provides 1,000,000 logs total. Notably, Cloudflare does not charge per log on the free or paid tiers – you either stay within the included logs or upgrade.

Free vs. Paid Cloudflare AI Pricing Plans

Because Cloudflare AI Gateway is built on Workers, heavy usage of the gateway may trigger Workers billing.

Cloudflare’s Workers Paid plan starts with a $5 monthly subscription and includes a big usage allowance. For example, Standard (Paid) Workers include 10 million requests and 30 million CPU-ms of execution per month.

Beyond that, Cloudflare charges $0.30 per additional million requests and $0.02 per additional million CPU-milliseconds.

In practice, this means a gateway serving 15 million requests (with average CPU use) costs about $8 total in a month. In contrast, the free plan for Cloudflare AI only includes 100k requests/day and minimal CPU usage – once you exceed those, your Workers will simply stop running (no surprise charges).

Request Volume and Logging Costs

Under the Workers Paid plan, Cloudflare AI Gateway still has usage guidelines. The Workers Paid plan includes up to 1,000,000 AI Gateway logs per month (across all gateways).

If you push logs beyond that, you cannot pay an overage – you must either delete old logs or upgrade your plan to Enterprise. Log storage is capped: by default, each gateway can hold ~10 million logs (you can set your own limit), and once full, no new logs are saved.

Thus, while logging is “included,” there’s an effective limit on how much history you keep.

Cloudflare also offers a Logpush integration (streaming logs to your storage), but only on the paid plan: you get 10 million requests’ worth of logpush per month free, then $0.05 per additional million.

In essence, the Cloudflare AI gateway itself has no per-request fee, but supporting high-volume logging incurs hidden costs.

Indirect Usage Costs

Beyond the AI Gateway service, remember that every request the gateway handles still calls an underlying model provider. Cloudflare does not replace the model: it proxies your calls to OpenAI, etc., so you still pay the model’s token fees separately.

In other words, Cloudflare removes unpredictability from the network layer but does not eliminate per-token charges from OpenAI/Anthropic/etc.

Additionally, heavy use of Workers (e.g. complex request logic or caching) incurs compute charges as noted above. Essentially, using Cloudflare AI Gateway has a base cost of the Workers plan and logging limits, plus whatever you spend calling the actual models.

The Hidden Costs: What is Not Included in Cloudflare AI Gateway Pricing

Beyond the published fees, there are several hidden costs and risks to consider with Cloudflare’s AI Gateway:

When Cloudflare AI Gateway Pricing Makes Sense

Cloudflare AI Gateway shines in specific scenarios. For edge-centric or lightweight AI features, it offers a quick on-ramp. If you already use Cloudflare’s CDN/Workers, you can add AI calls with minimal changes (just swap the API endpoint).

This is ideal for small teams or startups that want an instant edge-deployed gateway without DevOps overhead. Early-stage projects can leverage Cloudflare’s free pricing plan to prototype global AI-powered experiences, caching popular responses for speed.

However, for large organizations with high-volume or highly regulated workloads, these advantages may be outweighed by the hidden costs of Cloudflare AI. The lack of fine-grained control and fixed usage allocations can hinder budgeting and compliance.

Why Some Teams Look Beyond Cloudflare AI Gateway

Teams begin to outgrow Cloudflare AI Gateway due to:

How TrueFoundry Approaches AI Gateway Pricing Differently

If you need the benefits of an AI Gateway but cannot compromise on security, observability, or infrastructure control, TrueFoundry offers a fundamentally different approach.

TrueFoundry deploys the AI Gateway directly inside your own cloud account (AWS, GCP, Azure) or server. Your data never leaves your infrastructure unless you explicitly choose to move it.

This eliminates the “black box” compromise seen in SaaS-first platforms like Cloudflare. You get transparent performance, cost visibility, and full ownership with TrueFoundry AI Gateway.

Cloudflare AI Gateway vs TrueFoundry: Detailed Comparison

Enterprises evaluating AI gateways often weigh a managed service like Cloudflare against a self-hosted platform such as TrueFoundry. Below is a comparison of key factors:

Aspect Cloudflare AI Gateway TrueFoundry AI Gateway
Pricing Model Free core gateway features. Usage billed via Cloudflare Workers.
($5/month + usage fees)
Tiered subscription based on usage. Clear allowances per plan with transparent overages.
Data Control & Privacy Hosted on Cloudflare’s infrastructure. Logs and analytics stored within Cloudflare.
Customers must rely on Cloudflare’s environment.
Deployable in customer’s own cloud or VPC. Logs and telemetry can remain in customer-owned storage, ensuring data sovereignty.
Cost Predictability Pay-as-you-go with variable costs. Traffic spikes, logging, and Workers usage increase spend. Fixed tiers provide budgeting clarity. Costs can be forecast based on expected usage.
Flexibility & Deployment SaaS-only and tightly coupled to Cloudflare’s network.
Fast to start, but customization is limited.
Highly flexible: supports on-prem, multi-cloud, and hybrid setups.
Full control over routing, caching, and scaling.
Observability & Governance Managed by Cloudflare. Governance features early-stage or beta. Enterprise-grade observability with detailed logs, metrics, and auditing.

Frequently asked questions

Is Cloudflare AI Gateway free?

Yes, Cloudflare offers free access to AI Gateway features under its standard and Workers Paid tiers. However, usage limits, log retention policies, and underlying compute (e.g., Workers CPU time) may introduce hidden costs as scale increases.

How much will Cloudflare AI cost?

Cloudflare AI Gateway itself has no per-request fee. Costs emerge based on:

How is TrueFoundry more cost-effective than Cloudflare AI?

TrueFoundry runs entirely inside your own cloud (AWS, GCP, Azure), eliminating data transfer costs and SaaS markups. Teams can also route to private models or use spot instances to reduce cost.