Blank white background with no objects or features visible.

Ask TFY:AIゲートウェイ内のあらゆる事象をデバッグ、分析、実行 詳細はこちら

TrueFoundryはSeldon AIの買収を発表し、エンタープライズAI向けコントロールプレーンを拡張します。プレスリリース全文はこちら→

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

By サハジミート・カウル

Published: July 6, 2026

CloudFlare AI Gateway pricing guide for GenAI development

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?

Cloudflare AI Gateway Pricing Explained For 2026

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). 

💡In summary: light-use AI apps may stay within Cloudflare’s free tier, but production workloads often need Workers Paid ($5+ usage) to scale reliably.

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. 

Keeping more logs (beyond the free allowance) may force storage on external systems or lead to more aggressive log deletion. And if you want automatic log shipping (for SIEM or compliance), that feature is only on paid plans with usage fees. 

All of these factors mean Cloudflare’s gateway costs can ramp up indirectly with use – you pay for the Workers plan plus any logging/storage beyond the baseline.

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). This can be a surprise budget issue if you rely on logs for debugging or audit.

  • 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. Otherwise, you are sending potentially sensitive data (user queries, outputs, possibly PII) into Cloudflare’s cloud. Many vendors refer to this as the “black-box” approach: logs and metrics live outside your control. As one analysis notes, this can “force the customer’s data—including PII or proprietary information—to leave their secure environment”. In short, if you need strict data governance or air-gapped compliance, handing off raw prompts/responses to Cloudflare may be unacceptable.

  • Black-Box Routing: Relatedly, Cloudflare’s dynamic routing and fallback logic is opaque. Internally, the gateway decides which provider endpoint or cached response to use. Customers cannot see the detailed routing or performance heuristics. This “closed” control plane means you must Cloudflareのアルゴリズムを信頼する モデル選択、キャッシュ、フェイルオーバーにおいて、詳細な情報なしに。一部の組織(厳格な監査を受けている組織など)にとって、この透明性の欠如は隠れたコストとなります。ゲートウェイ内で何が起こったかを完全に証明することはできません。
  • リソース制限とスケーリング: 無料プランの厳格な制限(1日のリクエスト上限、ログ上限)は、成長中のアプリケーションにとって突然のスロットリングや障害を引き起こす可能性があります。従量課金制のクラウドとは異なり、Cloudflareの無料ティアは課金されるのではなく、単に停止します。有料プランへの移行にはアーキテクチャの変更が必要になる場合があります。例えば、気づかないうちに1日10万件のログに達すると、予期せずログ記録が停止します。これらの運用上の制約は「隠れた」生産性コストにつながります。削除されたログの処理や、途中でアップグレードを行うために追加のDevOps作業が必要になるかもしれません。 

まとめると、CloudflareのAI Gatewayは「無料」に見えるかもしれませんが、本格的なデプロイメントではWorkersの利用料金、ログ/ストレージの要件、データガバナンスの問題を考慮する必要があります。

チームは、Workersの利用状況の監視、ログの転送や保存の可能性、そしてCloudflareの制限内に収めるための潜在的なエンジニアリング作業について予算を立てるべきです。

Cloudflare AI Gatewayの料金が理にかなう時

Cloudflare AI Gatewayは特定のシナリオで真価を発揮します。 エッジ中心の、あるいは軽量なAI機能には、迅速な導入を可能にします。すでにCloudflareのCDN/Workersを利用している場合、最小限の変更(APIエンドポイントを交換するだけ)でAI呼び出しを追加できます。

これは、DevOpsのオーバーヘッドなしに、即座にエッジにデプロイされるゲートウェイを求める小規模チームやスタートアップにとって理想的です。初期段階のプロジェクトでは、Cloudflareの無料料金プランを活用してグローバルなAI搭載エクスペリエンスのプロトタイプを作成し、速度向上のために人気のある応答をキャッシュすることができます。

また、 グローバルな分散が重要となるユースケースにも適しています。例えば、Cloudflareのネットワーク上で直接実行されるチャットボットや推論は、Cloudflareの250以上のPoPと組み込みのDDoS保護の恩恵を受けることができます。Cloudflareを介したシンプルなレート制限とリトライは、基本的な回復力を必要とするアプリケーションにとっても魅力的です。要するに、Cloudflare AI Gatewayは、あなたが 統合の迅速さとCloudflareネットワークの広範さに価値を置き、利用量が無料プランの範囲内(またはわずかに超える程度)に収まるほど十分に控えめである場合に理にかなっています。

しかし、大量のワークロードや厳しく規制されたワークロードを持つ大規模組織にとっては、これらの利点はCloudflare AIの隠れたコストによって相殺される可能性があります。きめ細かな制御の欠如と固定された使用量割り当ては、予算編成とコンプライアンスを妨げる可能性があります。

なぜ一部のチームはCloudflare AI Gatewayの先を見据えるのか

AIシステムが成熟するにつれて、優先順位は迅速なセットアップから、コストの予測可能性、セキュリティ、所有権へと移行します。チームは以下の理由により、Cloudflare AI Gatewayでは物足りなくなり始めます。

  • AI利用の増加: モデルの利用規模が拡大するにつれてトークン量が増加し、インフラに合わせた料金設定の必要性が喫緊の課題となります。Cloudflareの抽象化された仕組みでは、予測が困難になる場合があります。

  • コンプライアンスとデータレジデンシー要件: 規制対象業界では、プロンプトと完了がどこで処理されるかについて、完全な制御を必要とすることがよくあります。CloudflareのSaaSモデルは、 データレジデンシーのコンプライアンスに関して、法務および監査上の複雑さを生じさせます。

  • エージェントワークフローとRAGパイプライン: 多段階推論や検索拡張生成のワークロードでは、厳密な制御、詳細なログ、そして時にはローカルでのモデルホスティングが要求されますが、これらはすべてCloudflareのブラックボックス型インフラでは制限されます。

TrueFoundryがAIゲートウェイの料金設定に異なるアプローチをとる方法

AIゲートウェイのメリットが必要でありながら、セキュリティ、可観測性、インフラ制御で妥協できない場合、 TrueFoundry は、根本的に異なるアプローチを提供します。

TrueFoundryはAIゲートウェイを お客様自身のクラウドアカウント内 (AWS、GCP、Azure)またはサーバーに直接デプロイします。コントロールプレーン(設定や構成を管理)はTrueFoundryが運用しますが、 実際のプロンプトと応答が処理されるデータプレーンは、完全にVPC内に留まります。 

お客様のデータがお客様のインフラから離れることは、明示的に移動を選択しない限りありません。

実際には、これは次のことを意味します。

  • お客様は ゲートウェイサービスをお客様のインフラストラクチャ上でホストします、すべてのLLMトラフィックをお客様自身のネットワーク経由で誘導します。
  • ログ、リクエスト、レスポンスは お客様のクラウドアカウントから離れることはありません 外部エクスポートを設定しない限り。
  • 可観測性はネイティブに統合されており、ログは貴社の S3バケット、データベース、または社内分析ツールに送られ、完全なデータ主権を維持します。
  • お客様が バックアップ、リソース割り当て、暗号化ポリシー、スケーリングを お客様自身のインフラストラクチャとセキュリティプロトコルを使用して制御できます。

これにより、CloudflareのようなSaaSファーストプラットフォームに見られる「ブラックボックス」の妥協点が排除されます。お客様は 透明性の高いパフォーマンス、コストの可視性、そして完全な所有権を TrueFoundry AI Gatewayで TrueFoundry AI Gateway得られます。

TrueFoundryの料金 

エンタープライズプランでセルフホストする場合、唯一の限界費用はインフラストラクチャです(通常、規模に応じて月額約600~1,000ドル)。SaaS版でも、TrueFoundryは ホスティング費用を請求しません お客様が選択したストレージまたはクラウドの使用量を超えて。 

これにより、 予測可能性の高いコスト構造 となり、チームは成長を予測し、段階的にティアをアップグレードし、常にインフラレベルの制御を維持できます。

TrueFoundryでできること: 

  • きめ細かな予算管理を実現:チームごとに利用上限を設定できます。例えば、「エンジニアリング部門は500ドル、マーケティング部門は200ドル」といった形で、利用状況をリアルタイムで監視できます。
  • オープンルーティングを導入:商用API(OpenAI、Anthropicなど)に接続したり、トラフィックを 独自のファインチューニング済みモデル (EC2、GKE、またはスポットインスタンス上で実行)にルーティングしたりできます。
  • エンタープライズレベルの分離を実現:IAM、プライベートネットワーク、データローカリティの要件に完全に準拠します。

適切なインフラストラクチャの選択は長期的なコミットメントです。当社のアーキテクチャがお客様のより広範な機械学習戦略にどのように適合するかを確認するには、詳細ガイド「 TrueFoundry MLプラットフォームが適切かどうか 」をご覧ください。

Cloudflare AI Gateway vs TrueFoundry: 詳細比較

AIゲートウェイを評価する企業は、Cloudflareのようなマネージドサービスと、 TrueFoundryのようなセルフホスト型プラットフォームを比較検討することがよくあります。以下に主要な要素の比較を示します。

Aspect Cloudflare AI Gateway TrueFoundry AI Gateway
Pricing Model Free core gateway features. Usage billed via Cloudflare Workers ($5/month + usage fees). No fixed token pricing; model provider costs are billed separately. Per-request costs vary based on traffic and logging. Tiered subscription based on usage. Clear allowances (e.g., requests, users) per plan with transparent overages. Flat monthly enterprise licensing available.
Data Control & Privacy Hosted on Cloudflare’s infrastructure. Logs and analytics are stored by default within Cloudflare (logging can be disabled). Customers must rely on Cloudflare’s environment. Deployable in the customer’s own cloud or VPC (including air-gapped setups). Logs and telemetry can remain in customer-owned storage (e.g., S3), ensuring data sovereignty.
Cost Predictability Pay-as-you-go with variable costs. Traffic spikes, logging, and Workers usage directly increase spend. Limited cost governance can lead to overruns. Fixed tiers provide budgeting clarity. Costs can be forecast based on expected usage. Centralized governance helps prevent surprise token or request spikes.
Flexibility & Deployment SaaS-only and tightly coupled to Cloudflare’s network. Fast to start, but customization is limited to Cloudflare features (caching, rate limits, DLP beta). Highly flexible: supports on-prem, multi-cloud, and hybrid setups. Integrates with any model or data source via custom providers. Full control over routing, caching, and scaling.
Observability & Governance Cross-provider analytics and limits via Cloudflare dashboard. Logs and metrics are managed by Cloudflare. Governance features (DLP, guardrails) are early-stage or beta. Enterprise-grade observability with detailed logs, metrics, and auditing. Policies and guardrails enforced at the gateway control plane, turning AI usage into a managed, measurable system.

価格のサプライズなしでAIを構築する準備はできていますか?

AIゲートウェイの選定は、初期費用だけでなく、長期的なインフラに関する重要な決定です。 Cloudflare AI Gateway は、軽量でエッジに特化したAIワークロードや初期の実験には適していますが、システムが本番規模に移行するにつれて、優先順位は コスト管理、可観測性、コンプライアンス、柔軟性へと変わります。

のようなプラットフォームは TrueFoundry インフラの所有権、データプライバシー、使用量ベースの予算編成が非常に重要となる本番環境でAIをスケールさせるチーム向けに構築されています。

ある成長中のスタートアップ企業は、予測不能なロギングコストがコンピューティング予算を超え始めた後、CloudflareからTrueFoundryに移行しました。 AWS VPC内のセルフホスト型ゲートウェイに切り替えることで、 35%のコスト削減、S3へのロギング統合、OpenAIとプライベートMistralモデルの組み合わせへのトラフィックルーティングを実現し、これらすべてを明確なチームごとの予算管理下で行いました。

御社でも同様の成果を上げることが可能です。 デモを予約する TrueFoundryがどのように御社のチームにAIコストの予測可能性と管理をもたらすかをご覧ください。

よくある質問

Cloudflare AI Gatewayは無料ですか?

Yes, Cloudflare offers AI Gateway functionality for free with its Standard and Workers Paid plans. However, as usage scales, hidden costs can arise due to usage limits, log retention policies, and underlying computing (e.g., Workers CPU time).

How much does Cloudflare AI cost?

Cloudflare AI Gateway itself does not charge per request. Costs are incurred based on the following:

  • Log volume and retention period (e.g., 100,000 logs for the Free plan, 1 million logs for the Workers Paid plan)
  • Worker usage for request processing and routing
  • Cloudflare plan level (e.g., Standard and Enterprise)

Without custom plans or external log management, costs can become unpredictable with large-scale usage. TrueFoundry offers a better alternative. Pricing can be found here. 

How is TrueFoundry more cost-effective than Cloudflare AI?

TrueFoundry runs entirely within your own cloud (AWS, GCP, Azure), eliminating data transfer costs and SaaS markups. You only pay for the compute and storage you allocate, with full routing flexibility, transparent logging, and no vendor lock-in. Teams can also route to private models or use spot instances, reducing costs by 60-70% compared to managed APIs.

Try now.

One gateway for all your models, MCP servers, and agents.
No credit card needed.

Start free
Table of Contents

One Gateway for Every LLM, Agent and MCP Server

Book a 30-min with our AI expert

Book a Demo

The fastest way to build, govern and scale your AI

Book Demo
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Discover More

No items found.
August 17, 2026
|
5 min read

Sandboxed Code Agents: Let Models Execute Without Letting Them Roam

No items found.
Portkey AI Gateway Pricing
August 15, 2026
|
5 min read

2026年版 Portkey AI Gateway 料金:完全ガイドと比較

No items found.
MCP registry connecting agents to governed MCP servers
August 15, 2026
|
5 min read

2026年版 最高のMCPレジストリ:開発者と企業向け比較

No items found.
TrueFoundry AI gateway powers enterprise AI platform engineering at scale
August 15, 2026
|
5 min read

AIプラットフォームエンジニアリングとは?エンタープライズチームのための実践ガイド

No items found.
No items found.

Recent Blogs

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.
Take a quick product tour
Start Product Tour
Product Tour