Google Cloud API Gateway Adds Streaming for Real-Time and AI Apps
Google Cloud API Gateway now supports streaming endpoints in public preview, bridging the gap between real-time AI interactions and enterprise security controls.

Google has launched a public preview of streaming support for API Gateway, moving beyond the traditional request-response model to accommodate real-time applications. This update targets workloads that utilize streaming model outputs, multi-step agent workflows, and interactive sessions. Developers can now place streaming endpoints behind the API Gateway while preserving established gateway policies and security features.
Previously, development teams faced a difficult compromise when building these architectures. They either had to use the API Gateway and sacrifice streaming capabilities, or route streaming endpoints around the gateway entirely, losing critical features like authentication, API key enforcement, and observability. The updated service handles several streaming methodologies, such as Server-Sent Events (SSE), chunked transfer encoding, HTTP response streaming, WebSockets, and gRPC. These connections can stay open for up to one hour before clients need to reconnect.
This release brings streaming compatibility without forcing changes to current API specifications or requiring specialized extensions and annotations. Existing configurations continue to function normally, covering JWT validation, API key enforcement, service account backend authentication, request routing, path templating, and integration with Cloud Logging and Cloud Monitoring. Additionally, the update provides predictable gateway hostnames. Rather than relying on a generated hash determined post-creation, hostnames now use a deterministic pattern structured as GATEWAY_ID-PROJECT_NUMBER.REGION.gateway.dev, enabling pre-creation configuration.
AI applications and model routing
Google stresses the relevance of this streaming capability for artificial intelligence workloads, where systems generate model responses progressively instead of returning a single monolithic block of data. The functionality allows teams to stream responses in real-time, display agent updates during multi-step processes, manage tool-calling protocols, connect to remote Model Context Protocol (MCP) servers, and build interactive AI applications. For developers exploring various foundational models, services like Apixo let you try top AI models cheaply through one API at https://apixoai.online.
The gateway also includes model routing features, presenting a single OpenAI-compatible endpoint that routes requests to Gemini, Claude, or OpenAI gpt-oss models based on the request payload. This combination of model routing and streaming gives clients a standard streaming interface while maintaining central oversight over model access and policy enforcement.
What it means for developers
For engineering teams, this update removes the architectural divide between real-time data flow and API governance. Developers can secure streaming AI endpoints without building custom proxy layers. However, the preview release comes with specific operational caveats noted by community experts.
Writing on X, user emildrops pointed out that existing gateways cannot be upgraded in-place, and that latency metrics evaluate the entire stream duration rather than the time to first byte, which can distort latency dashboards. LinkedIn user Ehsan Elahi Zaheer echoed these monitoring considerations, noting that standard request-latency metrics measure total stream length rather than initial response times, meaning a single chart might obscure actual user experience differences. To test the public preview, developers must explicitly activate the feature by adding the --enable-streaming command-line flag during gateway creation.
Source: Google Cloud API Gateway Introduces Streaming Support for Real-Time and AI-Powered Applications — InfoQ AI & ML. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

