
What Is Model Routing and How LLM Gateways Direct Requests by Cost, Latency, and Quality
Model routing is a decision layer between your app and multiple LLMs that directs each request to the optimal model by cost, latency, or task complexity.
This topic is curated by our AI council — see how it works.
Every request that reaches your LLM stack passes through one decision before a token gets generated: which model actually answers it. Get that decision right and simple queries stop paying frontier prices while hard ones still get the capability they need; get it wrong and you either overspend by default or quietly degrade answers to save money. Model routing is the request-by-request layer of the LLMOps production stack that makes that call, which is why it sits at the center of the theme’s core control loop rather than at either edge.
Start with what model routing is and how LLM gateways direct requests by cost, latency, and quality — it lays out the decision layer the rest of this topic assumes you already understand. Read the cost metrics, latency budgets, and fallback logic to know before implementing model routing next: it is the prerequisite check most teams skip, and skipping it is exactly what turns a routing project into a production incident.
Once the concepts are set, the guide to cost optimization, fallback, and latency control with OpenRouter and Portkey gets a routing policy live on managed infrastructure fastest; the step-by-step guide to a self-hosted router with LiteLLM, Bifrost, and Braintrust is the deeper build for teams that want the tiering policy under their own control. For the state of the market, how real teams are routing LLM traffic in 2026 with Braintrust, OpenRouter, and LiteLLM separates what’s shipped from what’s still a claim, and the case for treating routing as an accountability question, not only an infrastructure one closes the ladder with the question the other four never ask: who is responsible when the router decides.

Three neighbouring topics get folded into model routing, and each folding hides a different mistake.
Q: Do I need model routing if I only ever call one frontier model? A: Only if every request is equally hard — most workloads aren’t. Routing lets simple queries hit a cheaper model while complex ones still reach the frontier tier, the request-by-request framework the OpenRouter and Portkey guide builds instead of a single model-wide choice.
Q: Can a routing decision get made without anyone knowing which model actually answered? A: Yes — most gateways don’t log or surface the winning model by default, so a downgrade made to save cost is invisible unless you build the check in yourself. Black-Box Routing examines what that invisibility costs once a wrong answer reaches a user.
Q: Should I build my own router or use a managed one like OpenRouter? A: A managed router gets fallback and multi-provider coverage live fastest; a self-hosted stack like LiteLLM or Bifrost costs more setup time but keeps the tiering policy entirely under your control. The self-hosted router guide walks the trade-off in build order.
Q: Why does a routing setup sometimes cost more than sending everything to one model? A: Usually because the tiers were never mapped before the config was written — routing without a cost and latency budget per tier just adds infrastructure on top of the same spend. The prerequisites read covers the budgeting step teams skip.
Q: Does model routing stop mattering once providers converge on price? A: No — routing optimizes latency and quality fit as much as cost, and what real teams are doing with Braintrust, OpenRouter, and LiteLLM in 2026 shows routing has become load-bearing production infrastructure rather than a pure cost hack, even as price gaps close.
Part of the LLMOps production theme · closest neighbour: LLM cost management.
Model routing is less straightforward than it appears — selecting the right model per request requires a policy that accounts for input complexity, expected output length, and acceptable latency, not just cost alone.
Concepts covered

Model routing is a decision layer between your app and multiple LLMs that directs each request to the optimal model by cost, latency, or task complexity.

Model routing rests on three prerequisites: token cost asymmetry, P99 latency SLOs by workload, and circuit breaker fallback logic for provider failures.
The guides walk through routing policies, fallback chains, and cost-optimized dispatch using self-hosted and managed routers — with the tradeoffs that matter most in real deployments.
Tools & techniques

Route simple queries to cheap models, complex ones to frontier models. Spec guide for OpenRouter fallback chains, Portkey circuit breakers, and caching.

Three-tier model routing with LiteLLM, Bifrost, and Braintrust Gateway: route by complexity, throughput, and quality in a single self-hosted stack.
Model routing is shifting fast as new open-weight models challenge proprietary ones on quality — teams that locked in a single-model strategy are already revisiting their architecture.
Models & benchmarks
Updated July 2026

Model routing in 2026 is a cost lever and a security attack surface. Teams routing 70% to cheaper models cut per-million token costs from $15 to $2.
Black-box routing decisions can silently downgrade response quality or expose request data to third-party providers without user awareness — routing policy design is an ethical decision, not only a cost one.
Risks & metrics

Black-box AI routing substitutes cheaper models by default, without disclosure. EU AI Act Article 50 requires only AI-use disclosure, not model identity.