What is model routing?

Model routing is a decision layer sending each incoming request to the most suitable of several AI models by quality, cost and latency targets; for example, simple questions go to a small, cheap model and hard ones to a strong model.

Unlike model fallback, a resilience measure switching models when one fails, routing picks the best model for every request even without problems. In a cascade, a request goes to a cheap model first and moves to a stronger one if the answer falls short.

Topic
Infrastructure and runtime
Also known as
LLM routing, model router

How model routing works

  1. Candidate models are described by quality, cost, latency and data location.
  2. Rules, classifiers or a router trained on human preference data assess each request's difficulty and type.
  3. The request goes to the chosen model; in a cascade, answer quality is scored and escalated if needed.
  4. Decisions and outcomes are logged; quality and cost are tracked to update the router.

In more detail

Router overhead, cascade tail latency and KV cache locality

The router itself introduces latency and compute overhead; cascading multiplies worst-case Time to First Token (TTFT) because hard queries wait for a weak model and a verifier before reaching the strong model. Moreover, routing changes break prompt/KV-cache locality unless prefix-aware sticky routing is applied across model replicas.

Routing by reasoning effort

Routing is not limited to choosing between distinct models; it also selects reasoning effort or thinking budgets within reasoning-capable models. Simple lookups receive zero or low thinking tokens, while multi-step planning or code synthesis triggers extended reasoning.

Hard routing by data classification and failing closed

Beyond difficulty, enterprise routers enforce hard policy rules before quality optimisation: requests containing PII, confidential records or restricted topics are pinned to on-premise models regardless of predicted difficulty. Privacy and compliance gates should fail closed so classification uncertainty never leaks sensitive prompts externally.

Commonly confused terms

TermHow it differs
Load balancingLoad balancing distributes requests across identical replicas of the same model to spread compute load. Model routing dispatches requests across heterogeneous models of different sizes, capabilities or locations based on task difficulty and policy.
Routing inside mixture of expertsA Mixture-of-Experts (MoE) router operates inside a single neural network at token level to activate specific expert feed-forward layers. Model routing operates outside models at the application or gateway level to select among distinct deployed models.

Why model routing matters for on-premises AI

Sending every request to the strongest model adds needless cost and latency. A study of routers trained on preference data cut costs by over two times in some cases without hurting quality; a 2023 cascade approach matched the best single model with up to 98% lower cost. Risks remain: misrouted hard requests get weak answers, so quality must be measured regularly and sensitive data sent only to suitably located models.

ON-PREMISES EXAMPLE

An insurer's assistant routes simple questions such as policy status to a small in-house model and complex claim queries to a stronger one; requests with personal data stay in-house and weekly sampling tunes the router.

Common questions

How does model routing differ from model fallback?

Fallback activates only when a model fails. Routing picks the most suitable model for every request.

How much does model routing save?

It depends on the workload. Research shows marked cost cuts while keeping quality in some cases; measure with your own data.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.