TL;DR: An AI gateway can reduce model spend by routing routine work to cheaper models while keeping sensitive tasks on frontier systems, according to JetStream Security, but the real control value is centralized governance over model choice, data path, and tool use. The security case depends on treating routing as runtime policy, not just cost optimisation.
At a glance
What this is: JetStream Security shows how an AI gateway can route routine requests to cheaper models, preserve frontier models for sensitive work, and centralize governance over model selection and data handling.
Why it matters: For IAM and AI governance teams, the key issue is that routing becomes a control point for access, data residency, and agent tool use, not just a cost-saving layer.
By the numbers:
- OpenRouter’s Claude Code app page showed GLM 5.2 at 811 billion tokens in the 30 days to July 7, sitting right behind Claude Opus 4.8.
- Artificial Analysis put GLM-5.2 at 51.1 on its coding index, compared with 55.7 for Opus 4.8 and 59.9 for Fable 5.
- JetStream Security says a 75/25 split can take a monthly bill from $20,000 to about $8,420.
- JetStream Security says the gateway itself costs about $100 a month to host, plus a week of somebody’s time to stand it up.
Context
An AI gateway is a control point that sits between applications and model providers, deciding which model handles each request and what gets sent to it. In practice, that makes it part routing layer, part governance layer, because it can shape cost, model choice, and the data path at runtime.
The governance gap is that many teams are still treating model selection as a purchase decision instead of a runtime policy decision. Once agents, coding tools, and internal assistants can switch models on the fly, the question becomes who can route what, under which conditions, and with what data exposure.
That is why this topic sits at the intersection of AI governance and identity control, even when the immediate goal is lower spend. The control point affects which model identity, which tenant, and which tool permissions are brought into each task.
Key questions
Q: What breaks when an AI gateway is treated as a cost tool instead of a control point?
A: When teams treat the gateway as only a pricing layer, they usually under-govern routing, logging, and exception handling. The result is inconsistent model selection, weaker visibility into sensitive prompts, and a false sense of control over agent behaviour. A gateway only reduces risk when routing policy, data handling, and runtime permissions are managed together.
Q: Why do AI gateways create governance value beyond model spend reduction?
A: They create value because they concentrate decisions about model choice, data path, and task routing in one place. That allows security and platform teams to apply policy consistently, measure usage, and steer sensitive tasks away from lower-trust paths. The governance payoff comes from centralised control, not from model switching alone.
Q: What are the signs that an AI routing policy is too weak?
A: The warning signs are uncontrolled fallback to cheaper models, unclear handling of sensitive prompts, tool calls that vary by application instead of policy, and no evidence that routing exceptions are reviewed. If different teams are making ad hoc decisions about where requests go, the gateway has become a convenience layer rather than a governed control.
Q: How should organisations govern AI gateways when they support multiple model providers?
A: Organisations should assign ownership for routing rules, provider credentials, logging, and exception handling, then review those controls as part of AI governance and access governance. Multi-provider setups increase flexibility, but they also widen the policy surface. Clear accountability is what keeps the gateway from becoming an unmanaged orchestration layer.
Technical breakdown
How AI gateway routing changes the control plane
An AI gateway proxies requests to multiple model providers and selects the target model based on policy, task type, or cost rules. That sounds simple, but it creates a control plane that now mediates prompt content, provider selection, logging, and sometimes tool invocation. The architectural consequence is that governance moves from the application layer into a central routing layer. That is useful for standardisation, but it also means the gateway becomes a high-value policy enforcement point, not just an optimisation layer. If it misroutes sensitive work, the resulting exposure is governance failure, not only cost drift. See the Shadow AI and AI Agent Discovery Guide.
Practical implication: Treat the gateway as a policy enforcement point and require explicit routing rules for sensitive workloads.
Why model routing and data residency are inseparable
The article’s core security point is that model origin and model hosting location are different questions. A hosted open-weight model can reduce some regulatory and sovereignty concerns if the data path stays under your control, while the same model called through an unmanaged service can create a very different risk profile. In governance terms, the data path matters more than the label on the model. That is especially relevant when prompts, tool outputs, or retrieved context may contain sensitive or regulated information. The routing decision therefore becomes a data-handling decision as well as a model-selection decision. See the AI and Privacy Guide.
Practical implication: Classify routing paths by data residency and regulatory exposure before allowing production traffic.
Agent tool use is the real security boundary
The gateway does not remove the classic agent risks that come with tool access, shell execution, secrets, and untrusted inputs. Those risks remain even if the cheaper model is open-weight and even if the frontier model is more expensive. The article’s practical insight is that the same booby-trapped content can hijack a tool-using agent regardless of which model is underneath it. That makes tool permissions, sandboxing, and secrets separation more important than model brand. The gateway can reduce spend, but it only improves security if it is paired with strict agent privilege boundaries.
Practical implication: Separate tool access, secrets, and internet reachability so the gateway does not become a blind trust point.
Threat narrative
Attacker objective: The attacker objective is to abuse trusted AI routing and tool access to extract data, trigger unsafe actions, or hijack model-driven workflows.
- Entry occurs when an agent or application sends prompts and tool requests through an AI gateway that can also route to third-party models.
- Credential and privilege exposure follows if the same runtime has access to secrets, shell capabilities, or broad provider credentials.
- Escalation occurs when the gateway or connected agent is allowed to execute tasks beyond the intended scope of the request.
- Impact is model misuse, data exposure, or unsafe action execution across the routed AI workflow.
Breaches seen in the wild
- LiteLLM MCP auth bypass 2026: An exploited LiteLLM MCP auth bypass and default sk-1234 master keys let attackers steal AI gateway master and provider API keys.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
AI gateways are becoming the governance layer for model selection, not just a cost layer. The article shows that routing decisions now determine which model, which tenant, and which data path each task uses. That means the control is no longer only economic, because a routing policy can materially change confidentiality, residency, and abuse exposure. Practitioners should treat gateway policy as part of AI governance architecture, not procurement.
Model choice is secondary to task control when agentic systems can switch providers dynamically. The cheapest model is rarely the whole story once tools, context, and output quality all influence the final task cost. The operational problem is deciding which work can safely move to the cheap lane and which must stay on a stricter runtime path. That shifts the governance question from vendor preference to policy design.
The named concept here is AI routing governance debt: the growing gap between how teams buy models and how they actually govern runtime task routing. Once organisations add proxies, fallbacks, and multi-provider orchestration, they create a new layer of policy sprawl that can outgrow the original app security model. Teams need explicit ownership for routing rules, logging, and exception handling.
This is also an identity problem because the gateway governs which non-human workflow is authorised to call which model and with which permissions. If the gateway becomes the de facto decision point for agent access, then model calls start to look like privileged service-to-service interactions. That makes LLM provider API key security relevant to the operating model, especially where provider credentials and tool tokens converge. Practitioners should govern gateway-issued access as NHI behaviour, not just application traffic.
The compliance issue is the data path, not the nationality of the model. The article is strongest when it separates where the model originates from where the data is processed. That distinction matters because sovereignty, residency, and regulatory scrutiny attach to the processing environment, not the marketing label on the model. Practitioners should evaluate every routed path against the jurisdiction and control requirements that apply to the data it carries.
Read next: Shadow AI and AI Agent Discovery Guide
What this signals
AI routing governance debt: once organisations add fallback models, policy rules, and tool-aware routing, the hard problem becomes keeping those controls consistent as the model market changes. The next step is to govern routing as a living policy surface rather than a one-time configuration choice.
The practitioner risk is not that cheaper models exist. The risk is that teams optimise for unit cost while ignoring the security and compliance properties of the full task path, especially when agents can carry secrets or invoke tools on behalf of users.
The operational boundary should move from model brand to task sensitivity. If a gateway can alter where prompts go, it also needs to participate in access governance, logging, and exception review across the AI workflow.
For practitioners
- Define routing policy by workload sensitivity Classify requests into routine, sensitive, and regulated categories, then route each category to an approved model path with explicit escalation rules.
- Separate tool access from model access Keep secrets, shell access, and internet reachability out of the same runtime path wherever possible so model choice does not become tool abuse.
- Measure completed-task cost, not per-token price Compare end-to-end task cost, including retries, caching effects, and tool-call overhead, before you decide which lane is actually cheaper.
- Pilot mirrored traffic before broad rollout Replay a representative slice of production traffic through the gateway, diff the outputs, and inspect tool-call behaviour before moving critical workflows.
Key takeaways
- AI gateways shift the main control question from which model to buy toward which tasks may flow to which model under which policy.
- The article’s strongest governance argument is that routing, residency, and tool access belong in the same control discussion.
- For practitioners, the practical test is whether the gateway can enforce workload-specific policy without weakening agent privilege boundaries.
Related NHI Mgmt Group resources: Shadow AI and AI Agent Discovery Guide · LLM Provider API Key Security and LLMjacking Guide · AI Governance Platform Buyer's Guide · AI Governance Guide
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agent routing and tool permissions are the central runtime governance risk in this article. |
| Recommendation — Constrain agent privileges and tool access so routing choices cannot expand runtime authority. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | Gateway-mediated model calls rely on provider and tool credentials that must be tightly governed. |
| NHI-05 — Overprivileged NHI | The article repeatedly warns against giving agents, gateways, and tools more access than needed. | |
| Recommendation — Harden machine authentication for gateway and provider calls and eliminate weak credential paths. Reduce gateway-linked service account scope to the minimum required for each workload. | ||
| NIST AI RMF | GOVERN — AI Governance and Accountability | The article is primarily about who owns routing policy, review, and exception handling. |
| Recommendation — Assign accountable ownership for routing policy, logging, and exception review across the AI stack. | ||
Key terms
- AI Gateway: A control point that sits between AI applications and the models, tools, or data they call. In practice, it can authenticate requests, enforce policy, inspect runtime behaviour, and stop unsafe actions before they spread into connected systems.
- Routing Policy: Routing policy is the set of rules that determines which model, tier, or fallback path handles each AI request. When the policy is weak, organisations can under-protect high-stakes work or over-spend on routine tasks.
- Model Routing Layer: The model routing layer is the policy and orchestration logic that decides which model handles a request, when to escalate, and what tools the request can reach. In AI programmes, it behaves like a control plane because it shapes data exposure, privilege boundaries, and auditability.
- Runtime Governance: Runtime governance is the set of controls that verify what a system or agent is actually doing after deployment. It combines monitoring, authorization checks, and access validation so teams can detect drift, misuse, or excessive privilege in motion rather than assuming build-time policy still holds.
Deepen your knowledge
NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course, the industry's only accredited NHI security programme. It helps practitioners connect runtime governance, access control, and machine identity into one operating model.
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org