AI モデルルーティングのための統一 API が発表
本文の状態
日本語全文を表示中
詳細モードで約4分の本文を読めます。
Google Cloud API Gateway が公開プレビューを開始し、開発者がハードコーディングやプロキシ管理なしで AI アプリケーションのトラフィックを最適化されたモデルへ動的にルーティングできる機能を導入した。
AI深層分析を開く2026年8月5日 23:47
AI深層分析
キーポイント
AI モデルルーティング機能の提供開始
Google Cloud API Gateway が公開プレビューとして、OpenAI 互換リクエストを受け付け、Gemini、Claude、または OpenAI OSS-GPT へ動的にトラフィックを振り分ける機能を導入した。
開発者の運用負荷軽減
エンドポイントのハードコーディングやオープンソースプロキシの管理が不要となり、開発者は業務に適したモデルを選択して柔軟にアプリケーションを構築できるようになる。
Gemini Enterprise Agent Platform との連携
API Gateway は単独でのレート制限やトークン追跡に加え、Gemini Enterprise Agent Platform とシームレスに連携し、エージェントのエグレスを厳格なセキュリティガバナンスの下で処理できる。
OpenAPI 仕様の拡張機能によるルーティング設定
開発者は OpenAPI 3.x 仕様内の新しい x-google-api-management 拡張ブロックを使用して、仮想モデル名を特定のバックエンドターゲットに直接マッピングできる。
Gemini と Claude の統合サポート
API Gateway は Gemini や Anthropic の Claude など複数の LLM を同時にサポートし、プロジェクト ID などのパラメータを含む完全なエンドポイントアドレスを指定して柔軟にルーティング可能である。
重要な引用
developers need the freedom to route traffic to the best model for the job without hardcoding endpoints or managing open-source proxies
API Gateway now offers model routing in Public Preview to solve this
accepts OpenAI-compatible requests and dynamically routes them to Gemini, Claude, or OpenAI OSS-GPT
You can map virtual model names to specific backend targets directly in your OpenAPI 3.x specification using the new x-google-api-management extension block.
編集コメントを表示
編集コメント
Google Cloud API Gateway のこの新機能は、マルチモデル構成の複雑さを大幅に軽減する実用的な解決策となる。開発者が特定のモデルベンダーに縛られずに最適なパフォーマンスを追求できる基盤が整いつつあると言える。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Google Developers Blog は、サービスの提供と品質向上、およびトラフィック分析のために Cookie を使用しています。同意いただくと、Cookie は広告の配信や、表示されるコンテンツ・広告のパーソナライズにも利用されます。
2026 年 8 月 4 日
AI アプリケーションを構築する際、開発者はエンドポイントをハードコードしたりオープンソースのプロキシを管理したりすることなく、タスクに最適なモデルへトラフィックを柔軟にルーティングできる自由が必要です。この課題を解決するため、Google Cloud API Gateway が「Public Preview」でモデルルーティング機能を提供開始しました。これは軽量なサーバーレスのインゲス層であり、OpenAI 互換のリクエストを受け取り、Gemini、Claude、または OpenAI の OSS-GPT へ動的にルーティングします。
API Gateway は、単純なレート制限やトークン追跡のために単独で使用することもできますし、Gemini Enterprise Agent Platform とシームレスに連携させることも可能です。例えば、エージェントの出力を厳格なセキュリティガバナンスの下で Agent Gateway を経由させ、その後リクエストを API Gateway に渡して Google 製の LLM への動的ルーティングを任せるといった使い方ができます。以下に、ルーティングロジックを設定する手順をご紹介します。
トラフィックのルーティング設定
モデルルーティングロジックの設定は、数ステップで完了します:
- ルーティングルールの設定: 新しい
x-google-api-management拡張ブロックを使用して、仮想モデル名を特定のバックエンドターゲットに直接マッピングできます。これは OpenAPI 3.x 仕様の一部として記述します。
openapi: 3.0.4
info:
description: Using Model Routing in an OAS 3.x spec
version: 1.0.0
x-google-api-management:
backends:
gemini-35-flashlite:
address: >-
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/publishers/google/models/gemini-3.5-flash-lite:generateContent
deadline: 60.0
pathTranslation: CONSTANT_ADDRESS
anthropic-claude-opus-47:
address: >-
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/publishers/anthropic/models/claude-opus-4-7:rawPredict
deadline: 60.0
pathTranslation: CONSTANT_ADDRESS
openai-gpt-oss-120b:
address: >-
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/endpoints/openapi/chat/completions
deadline: 60.0
pathTranslation: CONSTANT_ADDRESS
ai:
models:
routing:
routers:
# Router 1: route between Gemini (default) and Claude.
gemini-claude-router:
defaultModel:
backend: gemini-35-flashlite
targetModel: google/gemini-3.5-flash-lite
rules:
- model: "claude-opus-4-7"
backend: anthropic-claude-opus-47
targetModel: anthropic/claude-opus-4-7
# Router 2: route between OpenAI GPT (default) and Gemini.
openai-gemini-router:
defaultModel:
backend: openai-gpt-oss-120b
targetModel: openai/gpt-oss-120b-maas
rules:
- model: "gemini-3.5-flash-lite"
backend: gemini-35-flashlite
targetModel: google/gemini-3.5-flash-lite
servers:
- url: "https://my-gateway-url.com"
paths:
/v1/chat/gemini-claude:
post:
summary: "Endpoint:defaults to Gemini & Claude as an option."
operationId: "chatGeminiClaude"
x-google-model-router: gemini-claude-router
responses:
'200':
description: "OK"
/v1/chat/openai-gemini:
post:
summary: "Endpoint:defaults to OpenAI & Gemini as an option."
operationId: "chatOpenAIGemini"
x-google-model-router: openai-gemini-router
responses:
'200':
description: "OK"YAML
コピー済み
注意: 単一のルーターが参照するすべてのバックエンドは、同じホスト(例:aiplatform.googleapis.com)を共有する必要があります。ルーティングはこの共通の Vertex ホスト上で異なるモデルとパスを選択するものであり、異なるホスト間でのルーティングを行うものではありません。
- ゲートウェイのデプロイ: 更新した API 設定をデプロイして、ゲートウェイをアクティブにし、トラフィック処理の準備を整えてください。
- 標準的なリクエストを送信する: アプリケーションは、OpenAI の
POST /v1/chat/gemini-claudeまたはPOST /v1/chat/openai-geminiに対する標準的なリクエストをそのまま送信すればよいだけです。
ゲートウェイがこれをインターセプトし、ペイロードをバックエンドのネイティブスキーマに変換した上で、その場でルーティングします。以下に具体例を示します($API_KEY と my-gateway-url.com には適切な値を指定してください)。
curl -X POST "https://my-gateway-url.com/v1/chat/gemini-claude" \
-H "content-type: application/json" \
-H "x-api-key: $API_KEY" \
-d '{
"model": "claude-opus-4-7",
"messages": [
{"role": "user", "content": "Introduce yourself in 5 words"}
]
}'Shell
Copied
はじめに
API Gateway で AI モデルのルーティング機能がパブリックプレビューとして利用可能になりました。プロキシの管理から解放され、AI トラフィックを一元化したい場合は、ドキュメントを確認して、今日すぐに最初のモデルルーターをデプロイしてください。
前へ
次へ
原文を表示
developers.googleblog.com uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more
- Community/Events
- Learn
- Blog
- YouTube
AUG. 4, 2026
When building AI applications, developers need the freedom to route traffic to the best model for the job without hardcoding endpoints or managing open-source proxies. Google Cloud API Gateway now offers model routing in Public Preview to solve this. It provides a lightweight, serverless ingress layer that accepts OpenAI-compatible requests and dynamically routes them to Gemini, Claude, or OpenAI OSS-GPT.
API Gateway can be used standalone for simple rate limiting and token tracking, or paired seamlessly with the Gemini Enterprise Agent Platform. For example, you can route your agent's egress through Agent Gateway for strict security governance, and then pass the request to API Gateway to handle dynamic routing to Google-hosted LLMs. Here is a step-by-step guide on how to configure your routing logic.
Routing your traffic
Setting up your model routing logic takes just a few steps:
- Configure your routing rules: You can map virtual model names to specific backend targets directly in your OpenAPI 3.x specification using the new x-google-api-management extension block.
openapi: 3.0.4
info:
description: Using Model Routing in an OAS 3.x spec
version: 1.0.0
x-google-api-management:
backends:
gemini-35-flashlite:
address: >-
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/publishers/google/models/gemini-3.5-flash-lite:generateContent
deadline: 60.0
pathTranslation: CONSTANT_ADDRESS
anthropic-claude-opus-47:
address: >-
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/publishers/anthropic/models/claude-opus-4-7:rawPredict
deadline: 60.0
pathTranslation: CONSTANT_ADDRESS
openai-gpt-oss-120b:
address: >-
https://aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/global/endpoints/openapi/chat/completions
deadline: 60.0
pathTranslation: CONSTANT_ADDRESS
ai:
models:
routing:
routers:
# Router 1: route between Gemini (default) and Claude.
gemini-claude-router:
defaultModel:
backend: gemini-35-flashlite
targetModel: google/gemini-3.5-flash-lite
rules:
- model: "claude-opus-4-7"
backend: anthropic-claude-opus-47
targetModel: anthropic/claude-opus-4-7
# Router 2: route between OpenAI GPT (default) and Gemini.
openai-gemini-router:
defaultModel:
backend: openai-gpt-oss-120b
targetModel: openai/gpt-oss-120b-maas
rules:
- model: "gemini-3.5-flash-lite"
backend: gemini-35-flashlite
targetModel: google/gemini-3.5-flash-lite
servers:
- url: "https://my-gateway-url.com"
paths:
/v1/chat/gemini-claude:
post:
summary: "Endpoint:defaults to Gemini & Claude as an option."
operationId: "chatGeminiClaude"
x-google-model-router: gemini-claude-router
responses:
'200':
description: "OK"
/v1/chat/openai-gemini:
post:
summary: "Endpoint:defaults to OpenAI & Gemini as an option."
operationId: "chatOpenAIGemini"
x-google-model-router: openai-gemini-router
responses:
'200':
description: "OK"YAML
Copied
Note: All backends referenced by a single router must share the same host (for example, aiplatform.googleapis.com). Routing selects a different model and path on that shared Vertex host — it does not route across different hosts.
2. Deploy the Gateway: Deploy your updated API config so the Gateway is active and ready to process traffic.
- Send standard requests: Your application simply sends a standard OpenAI
POST /v1/chat/gemini-claudeorPOST /v1/chat/openai-geminirequest. The Gateway intercepts it, transcodes the payload to the native schema of the backend, and routes it on the fly. As an example (use appropriate values for$API_KEYandmy-gateway-url.com) :
curl -X POST "https://my-gateway-url.com/v1/chat/gemini-claude" \
-H "content-type: application/json" \
-H "x-api-key: $API_KEY" \
-d '{
"model": "claude-opus-4-7",
"messages": [
{"role": "user", "content": "Introduce yourself in 5 words"}
]
}'Shell
Copied
Get started
Model routing is now available in Public Preview for API Gateway. To stop managing proxies and start unifying your AI traffic, check out our documentation to deploy your first model router today.
Previous
Next
同じ出来事を2媒体で確認
同じ出来事を扱う別媒体の記事です。見出しと公開時刻を比較できます。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み