# What Is Model Routing (Cascades)?

> How model routers and cascades send each AI request to the right model, what they save, and where they go wrong, for your AI interview.

**In short:** Model routing sends each request to the model that suits it: easy work to a small, cheap model and hard work to a large one. A cascade is one version, where the small model answers first and only weak answers move up to the large model.

AI and LLM interview question Q322, Inference, performance and cost. Intermediate, very common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-is-model-routing

## Say it in 30 seconds

Model routing means sending each request to the model that suits it. Easy work goes to a small, cheap model, and hard work goes to a large one. A cascade is one version: the small model answers first, and a check sends only weak answers on to the large model. The catch is that a router can guess wrong, and a cascade pays for two calls when it escalates. So I measure quality and cost on real prompts before real customers see it.

## Say it in 2 minutes

A model router reads each request and picks the model that should answer it. Easy requests, like a password reset, go to a small and cheap model. Hard requests, like a disputed card charge, go to a large and expensive one. The customer sees one answer, and the bill drops because most requests never touch the big model.

A cascade is a close cousin. It always tries the small model first, then checks the answer. If the check says the answer is reliable, it is sent. If not, the large model answers. The FrugalGPT paper from 2023 described this approach, and on its tests it could match the best single model at a much lower cost.

The catch is in the trade-offs. A router can guess wrong on a request it has not seen, and a wrong guess gives a weak answer that nobody notices. A cascade pays for two calls whenever it escalates, and the customer waits for both. Before going live, compare the setup with your current model on your own prompts, for quality, cost and speed.

In short: route by how hard the request is, measure the misses, and keep the large model as the safe default where a wrong answer costs real money.

## What is model routing, in plain words?

A model router is a small decision step that sits in front of your AI models. It reads each request and sends it to the model that should answer it. Easy work goes to a small, cheap model. Hard work goes to a large, costly one. The user still gets one answer.

Think of a hospital triage nurse. A sore throat goes to the walk-in clinic, and chest pain goes straight to the emergency doctor. The nurse decides in seconds from what the patient says. A router does the same job for AI requests.

Here is a real case. A bank's support assistant gets 100,000 messages a month. Branch hours and password resets can go to a small model. A disputed card charge, with money and legal risk, should go to a large one. Sending every message to the large model pays for power the job does not need.

- **Router:** The step that picks which model answers a request.
- **Cascade:** A setup that tries the small model first and escalates only the weak answers.
- **Escalate:** To pass a request on to a bigger, more capable model.
- **Quality check:** A test that decides whether an answer is good enough to send.

## What is the difference between a router and a cascade?

Both send work to more than one model, so people mix them up. The difference is when the choice is made.

- **Router: Chooses before any answer.** It picks one model from the request alone, and that model answers once.
- **Cascade: Tries the small model first.** The small model answers, a check reads the answer, and only a weak one moves on to the large model.
- **Fallback: Switches after an error.** A backup model takes over only when the first one fails, such as a timeout, or a cap on how many requests you may send per minute.

Microsoft's model router is the first kind. Its docs say it judges how demanding each request is and sends it to the model best suited to answer it. Simple prompts go to small, fast models, and prompts that need deep reasoning go to the biggest, most capable models.

Anthropic's December 2024 guide to building agents describes routing as a sorting step: it classifies an input and sends it to a specialised follow-up task. AWS's Bedrock prompt routing (Bedrock is AWS's AI model service) works within one model family, and it predicts how good each model would be for each request before it routes.

*Diagram, A router picks one model up front: One choice happens up front. The router reads the request, then sends it to a small or a large model, and only that model answers. Nothing is checked afterwards, so a wrong pick goes straight to the customer.*
1. The request arrives at the router.
2. Easy requests go to the small model.
3. Hard requests go to the large model.
4. The small model's answer goes out.
5. The large model's answer goes out too.

## How does a cascade work, and what does it cost?

A cascade is a chain. The cheap model goes first, and a check decides whether its answer is kept. Think of a junior claims clerk who drafts a reply and a senior clerk who reads it before it goes out. Only the drafts that fail move up to the senior clerk.

> "LLM cascade sends a query to a list of LLM APIs sequentially." (FrugalGPT paper (2023))

The 2023 FrugalGPT paper describes a cascade that learns which models to try for different queries. On its tests, it could match the best single model with up to 98% cost reduction. The paper also says the cost falls when the first models are cheap and mostly reliable.

*Diagram, A cascade tries the small model first: The small model always answers first. A check passes good answers straight through. Only the weak ones reach the large model, and those tickets pay for both calls.*
1. The request goes to the small model first.
2. Its answer is passed to the check.
3. An answer that passes is sent as it is.
4. A weak answer is escalated to the large model.

> **Tip:** The catch is the escalations. On a weak answer you pay for two model calls, and the customer waits for both. The saving shrinks as more answers escalate. With the made-up prices above, it is gone only when about 93% escalate.

## Does routing really save money in a worked example?

Here is a made-up support desk with 100,000 tickets a month. The small model costs 1 cent a ticket, and the large model costs 15 cents. The prices are invented to keep the sums simple.

```python
# A made-up support desk: 100,000 tickets a month.
# Made-up prices: a small model costs 1 cent a ticket, a large model 15 cents.
TICKETS = 100_000
SMALL = 1
LARGE = 15

def dollars(cents):
    return f"${cents / 100:,.2f}"

# Option 1: every ticket goes to the large model.
all_large = TICKETS * LARGE

# Option 2, router: it picks first. 80% of tickets are easy, 20% are hard.
easy = TICKETS * 80 // 100
hard = TICKETS - easy
router = easy * SMALL + hard * LARGE

# Option 3, cascade: the small model answers first.
# The check rejects 30% of its answers, so those tickets also go to the large model.
escalated = TICKETS * 30 // 100
cascade = TICKETS * SMALL + escalated * LARGE

print("All large:", dollars(all_large), "a month")
print("Router:", dollars(router), "a month")
print("Cascade:", dollars(cascade), "a month")
print("Router saves", dollars(all_large - router), "a month")
print("Cascade pays for both models on", escalated, "tickets")
```

Output:

```text
All large: $15,000.00 a month
Router: $3,800.00 a month
Cascade: $5,500.00 a month
Router saves $11,200.00 a month
Cascade pays for both models on 30000 tickets
```

The router cuts the bill from $15,000 to $3,800, because 80% of tickets never touch the large model. The cascade lands at $5,500. It still saves money, but it costs more than the router for two reasons: every ticket pays for the small model's call, and 30% of tickets also pay for the large one, more than the router's 20%.

Here is the break-even point. With the made-up 15 to 1 price gap, a cascade costs as much as the large model alone only when about 93% of tickets escalate. So the bill rarely decides the design. A wrong answer that nobody measured does more damage.

Published tests show real but partial gains. Hybrid LLM, a 2024 paper, routes each query by its predicted difficulty and reported up to 40% fewer calls to the large model with no drop in response quality. RouteLLM, also from 2024, reported costs cut by over 2 times in certain cases, without compromising the quality of responses. Treat paper numbers as a starting point, since your own prompts decide the result.

## What goes wrong with routing?

- **A hard question gets a weak answer:** If the router sends it to the small model, the answer looks fine but is wrong, and nothing alerts you.
- **The router sees only the request:** It guesses difficulty from the text, so a short, dangerous question can look easy.
- **A cascade pays twice:** A rejected small-model answer is still paid for, and the customer waits for the second call.
- **Savings hide quality loss:** The bill falls on the dashboard, but a drop in quality can stay hidden until customers complain.

> "Treat your first configuration as a starting point. Before you move production traffic, compare model router with your current model on your own prompts for quality, cost, and latency." (Microsoft, model router docs)

The fix is measurement. Log which model answered each request. Microsoft's router, for example, names the model that answered in each response, so you can check it against your own quality results.

> **Tip:** Asked how you would start? Say: a small model for the easy group, a check on every answer that goes out, and a weekly sample of hard tickets read by a person.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: pick a model per request, based on how hard it is.
- [ ] The difference between a router, a cascade and a fallback.
- [ ] The saving, with the numbers from a worked example.
- [ ] The risk: a wrong pick gives a weak answer that nobody sees.
- [ ] The cascade's cost: two calls on every escalated request.
- [ ] Measuring quality and cost on your own prompts before real traffic.

**Common traps**

- Trap: "Always send the request to the biggest model." Better: It is safe but expensive. Route the easy group to a small model, then measure the quality first.
- Trap: "A router is the same as a fallback." Better: A router picks before any answer exists. A fallback switches only after an error. Real systems can do both: Microsoft's router also fails over to the next-best model automatically. Name the one you mean.
- Trap: "A cascade always saves money." Better: Only while the escalation rate stays below the break-even point, which depends on the price gap. Many escalations mean two calls per request.

## Can you spot the risky setup?

**Spot the risky setup:** Which routing setup is most likely to fail quietly for a bank's support assistant?

A. Card disputes go to the large model, and a person reviews a sample of answers each week.
B. The small model answers first, and a check blocks weak answers before the customer sees them.
C. Every message goes to the small model, with no check on the answers and no logs of which model answered.
D. A backup model takes over only when the main model returns an error.

**Answer:** C. Nothing checks the answers and nothing records the choice, so a wrong or weak answer can reach customers for weeks unseen. The other three each add a check, a person's review, or a narrow backup, so a bad answer is caught or limited.

**Quick check:** A support bot runs a cascade. The small model's answer fails the check. What extra cost does that ticket add?

A. Nothing extra, since the large model reuses the small model's answer
B. A second model call, so the ticket pays for both calls
C. Only the check's fee, since the two models share one bill
D. A lower rate limit on the large model

**Answer:** B. The small model's answer is thrown away, so the ticket pays for the large model's call as well, and the customer waits for both.

## Can you answer these from memory?

**Flash cards**

- **What is model routing?** Picking one model per request, based on how hard the request is.
- **Router vs cascade?** Router: choose first. Cascade: small model first, large one only if the check fails.
- **What is the cascade's main cost?** A weak answer pays for two model calls, and the customer waits for both.
- **Router vs fallback?** A fallback switches only after an error. A router picks before any answer exists.
- **What does a router judge?** How demanding each request is, so the cheapest good-enough model answers.
- **How do you check a router?** Compare quality, cost and speed on your own prompts before real traffic.

## Likely follow-up questions

- Q323 Small vs large model: how do you choose? https://designervenkat.online/interview/ai/small-vs-large-model
- Q324 How do you estimate token cost for a feature? https://designervenkat.online/interview/ai/how-to-estimate-token-cost
- Q334 How do you cut cost on a cloud-hosted LLM workload? (full answer coming)
- Q340 How do reasoning tokens affect cost and latency? (full answer coming)
- Q343 Multi-provider fallback? (full answer coming)
