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!
- Handles 350+ RPS on just 1 vCPU — no tuning needed
- Production-ready with full enterprise support
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:
- Exactly what you pay for when using Cloudflare AI Gateway
- The indirect costs that teams often overlook
- Why scaling companies eventually migrate to in-VPC alternatives like TrueFoundry for more control
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:
- Route AI traffic securely between applications and multiple foundation model providers like OpenAI, Anthropic, and Hugging Face.
- Gain visibility into prompts, responses, latency, and usage metrics for observability and monitoring.
- Integrate directly with Cloudflare’s broader AI stack, including Workers AI, caching, rate limiting, and global edge infrastructure.
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:
- Request routing and rate limiting: Helps control traffic flow but increases the number of logged events as AI usage grows. It requires a Cloudflare Workers Paid plan for high-volume execution.
- Prompt and response caching: Reduces repeated calls to upstream models (saving money on token fees), but efficiency depends on traffic patterns and cache hit rate.
- Usage analytics and token tracking: Requires persistent logging, which can introduce additional storage and retention-related costs.
- Integration with multiple AI providers: Increases flexibility but makes AI cost observability factors such as attribution and forecasting across providers more complex.
- Unified Billing (New for 2026): Cloudflare now allows you to pay for third-party model usage (OpenAI, etc.) directly through your Cloudflare invoice, adding a small transaction convenience fee.
- Logpush Integration: Streaming logs to an external S3 bucket or SIEM tool is a paid feature that incurs additional costs $0.05 per million records after 10 million/month in paid plans.
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:
Log Retention Limits: While basic logging is free, Cloudflare enforces strict retention caps. If your app needs to retain more than 100k (free) or 1M (paid) logs per month, you can’t simply pay for extra – logs above the cap stop being stored. To keep long histories you must manually delete old entries or upgrade (potentially to an enterprise plan).
Privacy & Data Sovereignty: By default, Cloudflare’s gateway captures all request and response data (including prompts, model replies, tokens, etc.) in its own infrastructure. While Cloudflare allows you to disable logging for privacy compliance, opting out means losing visibility.
Black-Box Routing: Relatedly, Cloudflare’s dynamic routing and fallback logic is opaque. Customers cannot see the detailed routing or performance heuristics. This “closed” control plane means you must trust Cloudflare’s algorithms for model selection, caching, and failover, without granular insight.
Resource Limits & Scaling: The free plan’s hard limits (daily request caps, log caps) can cause sudden throttling or failures for growing apps. Moving to paid plans can require architectural changes. For example, hitting 100k logs/day without realizing it will drop logging unexpectedly. These operational constraints translate into “hidden” productivity costs; you may need extra DevOps work to handle deleted logs or upgrade mid-stream.
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:
- Growing AI usage: As model usage scales, token volume increases and the need for infrastructure-aligned pricing becomes urgent.
- Compliance and data residency requirements: Regulated industries often need full control over where prompts and completions are processed.
- Agentic workflows and RAG pipelines: Multi-step reasoning and retrieval-augmented generation workloads demand tight control, deeper logs, and sometimes local model hosting, all of which are limited under Cloudflare’s black-box infrastructure.
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:
- Log volume and retention (e.g., 100,000 logs on free tier, 1M on Workers Paid)
- Worker usage for request processing and routing
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.