AI Cloud Architect

Model routing with Google Cloud API Gateway

GoogleHow-to by Mak Ahmad and Sanjay PujareGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

API Gateway now routes OpenAI-compatible requests to Gemini, Claude or OpenAI gpt-oss models via router config in an OpenAPI spec, in Public Preview.

Who it is for

Teams calling several LLMs who want one stable endpoint and to swap backend models without changing client code.

Key points

  • Routing rules are set with the x-google-api-management extension in an OpenAPI 3.x spec.
  • All backends used by one router must share the same host, such as aiplatform.googleapis.com.
  • Client apps authenticate to the gateway, so backend model credentials can change without app changes.

The same at other vendors

Timeline

Posts about Google Cloud API Gateway, oldest first.

  1. This postModel routing with Google Cloud API Gateway
  2. New featureTurn your REST APIs into MCP tools with Google Cloud API Gateway · Google · Announcement