When a company runs several AI models at once, how should applications reach them? Google Cloud’s answer is AI inference networking built around one stable, private entry point. Requests arrive there first, get checked and governed, and are then sent to whichever model should answer.
Google Cloud’s developer relations team describes two reference architectures for this job in a blog post. One covers models served on Google Kubernetes Engine (GKE), Google’s managed service for running containerized software. The other covers every other kind of backend. This guide walks through what they share, where they differ, and what a request experiences along the way.
What is the entry point in AI inference networking?
The entry point is the front door for inference calls. Google Cloud explains that a model deployment can sit behind a stable, secure and reliable endpoint that serves as the front end. It also acts as a control zone, a single place where policy, security and routing logic can be enforced instead of being repeated in every model service.
Google Cloud names two products that can fill this role: Cloud Load Balancer and Inference Gateway. According to the post, both can end secure connections with TLS (the encryption that protects traffic in transit), connect to API management components, extend behavior through service extensions, and use Model Armor for added security.
The practical benefit is centralization. A team that runs many models can change a security rule or a routing decision once at the entry point, and every model behind it follows the new rule.
Which services do both designs share?
Google Cloud lists three services that appear in both reference designs.
- Private Service Connect inference endpoint. This anchors the entry point inside the consumer’s own Virtual Private Cloud (VPC), which is the customer’s private network on Google Cloud. Traffic reaches a private internal IP address, so inference calls stay inside that private network.
- Apigee API Management (optional). Connected through an Apigee Extension Processor callout, it handles client identity checks, rate limits and quota enforcement before a request reaches any compute resources.
- Model Armor. This works as an inline safety checkpoint. It screens prompts and the model’s completions for prompt injection and for leakage of sensitive data.
Prompt injection means text crafted to trick a model into ignoring its instructions. Placing the screening step inline means every request and response passes through it, rather than depending on each application to remember to check.
How does the GKE-only design work?
The GKE design adds three components to the shared ones. Google Cloud’s post points readers to a full architecture document, Networking for AI inference model serving on GKE, for the complete end-to-end picture.
- GKE Inference Gateway. It is deployed as an internal Application Load Balancer. Google Cloud describes it as a specialized ingress engine that reads the incoming request payload, evaluates routing rules written as HTTPRoute resources, and steers each query to the right model-serving target.
- Inference pools. A pool is a logical group of replicas of the same model. When the gateway receives a prompt, it uses the model identifier to select the matching pool. Pools start at an initial size and can be set to autoscale.
- Model replica sets. These are the individual copies of a model, called inference server instances, running on single-node or multi-node GPU or TPU node pools. A replica set is a uniform group of such copies.
The difference from an ordinary load balancer is that this gateway looks inside the request. Because it reads the payload and knows which model was asked for, it can route by model rather than only by network address.
What does a request look like on GKE?
Google Cloud walks through the flow. A client application in the consumer VPC sends an OpenAI-compatible API call to the local Private Service Connect endpoint. That endpoint leads straight to the GKE Inference Gateway, which runs as a regional internal Application Load Balancer. The gateway then reads the payload, matches the model identifier against its routing rules, and picks an inference pool. The excerpt of the post available for this guide cuts off after the payload inspection step, so later stages of the flow are not covered here.
OpenAI-compatible means the request follows the same format many AI tools already use. Applications built for that format can generally call the endpoint without a custom client.
What changes for non-GKE backends?
The second reference design covers all other backend types. Google Cloud’s summary says it keeps the same entry point idea, with Cloud Load Balancer or Inference Gateway fronting the models, along with the shared Private Service Connect, Apigee and Model Armor services. The GKE-specific parts, such as inference pools and replica sets, belong to the Kubernetes design. The detailed component list for the non-GKE design was not included in the material available for this guide, so its exact backend options should be read in Google Cloud’s original post.
The consistent idea across both designs is that governance lives at the front. Where the model actually runs can differ, but identity checks, quotas, safety screening and private connectivity stay in the same place.
How does this compare with other ways of serving models?
Teams often start by giving each model its own endpoint and letting each application call it directly. That is simple, but security rules, rate limits and logging end up scattered across services. The reference designs describe the opposite pattern: a shared front door that applies the same controls to everything behind it.
Within Google Cloud’s own designs, the main choice is the backend. The GKE design adds model-aware routing and pool-based scaling, which suit teams already running inference on Kubernetes with GPU or TPU node pools. The other design fits models hosted elsewhere. The blog post is a reference architecture from one vendor, so it describes Google Cloud’s recommended shape rather than a neutral survey of alternatives.
A concrete workflow: one company, several models
Imagine a company that runs a chat assistant, a document summarizer and an internal coding helper, each backed by a different model. Following the GKE design, its applications would all send OpenAI-style calls to one private Private Service Connect address inside the company network.
Behind that address, the Inference Gateway reads each request, sees which model is named, and routes it to the matching inference pool. If Apigee is added, a client’s identity and quota are checked before the request reaches a GPU. Model Armor screens the prompt on the way in and the completion on the way out. When one model gets busy, its pool can scale without the applications changing where they send requests.
This example illustrates the pattern the post describes and is not a case study from Google Cloud.
Where does NVIDIA NIM fit in?
The GKE design needs something running inside the replica sets, and NVIDIA’s documentation describes one option. NVIDIA says NIM is a set of microservices meant to speed up deploying generative AI models across cloud, data center and workstations, and that it lets organizations self-host large language models while exposing industry-standard APIs. NVIDIA’s documentation also outlines two ways to deploy NIM on GKE: a ready-made Kubernetes application launched from the Google Cloud marketplace, or a custom cluster built with Terraform and Helm for full control.
NVIDIA’s guide notes that the marketplace route takes roughly 15 to 20 minutes depending on the model and cluster settings, and that it requires a Google Cloud account with billing and a project with specific service account roles. Google Cloud’s networking post does not say that NIM is part of its reference design, so NIM here is one example of an inference server a team could place behind the gateway, not a requirement.
Reading the designs critically
These are reference architectures, meaning patterns to adapt, not finished products with guaranteed results. The excerpt reviewed here does not include pricing, performance figures or latency numbers for the gateway, Model Armor screening or Apigee callouts, so the cost of adding each layer cannot be judged from it. Each added checkpoint sits in the path of every request, and teams should check Google Cloud’s current documentation for the overhead, regional availability and any preview status of Inference Gateway features before planning around them.
Apigee is described as optional, which means identity and quota enforcement are a design choice and not automatic. Model Armor is described as screening for prompt injection and sensitive data leakage, but the post does not quantify how well it catches either, so it should be treated as one layer of protection and not a complete guarantee.
The takeaway
The common thread in both designs is a single private, governed entry point in front of many models. On GKE, that entry point also understands the request well enough to pick the right model pool. For other backends, the same front door keeps security and policy consistent even though the serving layer differs. How much latency and cost those checkpoints add under real traffic remains the open question Google Cloud’s reference material does not answer.