Plain-language explainer
Model routing, explained
What is model routing, and how do you choose which AI model to use?
Model routing sends each request to the cheapest model that can still handle it, instead of using one big model for everything. Most requests are easy, so a small, cheap model clears them, and only the hard few need a frontier model. A router can decide up front, or cascade: try a small model, check the result, and escalate only if it falls short. Done well, you hold a quality bar while cutting cost and latency, because you stop paying frontier prices for easy work.
Last reviewed
Reading is the slow way. Start with a free lesson you can operate right now.
Start free: From the internet to your answer →Free, no code, no signup.
Then go deeper: Model routing: the cheapest model that passes Locked
What exactly is a model router?
Every AI product that offers more than one model answers a small question thousands of times a day: which model should take this request? A model router is the piece that answers it. It sits in front of a family of models, inspects each incoming request, and picks which model serves it. The user sees one assistant. Behind the curtain, an easy question can go to a small fast model while a hard one goes to a frontier model.
The router itself is usually boring on purpose. It can be a handful of rules, a small trained classifier, or, in the newest products, the model family judging the difficulty of the request itself. Whatever the form, it has one job: make a good enough decision in milliseconds, for a tiny fraction of the cost of the call it is about to place. A router that costs as much as the calls it saves is not a router, it is overhead.
Two shapes cover most real systems. A router decides once, up front, and commits. A cascade tries the cheap model first, checks the answer, and escalates to a stronger model only when the check fails. Routing is faster because nothing is retried. Cascades are safer because a wrong guess gets caught. Mature systems often route first and keep a cascade as the safety net.
Why not just use the best model for everything?
Because you would pay frontier prices for work that does not need a frontier model. Real traffic is lopsided. A support bot sees password resets far more often than legal edge cases. A coding assistant renames variables more often than it designs systems. When most requests are easy, sending everything to the biggest model means overpaying on most of what your product does.
The price gap between tiers is what makes routing worth engineering. Inside each major provider's lineup, the small tier is roughly 5 to 10 times cheaper than the frontier tier, and industry write-ups in 2026 put the spread between a cheap workhorse and a state-of-the-art model at 10 to 20 times. Reasoning modes widen the gap further: a thinking model also generates many more output tokens per answer, and output tokens are the expensive ones.
Latency tiers the same way. Small models answer in well under a second, while a frontier model in thinking mode can take tens of seconds. For easy requests, routing down is not a sacrifice: you get a better experience, sooner, at a tenth of the price. The interactive lesson on this site lets you play the router yourself, triaging a stream of requests across tiers and watching cost, latency, and quality move together. The table shows the tier gaps as of mid-2026.
| Provider lineup | Small tier, in / out | Frontier tier, in / out | Rough gap |
|---|---|---|---|
| OpenAI, nano to flagship | $0.20 / $1.25 | $1.25 / $10 | about 6 to 8x |
| Google, Flash-Lite to Pro | $0.25 / $1.50 | $2 / $12 | about 8x |
| Anthropic, Haiku to top tier | $1 / $5 | $5 to 10 / $25 to 50 | about 5 to 10x |
What routing strategies do teams actually use?
Four patterns cover the field, in rough order of sophistication.
- Rules. If the message is short and matches a known easy intent, use the small model. Rules are transparent, free to run, and capture the obvious wins. Most teams should start here.
- Learned routers. A small classifier trained on past traffic predicts whether the cheap model would be good enough for this request. RouteLLM, an open research project from the LMSYS group, reported cost cuts of up to roughly 85 percent on its benchmarks while keeping about 95 percent of frontier-model quality, by sending only the hard minority of queries upward.
- Cascades with fallback. Run the cheap model, verify the answer, escalate on failure. FrugalGPT, an early Stanford project, reported matching frontier quality on some tasks at a few percent of the cost this way. The catch is latency: an escalated request pays for two calls in a row, so the check has to be strict enough to fire rarely.
- Self-routing. The newest products let the model family judge its own difficulty. An auto mode reads the request and chooses between an instant variant and a thinking variant. That is a router wearing the model's own badge.
Where do you meet routing in products you already use?
ChatGPT is the loudest example. As of mid-2026 its default Auto mode is a router: each message is classified and served by a fast instant model or escalated to a thinking model, and auto-escalated messages have not even counted against the weekly quota for thinking. Getting there was rough. When GPT-5 launched with routing in 2025, misrouted requests made the product feel weaker than its parts, and user backlash pushed OpenAI to restore manual model pickers alongside Auto. Routing quality is product quality.
Other assistants ship the same idea as a fast-versus-thinking toggle or an effort setting, and coding tools quietly route by surface: autocomplete comes from a small low-latency model while the chat panel uses a large one.
Gateways turn routing into a product of its own. OpenRouter exposes hundreds of models behind one API and offers an auto option that picks a model per prompt, powered by the commercial router Not Diamond and billed at the chosen model's normal rate. Amazon Bedrock sells prompt routing between models of the same family, reporting cost cuts of up to about 30 percent in its tests. Most gateways also add the reliability flavor of routing: if a provider errors or times out, the request fails over to a backup.
How does a router decide, and what can go wrong?
Routers read cheap signals: how long the prompt is, what task it looks like (translate, summarize, debug, plan), whether tools or images are involved, how much conversation history rides along, and sometimes who is asking, since free tiers often route lower than paid ones. Learned routers add the strongest signal of all, the track record: on past traffic that looked like this, was the small model good enough?
The failure modes are predictable. The worst is the misrouted hard question: a request that reads as simple, gets the small model, and comes back as a confident wrong answer nobody flags. Second is inconsistency: different models have different voices and habits, so a routed product can feel like a different assistant from one message to the next. Third is the eval blind spot: if you evaluate models one at a time but production serves a mix, your dashboards describe a system no user actually experiences.
The defenses are unglamorous. Log which model served every request. Keep an escalation path the user can trigger, like a retry that forces the big model. And run your evals against the routed mix, not against the best model in isolation.
Should your team build a router or buy one?
Buy the plumbing first. A gateway that gives you one API over many models, per-request model choice, failover, and cost tracking removes most of the boring work. Whether to also buy the decision, letting a vendor's auto mode pick models for you, is a separate call: the vendor's definition of good enough was tuned on general traffic and its own cost structure, not on yours.
Build the decision when three things are true. Your traffic shows a clear easy-hard split. Your bill is large enough that a 40 percent cut pays for the engineering: routing a $50 monthly spend is a hobby, routing a $50,000 one is a job. And you own an eval set, because a router without evals is a cost cut you cannot bound.
Either way, start with rules over logged traffic and measure how often they misfire before training anything. A page of rules usually captures a large share of the win, and it builds the logging and eval habits a learned router needs anyway.
What people get wrong
- Always use the most capable model. It is slow and expensive for the many requests that do not need it.
- Routing hurts quality. With a check or cascade you keep the quality bar and only escalate when needed.
- Cheaper models are useless. They clear a large share of real traffic at a fraction of the cost.
- Routing is only about cost. It is also latency and resilience: small models answer faster, and a router can fail over to another model when a provider has an outage.
Where you see it in real products
- Assistants route simple lookups to small models and reasoning to large ones.
- Cost-sensitive apps cascade from cheap to expensive only when needed.
- Platforms expose a single endpoint that picks the model behind the scenes.
- Coding assistants serve autocomplete from a small fast model and chat from a big one.
Common questions
- Why would a product use more than one model?
- Because most requests are easy and a few are hard, while a single strong model charges the hard-request price for everything. Routing sends the easy ones to a cheap fast model and reserves the expensive one, which can cut cost sharply at similar quality.
- How does the router decide?
- Usually a small classifier trained on past traffic, sometimes simple rules on length and task type, sometimes the strong model itself judging difficulty. Whatever it is, the routing decision has to be far cheaper than the call it saves to be worth making.
- What is the difference between model routing and a cascade?
- A router decides once, before any model runs: it classifies the request and commits to a model. A cascade decides after: it runs the cheap model, checks the answer, and escalates only if the check fails. Routing is faster because nothing is retried. Cascading is safer because the check catches a wrong guess. Production systems often route first and keep a cascade as the safety net.
- How much money does routing actually save?
- It depends on your traffic mix, which is why published numbers vary so much. Reported results range from about 30 percent to about 85 percent cost reduction at similar quality, with research systems like RouteLLM at the high end on their benchmarks. The honest way to estimate yours: sample real traffic, answer it with the cheap model, and count how often that answer would have been good enough.
- Is an LLM gateway the same thing as a router?
- They overlap but differ. A gateway is plumbing: one API in front of many models, with keys, logging, cost tracking, and failover. A router is a decision policy: which model should serve this request. Many gateways ship a router as a feature, like OpenRouter's auto option, but you can use a gateway with one fixed model, and you can build a router without any gateway.
- Can the model decide for itself which model to use?
- That is what auto modes are. As of mid-2026, ChatGPT's default mode routes each message between instant and thinking variants, and API providers expose similar knobs as effort or reasoning settings. Self-routing is convenient, but the vendor tunes it for average traffic and its own costs, so products with strict quality needs still check on their own evals whether auto matches a pinned model.
- Do I need a router for a small app?
- Probably not at first. If your monthly model bill is small, one good model and a plain prompt beat any routing scheme, and the extra moving part just makes debugging harder. Revisit when the bill is real money, when latency on easy requests annoys users, or when one provider's outages hurt. Even then, start with two rules, not a trained router.
- Is that why the same chatbot feels smarter on some days?
- It can be. When a product routes automatically, two questions that look identical to you can be answered by different models. It is one more reason your own test set tells you more than a vendor benchmark.
Related explainers
More in Speed, cost and control
- What is the KV cache, and why does it matter for speed and cost?
- What is quantization, and how does it let big models run on small hardware?
- What does the temperature setting actually do to an AI model?
- Why are GPUs, and not CPUs, the hardware of the AI boom?
- What is speculative decoding and why does it make models faster?
- What is prompt caching and how much does it actually save?
One idea at a time, in your inbox
New lessons and explainers, written the way these pages are. Now and then, not daily, and never a sales sequence.
We email you a confirmation link first. Unsubscribe in one click, any time. Privacy.
Part of See How AI Works, a free interactive course, where you learn how modern AI works by operating it, not watching videos.