Cloudflare、Workers AI と AI Gateway を単一管理平面へ統合
本文の状態
日本語全文を表示中
詳細モードで約9分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Cloudflare AI
Cloudflare は AI Gateway と Workers AI を統合し、単一の制御平面でモデルプロバイダーへの接続と観測性・セキュリティ管理を可能にする新アーキテクチャを発表した。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るAI深層分析を開く2026年8月7日 22:10
AI深層分析
キーポイント
統一されたエントリポイントの確立
Workers バインディングと REST API (/ai/エンドポイント) を統合し、AI Gateway と Workers AI の区別なく単一のパスで利用可能にする。
デフォルトゲートウェイによる自動観測性
明示的なセットアップが不要となり、デフォルトゲートウェイを指定することでリクエストごとに自動的にログ記録やコスト追跡が行われるようになる。
柔軟なスケーリングと管理機能
利用者が需要に応じてカスタムキャッシュルールやトラフィック分割が必要な場合は、単一パラメータの変更で名前付きゲートウェイへ移行可能である。
Workers AI への AI Gateway クレジット利用と統一課金
AI Gateway クレジットを外部プロバイダーだけでなく Workers AI の利用にも適用できるようになり、ウォレットから複数のプロバイダー間で柔軟に課金できる。この統一課金を利用すると、 elevated rate limits が付与される。
モデルファースト型ルーティングの実装
インフラやプロバイダの選定ではなく、必要な機能(推論、要約など)に基づいてモデルを指定する方式へ移行し、ゲートウェイが自動的にプロバイダ選択と負荷分散を行う。これにより、特定のモデル名を指定すれば Workers AI や他社 API など複数のソースから透明にリクエストが処理される。
重要な引用
Today, we're excited to share our plans on how these products converge into one unified path
you no longer need to explicitly create an AI Gateway before you start getting visibility into your inference traffic
every request is logged with full request and response payloads, token counts are tracked per model
Provider-first routing forces you to think about infrastructure: "Which provider do I call? What if they're down?" Model-first routing flips that.
編集コメントを表示
編集コメント
AI Gateway と Workers AI の統合は、開発者体験を劇的に改善する重要なステップである。特に自動観測性の提供により、小規模なプロジェクトから大規模な本番環境までシームレスにスケールできる基盤が整ったと言える。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
AI Gateway と Workers AI は当初は別々の製品として始まりましたが、時間の経過とともにユーザーのニーズが収束していくのを私たちは実感していました。AI Gateway を使えば、あらゆるモデルプロバイダーへのリクエストをプロキシし、組み込みの観測機能、ログ記録、アクセス制御、セキュリティを実現できます。一方 Workers AI では、私たちが管理する GPU インフラ上にモデルをホストし、推論サービスとして利用可能な API エンドポイントを公開しています。
これらの製品のアーキテクチャは異なりますが、エンドユーザーにとっては同じ目的を達成しています。つまり、洗練されたコントロールプレーンを通じてモデルに接続することです。本日、私たちは両製品を一つの統合されたパスへと収束させる計画を発表できることを嬉しく思います。これにより、Workers AI を含むあらゆるモデルプロバイダーに接続しつつ、観測機能、請求処理、セキュリティ、ログ記録などを単一のコントロールプレーンから管理できるようになります。
これは私たちが掲げる大きな構想への次の一歩です。統合されたコントロールプレーンが、今後のモデルルーティングにどのような意味を持つのか、詳しくは以下をご覧ください。
バインディングと API の統合
これらの製品は、Workers バインディングと REST API という入口を通じて統合されつつあることを、以前から示唆してきました。AI Gateway と Workers AI を呼び出すための「AI バインディング」を用意しており、個別に別々のバインディングが存在するわけではありません。すべてが同じパスを経由します。
数ヶ月前には、「デフォルト」ゲートウェイの概念も導入しました。これにより、これまで AI Gateway の設定を行ったことがない場合でも、自動的に観測機能やログ機能を継承できるようになりました。もちろん、アプリケーションを複数のプロジェクトに分割したい場合は、独自にゲートウェイを指定することも可能です。
AI Gateway を経由して Workers AI を呼び出す場合のバインディング呼び出しは以下のようになります。
また、AI Gateway を経由して Workers AI と同様の呼び出しを行える、単一の統合 REST API(/ai/ エンドポイント)も発表しました。
これにより、AI Gateway と Workers AI への入口が統一され、どちらの製品を先に使うかを選ぶ必要がなくなります。両方の機能が最初から備わっています。
すべての Workers AI ユーザーに対する自動的な観測と制御機能
この統合による最も即効性のある利点は、推論トラフィックの可視化を開始する前に、明示的に AI Gateway を作成する必要がなくなったことです。これまでゲートウェイを設定したことがない場合は、バインディングや REST API の呼び出しでゲートウェイ ID として default を指定するだけで、AI Gateway が最初の認証リクエスト時に自動的に作成されます。
これにより、すべてのリクエストは完全なリクエスト・レスポンスペイロードとともにログに記録され、モデルごとのトークン使用量が追跡可能になります。さらに、ダッシュボードの設定は一切不要でコストの明細も把握できます。
もし将来的にデフォルトゲートウェイでは物足りなくなったら——カスタムキャッシュルールを設定したい場合や、アプリケーションごとにトラフィックを分割したい場合など——名前付きゲートウェイを作成し、パラメータを一つ変更するだけでリクエストをそちらへ転送できるようになります。
バインディングでの実際の使い方は以下の通りです。従来は Workers AI に直接アクセスしていましたが:
今では、AI Gateway を経由させるための引数を 3 つ目に追加することで、完全な観測性を確保できます:
Cloudflare の AI Gateway ダッシュボードにアクセスすると、すべてのリクエストが確認できます。レイテンシの内訳、トークン使用量、エラー率、そして具体的なプロンプトとレスポンスまで一覧で表示されます。モデルの挙動をデバッグしたり、AI 出力の監査を行ったりするチームにとって、これは「見えないまま進める」状態から大きく進化した機能です。
新機能:Workers AI でも AI Gateway クレジットを利用可能に
本日新たに公開したのが、AI Gateway のクレジットを Workers AI でも使用できる機能です。従来は AI Gateway のクレジットは外部モデルプロバイダー(OpenAI や Anthropic など)での利用に限られており、Workers AI への適用はまだできませんでした。このたびシステムを更新し、Workers AI との統合課金を可能にしました。
つまり、ウォレットにクレジットをチャージすれば、それを OpenAI、Anthropic、Workers AI、あるいは当社がサポートする他のプロバイダー間で自由に使い分けられるようになります。
Workers AI でプリペイド課金を開始し、この新しい利用経路を促進するため、AI Gateway の統一課金を利用するユーザーには Workers AI モデルのレート制限を引き上げます。最新のレート制限情報や、制限引き上げのリクエスト方法については、開発者ドキュメントをご参照ください。
まもなく登場:モデルファースト型ルーティング
推論トラフィックが単一のコントロールプレーンに集約されることで、どのプロバイダを管理するかではなく、利用したいモデルに基づいて各リクエストを処理する判断をより賢く行えるようになります。従来のプロバイダファースト型ルーティングでは、インフラについて考える必要がありました。「どのプロバイダに呼び出せばよいか?ダウンしたらどうしよう?」とです。一方、モデルファースト型ルーティングはその発想を逆転させます。必要なもの(高度な推論能力を持つモデル、高速な要約モデル、低コストの埋め込みモデルなど)を指定するだけで、コントロールプレーンがプロバイダの選択、フェイルオーバー、負荷分散を自動的に処理します。
現在では、モデルを呼び出す際に、そのホスト先となるプロバイダを事前に知る必要があります。もしそのプロバイダがダウンしている場合やレート制限に引っかかった場合、アプリケーションは機能停止してしまいます。私たちは、ユーザーがモデルを指定するだけで AI Gateway が残りの処理を担う世界へと移行しようとしています。
この仕組みにより、Kimi K2.7 Code をリクエストする際、Workers AI 経由か Moonshot の独自 API か、同じ重みを持つモデルをホストする他のプロバイダーからの提供かを気にする必要がなくなります。Workers AI に空き容量があれば、管理インフラの恩恵を受けられます。逆に Workers AI が満杯の場合でも、ゲートウェイが透明性を持って、同じモデルを提供できる別のプロバイダーへ負荷分散します。必要であれば単一プロバイダーに固定することも可能ですが、「モデルファースト」なルーティングを採用すれば、耐障害性を重視する際にさらに柔軟に対応できます。
私たちは厳選されたプロバイダーと連携しているため、モデル出力の品質を最優先事項としており、Zero Data Retention(ZDR)のような要件にも対応可能です。
これにより、デフォルトでより高い耐障害性が実現されます。あるプロバイダーのモデル版に問題が発生しても、アプリケーションレベルでの再試行や Workers 内の複雑なフォールバックロジックを組むことなく、トラフィックは自動的に別のプロバイダーへ切り替わります。ゲートウェイは、モデルの利用可否をルーティングの問題として扱います。今後は数ヶ月以内に、AI Gateway と Workers AI の全ユーザーを対象にパイロット展開を行う予定です。
次:スマートなルーティング
ルーティングの次の進化は、単なるフェイルオーバーを超えたものです。私たちは、リクエスト内容を理解し、設定不要で適切なモデルを自動選択するインテリジェントなルーティングを開発中です。
モデルを指定する代わりに、ゲートウェイに判断させることも可能です。内部では、Workers AI で動作する分類器がプロンプトを読み込み、それがコーディング、リサーチ、要約、一般的な Q&A のどのタスクに該当するか、複雑度はどれくらいか、文脈の重要性はどの程度かを予測します。その後、ヒューリスティックスコアラーがその結果を基に、厳選されたモデルプールから最適なモデルを選択します。制御を重視するチームでは、特定のモデルを指定することも可能です。それ以外のケースでは、設定不要のパスを採用することで、ルーティングロジックの手間をかけずに、より優れた経済性とパフォーマンスを実現できます。現在、社内パイロットを実施しており、リリース前の数週間でテストと改善を継続していきます。
今日から始めよう
すでに Workers AI を利用している場合、この機能を試す最も簡単な方法は、既存の呼び出しをデフォルトゲートウェイ経由でルーティングすることです。モデルへの呼び出し方法を変更する必要なく、リクエストログ、トークン追跡、コスト帰属が即座に利用可能になります。
すでに AI Gateway を利用している場合、Workers AI を追加するだけで済みます。AI Gateway のウォレットを準備すれば、サポートするすべてのプロバイダー間で統一された請求が可能になり、Workers AI モデルのレート制限も引き上げられます。
最初のゲートウェイを設定し、Workers AI のモデルカタログを確認して、今日から開発を始めましょう。
原文を表示
AI Gateway and Workers AI first started as distinct products, but over time, we noticed our users were converging. With AI Gateway, you can proxy requests to any model provider and get built-in observability, logging, access, and security. On Workers AI, we host models on the GPU infrastructure that we manage, exposing an API endpoint you can leverage to access inference-as-a-service.
The architecture of these products looks different, but to an end user, it achieves the same goal: connecting you to models with a sophisticated control plane. Today, we're excited to share our plans on how these products converge into one unified path, so you can connect to any model provider (including Workers AI), while managing things like observability, billing, security, and logging from a single control plane.
It’s the next step toward some big plans we have — read on to learn what a unified control plane means for the future of model routing.
Merging the binding and API
We've been hinting at the fact that these products are becoming more unified through our entrypoints: the Workers binding and the REST API. We have an AI binding that you can use to call AI Gateway and Workers AI. There's no concept of a separate AI Gateway and Workers AI binding: it all goes through the same path. We shipped the idea of a “default” gateway a few months ago, so that if you have never set up an AI Gateway before, you could still automatically inherit the AI Gateway observability and logging. Of course, you can still specify your own gateway if you'd like to split up applications into multiple projects.
Here's what the binding call looks like, if you are calling Workers AI via AI Gateway:
We’ve also announced a single unified REST API — the /ai/ endpoint that allows you to make similar calls to Workers AI via AI Gateway.
Doing this allows us to unify the entrypoints to AI Gateway and Workers AI, so you don't need to make a choice between which product to use first: it all comes with batteries included.
Automatic observability and control for all Workers AI users
One of the most immediate benefits of this convergence is that you no longer need to explicitly create an AI Gateway before you start getting visibility into your inference traffic. If you've never set up a gateway before, just pass default as the gateway ID in your binding or REST API calls, and AI Gateway will create it automatically on the first authenticated request.
With this, every request is logged with full request and response payloads, token counts are tracked per model, and you get cost attribution without any dashboard setup. If you later outgrow the default gateway — if you want custom caching rules or to split traffic by application — you can create a named gateway and point your requests at it with a single parameter change.
Here's how it looks in the binding. Before, you called Workers AI directly:
Now, add a third argument to route through AI Gateway and get full observability:
Head to the Cloudflare AI Gateway dashboard and you'll see every request: latency breakdowns, token usage, error rates, and the exact prompts and responses. For teams debugging model behavior or auditing AI output, this is a huge upgrade from flying blind.
New: using AI Gateway credits for Workers AI
A new thing we're launching today is the ability to use AI Gateway credits for Workers AI. Before, you could only use AI Gateway credits on external model providers (e.g., OpenAI, Anthropic) but you couldn't apply your AI Gateway credits to Workers AI usage just yet. We've finally enabled our systems to allow unified billing for Workers AI. This means that you can load a wallet full of credits, and then choose to spend that across OpenAI, Anthropic, Workers AI, or any provider that we support.
Since we're now offering pre-paid billing for Workers AI and want to encourage users to use this new path, we're also offering elevated rate limits on Workers AI models if you use AI Gateway unified billing. Please refer to the developer docs for up-to-date information regarding rate limits, as well as how to request a higher rate limit.
Coming soon: model-first routing
With all your inference traffic flowing through a single control plane, we can start making smarter decisions about how to serve each request starting with the model you want, not the provider you have to manage. Provider-first routing forces you to think about infrastructure: "Which provider do I call? What if they're down?" Model-first routing flips that. You think about what you need — a capable reasoning model, a fast summarizer, a cheap embedding model — and the control plane handles provider selection, failover, and load balancing.
Today, if you want to call a model, you have to know which provider hosts it. If that provider is down or rate-limiting you, your application breaks. We're moving toward a world where you specify the model, and AI Gateway handles the rest.
This way, you can request Kimi K2.7 Code and not care whether it comes from Workers AI, Moonshot's own API, or another provider that hosts the same weights. If Workers AI has capacity, you get the benefit of our managed infrastructure. If Workers AI is at capacity, the gateway transparently load balances you to another provider that can serve the same model. You can still choose to stick to a single provider if you’d like, but model-first routing enables you to get more flexibility if you care about resiliency. We work with vetted providers, so the quality of model outputs remains top priority, and will also be able to respect requirements such as Zero Data Retention (ZDR).
This also means better resiliency by default. If one provider's version of a model is having issues, traffic shifts to another without application-level retries or complex fallback logic in your Workers. The gateway treats model availability as a routing problem. We hope to pilot this in the coming months for all AI Gateway and Workers AI users.
Next: smart routing
The next evolution of routing goes beyond simple failover. We're building intelligent routing that understands what you're asking for and picks the right model for the job without any configuration required.
Instead of specifying a model, you can let the gateway decide. Under the hood, a classifier running on Workers AI reads your prompt and predicts what kind of task it is (coding, research, summarization, general Q&A), how complex it is, and how much context matters. A heuristic scorer then maps that to the best model from a curated pool. For teams that want control, you can still specify exact models. For everyone else, the zero-config path means you get better economics and performance without maintaining your own routing logic. We are currently piloting this internally, and we’ll be actively testing and iterating in the next few weeks before release.
Get started today
If you're already using Workers AI, the easiest way to try this out is to start routing your existing calls through a default gateway. You'll immediately get request logging, token tracking, and cost attribution without changing anything else about how you call the models.
If you're already using AI Gateway, adding Workers AI to the mix is as simple as calling a Workers AI model. Load up your AI Gateway wallet and you'll get unified billing across every provider we support, plus elevated rate limits on Workers AI models.
Set up your first gateway, browse the Workers AI model catalog, and get started building today.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み