Skip to content
Reviewed by Bipeen Sinha Nov 02, 2026

Home › Guides › LLM routing

Tech Explained · 2026

What Is LLM Routing in 2026? How Model Routers Work, Routing vs One Model, and Real Cost Savings

LLM routing sends each request to the cheapest model that can still answer it correctly, instead of sending everything to your most capable model. A rule, a classifier or an embedding score reads the prompt first, then picks a tier. Because small and frontier models differ by roughly 40x on input price, routing commonly cuts spend by 30 to 50 percent.

2 November 202611 min readBy the 360 Digital Transformation Editorial Team
Key takeaways
  • The price spread is the whole business case. Pricing summaries checked on 2 November 2026 list Claude Haiku 5.5 at $0.10 per million input tokens against Opus 5.5 at $4.00, so the same prompt can cost 40 times more depending only on which model sees it.
  • Most production routers are two layers, not one. A cheap rule prefilter catches the obvious cases, and a semantic score handles the ambiguous rest. Teams that build only the clever half end up paying the classifier on every trivial request.
  • The published research numbers are real but baseline-dependent. The Berkeley RouteLLM work reports up to 85 percent cost reduction on MT Bench against a GPT-4-only baseline, and about 48 percent against a random router. Those are different claims.
  • Routing is not only a cost lever. The vLLM Semantic Router paper reports accuracy on hard questions rising by 10.2 points while token use fell 48.5 percent, because small models stop being asked to attempt reasoning they cannot do.
  • Managed routers charge for the decision. Microsoft Foundry's model router fee is listed around $0.14 per million input tokens, and Amazon Bedrock Intelligent Prompt Routing around $1.00 per 1,000 routing requests, on top of whichever model answers.
  • Below roughly $500 a month of model spend, do not build one. Switch your default model down a tier, add prompt caching, and spend the week on evals instead.

Your support copilot works. It also costs more per month than the contractor who built it, and when you pull the logs you find that a third of the requests it sent to your most expensive model were variations on "what are your office hours". Nobody designed that. It happened because you picked one model during the prototype, shipped, and never went back. LLM routing is the fix, and it is one of the few cost fixes in applied AI that pays for itself in the first week.

What Is LLM Routing, and Why It Suddenly Matters in 2026

LLM routing is a decision layer that sits in front of two or more models and chooses which one handles each incoming request. Nothing about the user-facing behaviour changes. The caller still sends a prompt and gets a completion back. What changes is that a classification step, measured in single-digit milliseconds, decides whether this particular prompt needs a frontier model or whether a model costing a fortieth as much will produce an answer the user cannot distinguish.

The reason this became a standard pattern in 2026 rather than 2024 is arithmetic. Model families got wider at both ends. Pricing summaries checked on 2 November 2026 list Claude Haiku 5.5 at $0.10 per million input tokens and $0.50 output for prompts under 100,000 tokens, Sonnet 5.5 at $2.00 and $10.00, and Opus 5.5 at $4.00 and $20.00. Three members of one family, one API shape, a 40x gap on the input line.

The gap that makes routing worth building

Input price multiple between the smallest and largest model in one current family.

40x

Claude Haiku 5.5 is listed at $0.10 per million input tokens against $4.00 for Opus 5.5, so the routing decision moves the bill far more than any prompt rewrite will.

Based on published list prices as summarised in pricing references checked 2 November 2026. Rates and tiers change; confirm against the provider's own pricing page before you budget.

The honest threshold

Here is the opinion most vendor content will not give you. If your total model spend is under about $500 a month, do not build a router. The engineering, the eval harness and the on-call surface you add will cost more than you save. Drop your default model one tier, add prompt caching on your system preamble, and revisit routing when the bill has a comma in it. Above roughly $5,000 a month, routing is the highest-return week of work sitting in your backlog, and it is not close.

Routing design is one of the architecture decisions that separates someone who can call an API from someone who can own a production AI system, which is why it shows up in the solution-design domains of the Claude Certified Architect Foundations track rather than in beginner material.

How a Model Router Works, Step by Step

Every model router, managed or hand-built, does four things in order: score the prompt, pick a tier, call it, and record which tier it picked. The fourth step is the one teams skip and the one that decides whether the router survives contact with production, because without the route logged next to the outcome you cannot tell a saving from a quality regression.

A production routing path, start to finish

The escalation loop at the bottom is what lets you route aggressively without shipping bad answers.

How an LLM router sends each prompt to a model tier An incoming prompt reaches a router that applies a rule prefilter then a semantic score. The router sends simple prompts to a small model, moderate prompts to a mid-tier model, and hard or tool-heavy prompts to a frontier model. All three return an answer, and answers that fail a confidence check are retried on the frontier model. Incoming prompt Router 1. rule prefilter 2. semantic score Small model $0.10 per M input Mid model $2.00 per M input Frontier model $4.00 per M input Answer plus route logged send simple moderate hard or tool use about 74% 18% 8% fails confidence check: retry on frontier

Traffic percentages are the illustrative mix used in the worked example later on this page, not a measured industry average. Checked 2 November 2026.

The four ways routers actually decide

Rules come first because they are free. A regex on "reset my password", a check on whether the request carries tool definitions, a token-count threshold: these cost nothing and resolve a large share of real traffic. Then come classifiers, a small fine-tuned model that labels difficulty. Then semantic routing, where you embed the prompt and compare it against stored capability profiles. Last come learned preference routers, trained on human preference data to predict whether the cheap model's answer would have been accepted.

Latency matters more than people expect here, because the router tax is paid on every single request. In one AWS-sourced comparison, a semantic router added roughly 0.10 second to a request while a classifier router added about 0.53 second. Half a second on a streaming chat UI is survivable. On an agent that chains eight tool calls, you just added four seconds to every turn. Choosing between these layers, and instrumenting what each one costs you, is the kind of work that fills a week of the live AI Engineer course rather than a blog paragraph.

LLM Routing vs One Model: What You Gain and What You Give Up

The case against routing is not that it fails to save money. It is that it turns one dependency into three, and a single latency profile into a bimodal one. You now have to eval three models instead of one, and when quality drops on Tuesday your first question is no longer "did the model change" but "did the route distribution change".

That said, look at what a real traffic mix looks like once you measure it instead of guessing. Take a five-person platform team at a mid-size Bengaluru SaaS company running a support copilot over their help centre and ticket history. When they finally tagged a week of prompts by what the request actually required, the shape was lopsided, and this is the shape that nearly every support, search and internal-tools workload has.

What a support copilot's week of traffic actually needs

Three quarters of requests never needed a frontier model, which is why routing pays before it is clever.

Lookups, classification, short factual answers46%
Summaries, rewrites, tone changes28%
Multi-step reasoning over retrieved context18%
Tool-heavy agent turns and escalations8%

Illustrative scenario built for this guide, not a customer result. The point is the shape of the distribution, which you should measure on your own logs before setting thresholds. Checked 2 November 2026.

One caveat worth saying plainly, because the marketing around routers does not. Routing buys you nothing on a workload where every request is genuinely hard. If you are running code generation across a large repository, or multi-hour agent sessions, your distribution is not lopsided and a router will mostly add a hop, a failure mode and a vendor. Measure first. If more than 60 percent of your traffic needs your top model, stop reading and go optimise context instead.

Also read: What Are Small Language Models in 2026? covers the model tier that the cheap end of your router will spend most of its day calling.

Managed vs Open Source: 7 LLM Router Options Compared

Pick a row by how much control you need over the model pool, and by whether a per-decision fee or a service to operate is the cost you would rather carry.

Option How it decides Published routing cost Control over model pool Best fit
Microsoft Foundry model router Managed, with Balanced, Cost and Quality modes selectable in the portal Around $0.14 per million input tokens on Global Standard, listed near $0.154 on Data Zone Standard Fixed pool of Foundry-hosted models Teams already standardised on Azure who want a config change, not a service
Amazon Bedrock Intelligent Prompt Routing Managed prompt analysis, generally available since April 2025 Listed around $1.00 per 1,000 routing requests, separate from inference Within supported model families on Bedrock AWS-native stacks where the model pool is already Bedrock
OpenRouter Auto Router Managed, using NotDiamond's routing system, with the newer beta exposing a cost and quality dial Priced at the routed model's own rate, plus OpenRouter's platform fee on pay-as-you-go credit Curated multi-vendor pool, narrowable with wildcard patterns Fast experiments and cross-vendor fallback without contracts
vLLM Semantic Router Open source, embedding similarity against capability profiles, with reasoning-mode gating No licence fee, you pay the GPU and the platform team Total, including your own self-hosted weights Teams already running vLLM who want reasoning turned on selectively
RouteLLM Open source learned routers trained on preference data, from the Berkeley Sky Computing group No licence fee, plus the cost of training and refreshing the router Total, two-model strong and weak pairing by default Research-minded teams with labelled preference data of their own
Proxy layer with your own rules Your code: regex, token thresholds, tool-presence checks Effectively zero marginal cost Total The honest first version for almost everybody
No router, cheaper default model You pick one tier down and escalate by hand when users complain Zero Total Spend under roughly $500 a month, where a router cannot pay for itself

Two notes on that table. Managed router fees drift and vary by region, so the numbers above are the published figures found on 2 November 2026 and should be re-checked against each provider's pricing page before you commit a budget. And if you are building on Azure's AI stack, the Foundry service surface, including deployment modes and the model catalogue, is the same ground covered by AI-103 in the Generative AI Developer course; on the AWS side, Bedrock sits inside the architecture material of the AWS Solutions Architect and DevOps programme.

Semantic Router vs Classifier Router: Choosing the Decision Layer

This is where the two credible pieces of published evidence sit, and they point in slightly different directions, which is useful.

The semantic case: accuracy, not just cost

The vLLM Semantic Router is the clearest public result. The arXiv paper behind it, "When to Reason: Semantic Router for vLLM", evaluates on MMLU-Pro across 14 domains using Qwen3-30B on an NVIDIA L4 GPU, and reports accuracy rising from 48.33 percent to 58.57 percent, an improvement of 10.24 points. Red Hat's write-up of the same work reports latency down 47.1 percent and token usage down 48.5 percent alongside that accuracy gain.

Read that twice, because it inverts the usual framing. Routing made the system both cheaper and more accurate. The mechanism is that the router decides when to spend reasoning tokens at all, so easy questions stop being answered with expensive deliberation and hard questions stop being answered without it. If you want to understand why self-hosted inference makes this trade visible, our guide on vLLM and continuous batching covers the serving layer underneath.

The learned-router case: RouteLLM's numbers, read carefully

RouteLLM, from the Berkeley Sky Computing group and LMSYS, trains routers on human preference data to split traffic between a strong and a weak model. The project reports cost reductions of over 85 percent on MT Bench, 45 percent on MMLU and 35 percent on GSM8K while retaining about 95 percent of GPT-4's performance, measured against a GPT-4-only baseline. The LMSYS blog, measuring against a random router instead, reports its matrix factorisation router reaching 95 percent of GPT-4 performance using only 26 percent GPT-4 calls, roughly 48 percent cheaper than random routing.

Both numbers are honest. They answer different questions. The 85 percent figure tells you what routing saves against the naive choice of sending everything to the best model, which is probably what you are doing today. The 48 percent figure tells you what the trained router adds over coin-flipping, which is the fairer test of the routing logic itself. Quote the first one to your finance team and the second one to your engineers.

The eval harness that lets you make this call on your own traffic, rather than trusting either number, is the same discipline that the MLOps Engineer course builds around AI-300, and it is the single most reusable thing you will take from a routing project.

Live course

Build the routing, caching and eval layer that makes an AI system affordable in production

Live online·Sat–Sun, 8–11 PM IST·100+ hrs·Rs 24,999

The AI Engineer course is 100+ hours of live build time over 16 weeks on generative AI, RAG and AI agents, certified on both Microsoft Copilot Studio and Claude Code. You ship agents that plan, call tools and act, with the cost and evaluation layer wired in rather than bolted on.

Explore the course
AI Engineer Course: Generative AI, RAG & AI Agents (Microsoft + Claude Certified)

LLM Cost Optimization: A Worked Example on 1.2 Million Requests a Month

Back to the five-person team in Bengaluru. This is an illustrative scenario built for this guide, not a customer result, but every unit price in it is a published list price checked on 2 November 2026, so you can swap in your own volumes and the shape of the answer will hold.

Their support copilot handles 1.2 million requests a month. Average request carries 2,400 input tokens, mostly retrieved help-centre context, and returns 320 output tokens. That is 2,880 million input tokens and 384 million output tokens a month. Here is what four configurations cost.

Setup Model mix Estimated monthly cost Change vs baseline Quality risk
Baseline, no routing 100% Opus-class at $4.00 and $20.00 per million About $19,200 Baseline None, and you are paying for that
One tier down, no routing 100% Sonnet-class at $2.00 and $10.00 About $9,600 50% lower Low, but the hard 8 percent degrades silently
Routed, three tiers 74% Haiku-class, 18% Sonnet-class, 8% Opus-class, plus a $0.14 per million router fee About $4,020 79% lower Managed, if you log routes and escalate on low confidence
Routed plus prompt caching Same mix, with the stable system and retrieval preamble served from cache Roughly $2,850 About 85% lower Same as above, plus cache-write surcharge on cold entries

The jump that matters is not the last row. It is row two to row three: $9,600 to $4,020. Simply moving down a tier gets you half, and most teams stop there because it takes an afternoon. The second half needs a router, an eval set and the discipline to keep both current, and that is the half that turns a cost line into a defensible architecture.

One thing to be careful about in your own version of this table. The cheap-tier price often has a context cliff attached: Haiku 5.5's $0.10 and $0.50 rates apply to prompts under 100,000 tokens, with longer prompts listed at $0.50 and $2.50. If your retrieval step is generous with context, a prompt you routed to the cheap tier can cross that line and cost five times what your spreadsheet assumed. Cap retrieved context per route, not globally.

Also read: What Is Claude Haiku 5.5? goes through where the cheap tier holds up and where it quietly does not.

Where LLM Routing Breaks: 6 Failure Modes and the Fix for Each

What usually goes wrong is not the routing logic. It is that nobody owns the thresholds. Someone ships a router with a confidence cutoff at 0.7 during a quiet week, traffic shifts when marketing runs a campaign, and three weeks later the cheap tier is absorbing questions it was never meant to see. Nobody notices, because the dashboard that would have shown it tracks cost per request, which went down, and not resolution rate, which also went down.

1

Router collapse

Learned routers can degenerate toward always picking one model, which a February 2026 arXiv paper, "When Routing Collapses: On the Degenerate Convergence of LLM Routers", examines directly. Alert on route distribution, not just cost.

Monitor the mix
2

The router tax on trivial traffic

Running a classifier on "hi" costs you a model call to save a model call. Put free rules in front of every learned layer, and short-circuit on prompts under a token threshold.

Rules first
3

Latency you did not budget for

A classifier adding roughly half a second is fine on one turn and brutal across an eight-step agent loop. Measure the router's own p95 separately from the model's.

Two p95s
4

Cache invalidation on reroute

Prompt caches are per model. A request that reroutes from the cheap tier to the frontier tier pays a cold cache write, so aggressive reroutes can cost more than routing saved.

Check the write cost
5

Tool-calling behaviour drift

Small models are often weaker at strict schema adherence. If the same tool definitions run on three tiers, validate structured output per tier and route anything tool-heavy up by rule.

Validate per tier
6

Compliance by accident

A multi-vendor router can move a prompt to a provider or region your data agreement never covered. Pin the pool to approved endpoints before you touch the quality dial.

Pin the pool
Pitfalls that bite in week three
  • Cost per request is a vanity metric on its own. Pair it with resolution rate, escalation rate and eval score on a frozen golden set, and review all four together or none of them.
  • Do not route on prompt length alone. "Delete all inactive accounts in the EU region and confirm" is 11 words and should never see your cheap tier.
  • Freeze an eval set before you launch the router, not after. Without a pre-router baseline you cannot prove the saving was free, and someone will eventually ask.
  • Log the route id in the same row as the user feedback. If you cannot join route to outcome in one query, you do not have a router, you have a lottery.

How to Ship Your First LLM Router in 6 Steps

You can get a working first version into production inside a week. Not a good one. A measurable one, which is the thing that lets you build a good one.

  1. Tag a week of real prompts. Sample 500 logged requests and label each one as simple, moderate or hard by what it actually required. Do this by hand. It is four hours and it is the only step nobody can do for you.
  2. Freeze a golden set of 100 of them with accepted answers. This is your before-and-after. Score your current single-model setup against it and write the number down.
  3. Ship rules only. Token threshold, tool-presence check, a handful of intent regexes. Send the rest to your current model. Measure. Most teams find rules alone capture 30 to 40 percent of traffic.
  4. Add one cheap tier behind the rules and a confidence or validation check in front of the response. Any answer that fails the check retries on the higher tier, which is the escalation loop in the diagram above.
  5. Instrument route distribution as a first-class metric. One chart, share of traffic per tier, per day. Alert when any tier moves more than 10 points week on week.
  6. Only then consider a semantic or learned layer. Compare it against your rules baseline on the frozen set. If it does not beat rules by a margin you would defend in a review, keep the rules.

Steps two and five are where most of the value hides, and they are both evaluation problems rather than routing problems. If you are building towards a developer-level credential on the Claude stack, that evaluation and tool-design muscle is exactly what the CCDV-F prep course drills, and you can see how the whole exam ladder fits together on the certifications overview. If you would rather watch someone build a routed pipeline before committing, the free webinars are the cheapest look at how these sessions run.

What I Would Do in Your Position

If you are running an AI feature in production in India today and your model bill is between $1,000 and $20,000 a month, build the rules-plus-one-cheap-tier router this month and skip the clever layer entirely. You will capture most of the available saving with code you can read, no new vendor, and a failure mode you can explain to whoever is on call. Add the semantic layer in the quarter after that, once your route-distribution chart has given you three months of evidence about where the thresholds actually sit.

If you are learning rather than operating, routing is a better portfolio project than another chatbot, precisely because it forces you to build an eval set and read a cost dashboard. That is the work AI engineering interviews probe at and tutorials skip. The AI Engineer course is built around that live build loop, weekends from 8 to 11 PM IST, and a routed, cached, evaluated pipeline is the kind of thing you walk out of it having shipped rather than read about.

Frequently asked questions

What is LLM routing in simple terms?

LLM routing is a decision step in front of your models that reads each incoming prompt and sends it to the cheapest model capable of answering it. Easy requests go to a small model, hard or tool-heavy requests go to a frontier model, and anything that fails a confidence check is retried higher up. The caller sees one API and one response format.

Does LLM routing actually reduce cost, or is that vendor marketing?

It reduces cost when your traffic is uneven, which most support, search and internal-tools traffic is. Published research gives a range: the Berkeley RouteLLM project reports over 85 percent savings on MT Bench against a GPT-4-only baseline and about 48 percent against a random router. Industry write-ups commonly report 30 to 50 percent in production. On a workload where every request is genuinely hard, routing saves close to nothing.

How much does a managed model router cost?

The published figures found on 2 November 2026 put Microsoft Foundry's model router fee near $0.14 per million input tokens on Global Standard, with no output charge, and Amazon Bedrock Intelligent Prompt Routing near $1.00 per 1,000 routing requests. Both sit on top of the inference cost of whichever model answers. OpenRouter's Auto Router charges the routed model's own rate plus the platform fee. Re-check each provider's pricing page, since these rates move and vary by region.

What is the difference between a semantic router and a classifier router?

A classifier router runs a small trained model that labels prompt difficulty. A semantic router embeds the prompt and compares it against stored capability profiles using vector similarity. Semantic routing is usually faster: one AWS-sourced comparison put it at roughly 0.10 second of added latency against about 0.53 second for a classifier router. Classifiers can be easier to explain and audit when you need to defend a route.

Can LLM routing improve accuracy and not just cost?

Yes, when the router also decides whether to spend reasoning tokens. The arXiv paper behind the vLLM Semantic Router reports MMLU-Pro accuracy rising from 48.33 to 58.57 percent, a gain of 10.24 points, using Qwen3-30B on an NVIDIA L4 GPU, with latency down 47.1 percent and token usage down 48.5 percent in Red Hat's write-up of the same work.

Should I use prompt caching or a router first?

Caching first, almost always. It is a configuration change on a stable system preamble with no new failure modes, and on a RAG workload with a long fixed prefix it can take a large bite out of the input line by itself. Build the router once caching is in and you still want more, and remember that caches are per model, so rerouting a request pays a cold write.

How do I stop a router from quietly degrading answer quality?

Freeze a golden set of about 100 real prompts with accepted answers before the router ships, and score your single-model setup against it first. After launch, chart route distribution per tier per day and alert when any tier shifts more than 10 points week on week. Log the chosen route in the same row as user feedback so you can join route to outcome in one query.

Is building an LLM router a good portfolio project for an AI engineer job in India?

It is one of the better ones, because it forces you to produce an eval set, a cost dashboard and a defensible trade-off, which is what interviewers probe for and what most tutorial projects never touch. A routed pipeline with before-and-after numbers on a frozen eval set is a stronger artefact than another chat interface.

About this guide. 360 Digital Transformation is an Anthropic Partner and a Microsoft Authorized Training Partner. Other certification bodies, vendors and employers named here are not affiliated with us. Product features and pricing change often; figures cited were checked on 2 November 2026.

Learn it live with 360 Digital Transformation

Turn this guide into a skill employers can see

Live weekend cohortEMI available

AI Engineer Course: Generative AI, RAG & AI Agents (Microsoft + Claude Certified)

Rs. 27,999Rs. 37,239 Save 24%

Tools and platforms you work with

  • Python
  • Claude API
  • FAISS
  • ChromaDB
  • LangChain
  • LangGraph
  • CrewAI
  • AutoGen (AG2)
Add bonus modules
See the syllabus and batch dates

Other live courses on this career path