LLM Routing: How It Works and What the Benchmarks Show
MarkdownHow LLM routing works, the four routing approaches, what RouteLLM and LLMRouterBench report, and where routing stops helping.
LLM routing sends each request to the model best suited to it. The technique is real and the savings can be real, but recent benchmark findings show that several commercial routers fail to beat a simple baseline. Here is how routing works and where it stops helping.
Summary
LLM routing directs each incoming request to the most suitable model in a pool, usually to cut cost or latency while holding quality. Routers decide by rule, trained classifier, cascade, or semantic similarity. Savings depend on the policy and workload. A predictive router selects a model before generation; a cascade can make additional model calls when it escalates.
Key takeaways
- LLM routing selects models for requests under goals such as quality, cost, and latency. Some policies select before generation; cascades may evaluate an initial answer and call another model.
- Routers decide four ways: rules on request metadata, a trained classifier, a cascade that escalates after a cheap attempt, and semantic similarity to previously seen queries.
- RouteLLM reports benchmark-dependent savings. Its project README and authors’ blog report up to 85% in a specific benchmark setting; the paper’s Table 6 reports a 3.66× cost-saving ratio on MT Bench at 95% of GPT-4 quality.
- LLMRouterBench, a large public routing benchmark, found that several recent approaches, including commercial routers, fail to reliably outperform a simple baseline.
- Routing can lower inference cost, but router overhead and extra calls in a cascade also count.
Last updated: 29 November 2026.
What LLM routing actually is
LLM routing selects a model or sequence of models from a pool for an incoming request, based on goals such as quality, cost, or latency. A predictive policy selects before generation; a cascade may evaluate an initial answer and escalate to another model.
Three properties of that definition do real work. The decision is per request, so two users asking different things in the same session can land on different models. A policy can choose poorly: a cheaper model may fail a hard request, while a more expensive one may add unnecessary cost to an easy request. And the decision is made from a pool, which means routing only exists when you have already accepted the operational cost of depending on more than one model.
IBM Research's 2024 write-up on routers draws a clear line through the design space, splitting routers into non-predictive ones that run inference on several models and pick the best result, and predictive ones that decide from information gathered before any inference happens. Almost everything sold as a router today is predictive. The framing predates current model tiers, but the distinction remains useful.
Why teams reach for routing now
The spread between tiers inside a single vendor’s lineup can make routing worth investigating. As checked on 29 November 2026, standard uncached token prices per million are $1 input and $5 output for Haiku 4.5, $2 and $10 for Sonnet 5, and $5 and $25 for Opus 5 (Anthropic pricing). Google lists Gemini 2.5 Flash-Lite at $0.10 input and $0.40 output, and Gemini 3.1 Pro Preview at $2.00 and $12.00 for prompts of at most 200,000 input tokens (Google Gemini API pricing). That is a twenty-fold input-price difference in this comparison. These are prices checked on that date, not a reconstruction of the September rate card; check current prices and availability before deciding.
The second condition is that production traffic is rarely uniformly hard. A support deployment answers a long tail of genuinely difficult questions and a fat head of “where is my invoice.” A coding assistant handles architecture questions and import fixes through the same endpoint.
Consider a hypothetical ticket-classification step with 800 uncached input tokens and 20 output tokens per call, and two million calls a month. At the listed standard token rates, Opus 5 would cost $8,000 for 1,600 million input tokens plus $1,000 for 40 million output tokens, or $9,000 a month. Haiku 4.5 at the same volumes would cost $1,600 plus $200, or $1,800. The $7,200 difference is a token-only price comparison, not guaranteed savings; it excludes routing, retries, caching effects, and other charges.
That arithmetic is not a benchmark result and does not establish quality parity. Whether the cheaper model meets your required accuracy on your taxonomy must be tested on your own data. It requires an evaluation, and that evaluation determines whether the rest of this article matters to you. Classification with a fixed label set is the friendliest possible case for routing, because correctness is checkable against ground truth already present in ticket history. Most routing decisions are not that clean.
The four ways routers decide
| Approach | How it decides | What it costs you | When it fits |
|---|---|---|---|
| Rule and metadata | Hand-written conditions on properties you already know: endpoint, customer tier, prompt length, requested output format | Engineering time to maintain rules, and drift as traffic changes | Traffic segments are already known and structurally distinct |
| Classifier | A small trained model scores predicted difficulty or predicted win rate, then thresholds it | Training data, retraining when models change, plus its own inference hop | High volume, heterogeneous traffic, and labelled history to train on |
| Cascade | Tries the cheap model first, evaluates the answer, escalates on failure | Double inference on every escalated query, and a hard dependency on the quality check | Verifiable outputs, where a cheap self-check or validator is trustworthy |
| Semantic | Embeds the request and routes by similarity to a library of past queries with known good handlers | Embedding cost per request, plus maintenance of the reference library | Repetitive traffic clustered around a stable set of intents |
Each of these is a strategy with its own tuning surface, failure behaviour, and evaluation method.
Rule and metadata routing
Conditions written by hand against properties available before the model sees anything. Rules are straightforward to inspect and maintain. A study found training-free routers more robust across the attacks it tested; rules can still be abused if their inputs or conditions are attacker-controlled.
Classifier routing
A small model, often a fine-tuned encoder, predicts whether the cheap model will succeed. This is where much of the published research concentrates, and it is the approach that most needs your own traffic to train on.
Cascade routing
Answer cheaply, check the answer, escalate if the check fails. The economics are determined by escalation rate and by whether your check is better than a coin flip. A cascade with a weak verifier can add cost without reliably improving the answer.
Semantic routing
Embed the query and route by nearest neighbour in a curated library. It is fast and interpretable when traffic clusters. It degrades quietly when a new intent appears that resembles nothing in the library.
What the research actually found
What RouteLLM showed
RouteLLM, from Ong and colleagues at Berkeley's Sky Computing Lab, trained routers on human preference data from Chatbot Arena and added data augmentation to improve them. The arXiv abstract reports cost reduction “over 2 times in certain cases” without compromising response quality, and says the routers transfer, holding performance when the strong and weak models are swapped at test time (arXiv:2406.18665). The abstract names no specific benchmark for the cost figure.
The project’s README and the authors’ blog report up to 85% lower costs while retaining 95% of GPT-4 performance in a specific MT Bench setting. The paper separately reports in Section 5.4, Table 6 a 3.66× cost-saving ratio on MT Bench at 95% GPT-4 quality. These are results under particular experimental setups, not a guaranteed saving for another workload.
What LLMRouterBench found
A public evaluation of routing published in July 2026 examined more than 400,000 instances from 21 datasets and 33 models, and ran 10 representative routing baselines through a unified evaluation (Findings of ACL 2026).
Four of its findings should shape how you plan a routing project.
The premise of routing holds. The authors confirm strong model complementarity: different models really do win on different queries, leaving headroom for a router to capture.
The methods are less differentiated than the literature implies. Under unified evaluation, many routing methods perform similarly. The specific technique you pick matters less than the fact that you routed at all.
Several recent approaches, commercial routers included, fail to reliably outperform a simple baseline. That does not mean routing fails. It means that buying a sophisticated router is not a reliable improvement over routing crudely, and that the burden of proof sits with the vendor.
A substantial gap remains to the Oracle, the hypothetical perfect router, driven mainly by persistent model-recall failures. The available upside is real and largely uncaptured. The authors also report that the choice of backbone embedding model has limited effect, and that enlarging the model pool shows diminishing returns compared with careful curation of which models are in it.
Read together, the two papers give a useful picture. Routing earns money in measured cases. Research does not strongly determine which router to use. Treat it as an experiment on your own traffic with a control arm, not as a discount you procure.
Routing versus an LLM gateway
These three mechanisms get conflated in procurement conversations, but they solve different problems.
| Mechanism | What it decides | Primary purpose |
|---|---|---|
| Routing | Which model answers this request | Cost and quality per request |
| Load balancing | Which instance, region, or key serves this request | Throughput and rate-limit headroom |
| Gateway | Nothing about model choice by itself | One API surface with key management, logging, retries, and fallbacks |
The practical consequence: a gateway is where a router gets deployed, and many gateway products include some routing, but adopting a gateway does not mean you are routing. If every request still goes to the same model through a unified API, the gateway does not by itself select a cheaper model. Other gateway features and their fees may still affect the bill.
Where routing stops helping
A predictive router adds a hop before every request. A classifier or embedding step can add latency to the critical path. In a cascade, an escalated query also incurs the first attempt, validation, and the subsequent model call; the added latency depends on implementation.
The router is also a new component that can fail or misclassify, and its failures are quieter than an outage. Quality drift shows up as a slow increase in the share of hard queries answered by the cheap model, which looks like nothing on a cost dashboard and looks like everything to the affected users. Any routing deployment needs a quality metric watched as closely as the spend metric.
Learned routers have an additional adversarial attack surface; rule-based policies can also be manipulated through attacker-controlled inputs. Researchers found that crafted tokens added to queries can influence routing toward expensive models in evaluated white-box and black-box settings against open-source and commercial routers (arXiv:2501.01818). A 2026 follow-up optimises adversarial suffixes against black-box routers through a surrogate ensemble (arXiv:2604.15022). A systematisation of the threat categories reports that real routing systems are most vulnerable to cost escalation specifically (arXiv:2601.21380). A broader robustness study found DNN-based routers weakest and training-free routers most robust, since they have no learned parameters to manipulate (arXiv:2503.08704). If your router faces untrusted input and your savings thesis depends on most traffic staying cheap, an adversary can undermine that thesis.
The ceiling is the part worth sitting with. Routing changes model selection but does not necessarily reduce the number of tasks in a workflow. A predictive policy may add a routing inference, while a cascade may add a second model call after an initial attempt. Account for those calls when measuring total cost and latency. Routing sits below the orchestration layer and is one lever among a wider set of cost controls.
This article does not cover router evaluation methodology, which is a harder problem and deserves its own treatment. It also does not address multi-objective routing where latency budgets and compliance constraints compete with cost.
Frequently asked questions
What is LLM routing?
LLM routing selects models from a pool for a request according to goals such as quality, cost, and latency. A predictive router selects before generation; a cascade may evaluate a first answer and call another model. The choice can be wrong.
What is the difference between LLM routing and an LLM gateway?
Routing decides which model answers a given request. A gateway provides one API surface across providers, handling key management, logging, retries, and fallbacks. A gateway is where a router gets deployed, but adopting a gateway does not mean you are routing. If every request still reaches the same model, the gateway does not by itself select a cheaper model; its other features and fees can affect spend.
Does LLM routing actually reduce costs?
In measured cases, yes. The RouteLLM paper reports cost reduction of over two times in certain cases. But LLMRouterBench, which evaluated 10 routing baselines across more than 400,000 instances, found several recent approaches, including commercial routers, fail to reliably outperform a simple baseline. Treat routing as an experiment on your own traffic with a control arm, not a procured discount.
When should I use per-query routing instead of fixed rules?
Per-query routing earns its complexity when traffic is heterogeneous in ways your metadata cannot see, volume is high enough that a few percentage points of cost matter, and you have labelled history to train on. When your traffic already splits along known structural lines, such as endpoint or customer tier, rules can be simpler to inspect and maintain; measure their cost, latency, and security on your own workload.
What are the risks of LLM routing?
A router can add latency and becomes a component that can fail or misclassify. Quality drift is the quiet risk: more hard queries answered by the cheap model, invisible on a cost dashboard. Learned routers have an additional adversarial attack surface: published work shows crafted inputs can steer evaluated routers toward expensive models. Rules can also be manipulated when their inputs are attacker-controlled.
With 1,284 models and variants across 15 categories, Ailoot is one of the world’s largest AI routers by model count. Explore the Ailoot AI API gateway with a key issued by Ailoot. Work across media on one balance. Edit photos with GPT Image 2.6 Sunburst, generate video with Veo, transcribe audio with Scribe, create music with Lyria or build 3D assets with Tripo3D. Add Qwen4 Max for code or BGE embeddings for search.
Use one Ailoot API key to access models from different providers. Choose a model for each task in your application.
Use an Ailoot account for project keys and spend controls. Pair the API with Ailoot CLI, Ailoot Code or a supported SDK such as LiteLLM.
New flagship models are available on Ailoot at launch. One subscription covers the full catalogue, and subscriptions and promo codes can save up to 50% on official provider API prices. Find your current offers at https://ailoot.ai/.