# Model routing

> Model routing is the practice of sending each AI request to the most suitable model, for example a cheap, fast model for simple tasks and a more capable one for hard cases, based on rules or a classifier.

Also called: LLM routing, model router, model cascade, AI gateway, fallback models. Category: Models and training. Source: https://aibuildindex.com/glossary/model-routing

## In the index

- AI API integration: median $2,500, middle half $500 to $6,400, 1,993 priced briefs (https://aibuildindex.com/cost/ai-api-integration)
- AI model integration: median $4,000, middle half $700 to $12,180, 1,858 priced briefs (https://aibuildindex.com/skills/ai-model-integration)

Using the most capable model for every request is simple but wasteful: many tasks in a real workload are easy, and a cheaper, faster model would handle them just as well. Model routing sends each request to the model that fits it. It also gives a build resilience, since a router can switch to another provider when one is slow or unavailable. For a buyer, routing is one of the most effective ways to control running costs once an AI feature has real volume.

## How it works

A router sits between the application and the models. For each request it decides where to send it, using one or more approaches:

- **Fixed rules.** Each type of task goes to a set model, for example classification to a [small language model](https://aibuildindex.com/glossary/small-language-model) and drafting to a larger one.
- **A classifier.** A quick model or simple rules judge the difficulty of each request and pick a model accordingly.
- **Cascading.** Try a cheap model first; if its answer fails a check or its confidence is low, escalate to a stronger model.
- **Fallbacks.** If a provider returns errors or hits a [rate limit](https://aibuildindex.com/glossary/rate-limit), retry with an alternative.

Routing tools and AI gateways, offered by several vendors and open-source projects, make it easier to call many models through one interface, track usage and switch providers without rewriting the application.

A support build, for instance, might use a small model to answer routine questions about opening hours and delivery times, send complaints and refund requests to a larger model, and pass unusually complex cases to a [reasoning model](https://aibuildindex.com/glossary/reasoning-model) or a person.

## What it means for cost

Routing adds some build effort: defining routes, testing each model on its share of the work, and keeping quality consistent when different models answer different requests. In return it can lower running costs substantially at volume and reduce [latency](https://aibuildindex.com/glossary/latency) for simple requests. It also reduces dependence on one provider.

For low-volume tools the extra complexity rarely pays off; a single well-chosen model is fine. Ask a builder whether routing is justified at your expected volume, how quality is checked on each route, and how easy it is to change models later.

## Common questions

### Does model routing reduce answer quality?

It should not, if routes are tested. The aim is to use cheaper models only where they perform as well as expensive ones on your tasks. Monitoring after launch catches cases where a route performs worse than expected.

### Is model routing the same as using multiple AI providers?

Not necessarily. Routing can choose between models from one provider or several. Using several providers adds resilience but also more contracts, data agreements and testing.

### When should a build introduce routing?

Usually after launch, once real traffic shows which requests are simple and how much they cost. Designing the build so the model can be swapped easily makes adding routing later straightforward.

## Related terms

- [Small language model](https://aibuildindex.com/glossary/small-language-model): A small language model is a compact language model with far fewer parameters than leading large models, built to be cheaper and faster to run, often on modest hardware or devices, while handling focused tasks well.
- [Reasoning model](https://aibuildindex.com/glossary/reasoning-model): A reasoning model is a language model trained to work through a problem in intermediate steps before giving its final answer, which improves results on complex tasks such as analysis, maths, planning and coding at the cost of speed and usage.
- [Token pricing](https://aibuildindex.com/glossary/token-pricing): Token pricing is the usage-based billing model most AI model providers use, charging per number of tokens sent to and generated by the model, usually with separate rates for input and output and different rates for each model.
- [Latency](https://aibuildindex.com/glossary/latency): Latency is the delay between sending a request to an AI system and receiving its response, which determines whether a feature feels instant, acceptable or too slow for its users.
- [Large language model (LLM)](https://aibuildindex.com/glossary/large-language-model): A large language model is an AI model trained on very large amounts of text to predict the next word, which lets it write, summarise, translate, classify and answer questions in natural language.
