Provide secure access to your backend services through a well-defined REST API that is consistent across all of your services
servicefree
Google Cloud API Gateway is Google Cloud's fully managed, pay-per-call gateway for putting a consistent REST API in front of backend services such as Cloud Run, Cloud Run functions and App Engine, or backends outside Google Cloud. You describe the API in an OpenAPI 2.0, 3.0 or 3.1 spec, upload it as an API config with gcloud, and deploy it to a gateway; at runtime the gateway validates API keys and JWTs (Google ID tokens, service accounts, Firebase, Auth0, Okta and other issuers), checks quotas through Service Control, and reports logs, metrics and traces to Cloud Logging and Monitoring. It transcodes HTTP/JSON to gRPC for Cloud Run gRPC services, and in preview it adds a streaming mode (SSE, WebSockets, bidirectional gRPC), model routing of OpenAI-compatible requests to Gemini, Claude or GPT models in Model Garden, and an MCP mode that exposes REST operations as MCP tools. It's the lightweight option beside Google's full API management platform, Apigee, and competes with Amazon API Gateway.
Problems it solves
- put one consistent, authenticated REST API in front of several Cloud Run services
- require API keys for our serverless backend on Google Cloud without writing auth code in each service
- a pay-per-call API gateway on Google Cloud whose first 2 million calls a month are free
- validate Firebase, Auth0 or Okta JWTs at the gateway before requests reach our Cloud Run functions
- let browsers call our gRPC services on Cloud Run over plain HTTP and JSON
- define our public API in an OpenAPI spec and deploy the gateway from it with one command
- limit how often each client app can call our API with quotas defined in the API config
- route OpenAI-style chat requests to Gemini, Claude or GPT models without running our own LLM proxy
- expose our REST API as MCP tools for AI agents without writing an MCP server
- stream LLM responses over server-sent events or WebSockets through a managed gateway
- change backend implementations without breaking the public API our mobile app calls
Features
- API definitions in OpenAPI 2.0, 3.0.x or 3.1.x
- API keys, Google ID tokens, service accounts and JWTs from Firebase, Auth0, Okta and other issuers
- quotas defined in the API config and checked through Service Control
- HTTP/JSON to gRPC transcoding for Cloud Run gRPC services
- backends on Cloud Run, Cloud Run functions, App Engine or outside Google Cloud
- Cloud Logging, Cloud Monitoring metrics and Cloud Trace tracing
- multi-region deployment and custom domains behind a global external Application Load Balancer (serverless NEG, preview)
- customer-managed encryption keys (CMEK)
- connection to Apigee API hub for an API catalog
- streaming mode for SSE, WebSockets and bidirectional gRPC (preview)
View 3 more
- model routing of OpenAI-compatible prompts to Model Garden models (preview)
- MCP mode that serves REST operations as MCP tools (preview)
- gcloud api-gateway commands, an API Gateway REST API and client libraries
Limitations
- Doesn't proxy gRPC to backends other than Cloud Run: gRPC transcoding supports Cloud Run gRPC services only1
- Doesn't support MCP resources or prompts: its MCP mode (preview) serves REST API operations as tools only2
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Google Cloud API Gateway does.
- Google Cloud Endpoints An API management system that helps you secure, monitor, analyze, and set quotas on your APIs
- Amazon API Gateway Create, maintain, and secure APIs at any scale
- Apigee Manage APIs with unmatched scale, security, and performance
- Tyk Open Source API and AI Gateway supporting REST, GraphQL, TCP, gRPC and MCP (Model Context Protocol)
- KrakenD High-performance, stateless, declarative API Gateway written in Go
- Apache APISIX The Cloud-Native API Gateway and AI Gateway
