# What Is Model Routing?

Source: https://lowob.com/research/what-is-model-routing/
Publisher: lowob (https://lowob.com/)
Author: Chris Wells
Published: 2026-11-29
Function: Revenue
Research checked: 2026-11-28

> Summary: Model routing sends each AI request to the cheapest model that can handle it. How rule-based and learned routers work, a cost example, and the evals that keep quality honest.

<section id="answer">

**Model routing is sending each AI request to the cheapest model that can handle it well, instead of sending everything to one model.** A router, either rules you write or a small trained model, reads the request and picks. Done well, it cuts inference cost sharply. Done without evals, it hides quality drops behind a lower bill.

</section>

**IN SHORT:** Most AI traffic is easy, and frontier models are priced for the hard part. A router matches the request to the model. The savings are real but depend on your mix, so treat any vendor or paper figure as a hypothesis and measure on your own prompts.

## Key facts

| | |
| --- | --- |
| What it does | Picks a model per request based on difficulty, cost and rules |
| Two kinds | Rule-based (you write conditions) and learned (a model predicts which model will do well) |
| Research benchmark | RouteLLM (June 2024): costs cut by over 2x in some cases without losing quality |
| RouteLLM detail | 95% of GPT-4 quality at over 85% lower cost on MT Bench, versus GPT-4 alone |
| Microsoft Foundry model router | GA version 2025-11-18; 45 models in the pool as of November 18, 2026; Balanced, Quality and Cost modes |
| Amazon Bedrock Intelligent Prompt Routing | GA April 22, 2025; picks between two models in one family; optimized for English only |
| OpenRouter Auto Router | No additional fee; you pay the chosen model's rate |
| Price gap that makes it worth it | Claude Sonnet 5.5 is $2 / $10 per million input / output tokens; Haiku 5.5 is $0.10 / $0.50 (prompts up to 100,000 tokens) |

## How does model routing work?

The router sits in front of your models and makes one decision per request. It looks at the prompt, sometimes the conversation and the user, and chooses a model. Your app calls one endpoint and gets back an answer plus, usually, the name of the model that produced it.

Three managed versions show the range:

- **Microsoft Foundry model router** judges how demanding each prompt is. Simple prompts go to small, fast models; prompts that need deep reasoning or complex tool use go to frontier models. You pick a mode: Balanced (the default) considers models within a small quality range of the best, for example 1 to 2%, and picks the cheapest; Cost widens that band, for example 5 to 6%; Quality ignores cost.
- **Amazon Bedrock Intelligent Prompt Routing** predicts response quality for two models in the same family and sends the request to the better trade-off. You set a fallback model and a "response quality difference" threshold. In AWS's example, with Nova Lite as fallback and a 10% setting, the router uses Nova Pro only if it's predicted to be more than 10% better.
- **OpenRouter Auto Router** uses a fast decision model that rates the request, then weighs that against live prices, cache status and benchmark performance. It limits model switching within a session, because a new model has to rebuild the prompt cache, and keeps the session on the same provider.

> **If you already know this:** routers don't just pick models. OpenRouter's also picks a reasoning effort, and Microsoft's router drops unsupported parameters (such as `temperature` on reasoning models) unless you require them. Check what the router changes besides the model name.

## Rule-based vs learned routers: which should you use?

Start with rules. Move to a learned router when rules stop being enough.

| | Rule-based router | Learned router |
| --- | --- | --- |
| How it decides | Conditions you write: task type, prompt length, customer tier, tool use | A trained model predicts which model will answer well |
| Example | "Classification and extraction go to Haiku; anything with more than three tool calls goes to Sonnet" | RouteLLM's matrix factorization or BERT classifier; Microsoft's and AWS's managed routers |
| Strength | Predictable, auditable, free to run | Adapts to each prompt, catches hard cases rules miss |
| Weakness | Misses hard prompts hiding in an "easy" category | Harder to explain; trained on someone else's data |
| Best for | Apps with clear task types | Open-ended chat and mixed traffic |
| Overhead | Close to zero | A classifier call, or a routing fee |

RouteLLM tested four learned approaches: similarity-weighted ranking, matrix factorization, a BERT classifier and a causal LLM classifier, all trained on preference data from Chatbot Arena. The routers also generalized to a model pair they weren't trained on (Claude 3 Opus and Llama 3 8B) without retraining.

AWS is candid about the limits of a general router: it's optimized for English prompts, can't adjust to your app's own performance data, and may not route well for specialized use cases. That's the case for rules, or for training on your own data, in narrow domains.

## What does model routing save? A cost example

Routing saves money in proportion to how much of your traffic is easy and how wide the price gap is. Here's an illustrative example using Anthropic's list prices (checked November 28, 2026).

**Assumptions (illustrative):** 1,000,000 requests a month. Each request averages 2,000 input tokens and 500 output tokens.

| Scenario | How we counted it | Monthly cost |
| --- | --- | --- |
| Everything on Sonnet 5.5 | 2B input tokens × $2/M = $4,000; 0.5B output × $10/M = $5,000 | **$9,000** |
| 70% routed to Haiku 5.5, 30% Sonnet 5.5 | Haiku: 1.4B × $0.10/M + 0.35B × $0.50/M = $315. Sonnet: 0.6B × $2/M + 0.15B × $10/M = $2,700 | **$3,015** |
| Add a Haiku classifier call per request | 2B input × $0.10/M + 10M output × $0.50/M = $205 | **$3,220** |
| Add retries: 5% of routed requests fail and rerun on Sonnet | 35,000 × $0.009 per Sonnet request = $315 | **$3,535** |

Per request, Sonnet costs about $0.009 and Haiku about $0.00045 in this example, a 20x gap. Even after the router's own cost and retries, the bill falls about 61%. But look at the last row: the retry line only exists if you detect the failures. If you don't, the bill looks even better and the product gets worse. That's the trap.

For what drives the per-token bill in the first place, see [what AI inference cost is](https://lowob.com/research/what-is-ai-inference-cost/).

## How do you keep routing from hiding quality drops?

Treat the router as a model you ship, with its own evals. Here's the checklist we'd use:

- [ ] **A fixed test set** of 200 to 500 real prompts, labeled by task type, with expected answers or a scoring rubric.
- [ ] **Three-way comparison:** router vs always-strong vs always-cheap on the same set. Microsoft recommends comparing its router with your current model on your own prompts before moving production traffic.
- [ ] **Score by segment,** not just overall. A 2% average drop can be a 20% drop on your most valuable task.
- [ ] **Log the chosen model** on every response (all three managed routers return it) and track the routing mix weekly.
- [ ] **Watch downstream signals:** retries, escalations to a human, thumbs-down, resolution rate.
- [ ] **Re-run evals** whenever the router, a model version or your prompts change. For example, Microsoft's preview router versions (2025-05-19 and 2025-08-07) retire January 27, 2027.
- [ ] **Set a quality floor** in writing: the minimum score at which the router stays on.

If you're new to evals, start with [what AI evals are](https://lowob.com/research/what-are-ai-evals/) and an [LLM-as-a-judge](https://lowob.com/research/llm-as-a-judge-explained/) setup for scoring at volume.

## Build, buy, or use your gateway?

| Option | Good fit | Watch for |
| --- | --- | --- |
| **Rules in your own code** | Clear task types, one or two providers | Rules drifting out of date |
| **Open source (RouteLLM)** | Teams that want a learned router they control | You own training data and maintenance |
| **Cloud router (Microsoft, AWS)** | You already run on that cloud | Microsoft's routing fee per million input tokens; AWS limits you to two models in one family |
| **Gateway router (OpenRouter Auto Router)** | Many providers through one API | Less control over the decision model |

Microsoft's router has a practical catch: the effective context window is the smallest in the model pool, so long-context requests only succeed if routed to a model that supports them. Narrow the pool for long documents. If you're choosing a gateway, compare them in our [best LLM gateways](https://lowob.com/research/best-llm-gateways/) guide.

Who this isn't for: if you spend a few hundred dollars a month on inference, routing is engineering time you won't earn back. Use one good model and come back when the bill matters.

## What we'd do

1. Export a week of production prompts and tag each by task type.
2. Price that week on your current model and on the cheapest model you'd trust, using list prices.
3. If the gap is under 3x or easy traffic is under half, stop; routing won't pay.
4. Otherwise, write three to five routing rules and build a 200-prompt eval set.
5. Run router vs always-strong on the eval set and agree a quality floor.
6. Ship to 10% of traffic, log the chosen model, and compare cost and quality for two weeks.
7. Only then try a learned or managed router, and judge it against your rules, not against the strong model alone.

## Common questions

**What is model routing?**
Sending each AI request to whichever model can handle it at the lowest cost, instead of sending everything to one model. Simple requests go to a small, cheap model and hard ones go to a frontier model.

**What is an LLM router?**
The component that makes the routing decision. It can be a set of rules you write, a small trained classifier, or a managed service such as Microsoft Foundry's model router, Amazon Bedrock Intelligent Prompt Routing or OpenRouter's Auto Router.

**How much can model routing save?**
It depends on your traffic mix. The RouteLLM paper reports costs cut by more than 2x in some cases at the same quality. AWS and Microsoft don't publish a savings percentage and tell you to measure on your own prompts.

**What's the difference between rule-based and learned routing?**
Rule-based routers use conditions you write, such as task type, prompt length or customer tier. Learned routers use a model trained to predict which model will answer well. Rules are predictable and easy to audit; learned routers adapt to the prompt but are harder to explain.

**Does model routing hurt quality?**
It can, quietly. A router that sends too much to the cheap model saves money while answers get worse, and nobody notices without evals. Run a fixed test set through the router and the strong model and compare scores every time you change either.

**Is an LLM gateway the same as a router?**
No. A gateway is the proxy that sits between your app and model providers, handling keys, logging, retries and limits. Routing is one job a gateway can do, but you can route without a gateway and run a gateway without routing.

**Do managed routers charge extra?**
Some do. Microsoft charges a routing fee per million input tokens on top of the chosen model's price. OpenRouter says its Auto Router adds no fee; you pay the selected model's rate.

**When is model routing not worth it?**
When your inference bill is a few hundred dollars a month, when the price gap between your strong and cheap model is under about 3x, or when less than half your traffic is easy. In those cases the engineering and eval work costs more than routing saves.

## Next move

Price last week's traffic on two models this week. If the gap is big, build the eval set before the router. Start with [what AI evals are](https://lowob.com/research/what-are-ai-evals/), then pick a gateway from [best LLM gateways](https://lowob.com/research/best-llm-gateways/).

## Changelog

- 2026-11-28: Edited and fact-checked before launch: rechecked Claude list prices, RouteLLM results, Microsoft Foundry, Bedrock and OpenRouter router behavior against their docs (all confirmed) and re-ran the cost example math (correct); dated the Microsoft model count; named the retiring preview versions; made the OpenRouter session behavior more precise; added a common question on when routing isn't worth it.

## Sources

- [RouteLLM: Learning to Route LLMs with Preference Data (arXiv 2406.18665)](https://arxiv.org/abs/2406.18665)
- [LMSYS: RouteLLM, an open-source framework for cost-effective LLM routing (July 1, 2024)](https://lmsys.org/blog/2024-07-01-routellm/)
- [AWS Docs: Understanding intelligent prompt routing in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-routing.html)
- [AWS: Bedrock Intelligent Prompt Routing generally available (April 22, 2025)](https://aws.amazon.com/about-aws/whats-new/2025/04/amazon-bedrock-intelligent-prompt-routing-generally-available)
- [Microsoft Learn: Model router in Microsoft Foundry](https://learn.microsoft.com/azure/foundry/openai/concepts/model-router)
- [OpenRouter Docs: Auto Router](https://openrouter.ai/docs/guides/routing/routers/auto-router)
- [Anthropic: Claude API pricing](https://platform.claude.com/docs/en/about-claude/pricing)

*Last checked November 28, 2026. Written by Chris Wells, **lowob**.*
