AI Model Routing Explained: Sending Each Request to the Cheapest Capable Model
AI model routing sends each request to the cheapest capable model. How OpenRouter Auto Router works, options compared, and setup in five steps.
By Galactic News Editorial · Published 2026-11-21T16:47:17+00:00 · Updated 2026-11-21T16:47:17+00:00
AI Model Routing Explained: Sending Each Request to the Cheapest Capable Model
AI model routing cheapest capable model per request means a simple idea. Do not send every request to the most expensive model. Send each request to the cheapest model that can handle it well. Easy questions go to a small, fast model. Hard questions go to a large, capable model. A router makes that choice for every request.
Most apps waste money by using one model for everything. A greeting, a summary, and a hard coding task all get the same large model. Routing fixes that. It reads the request, judges its difficulty, and picks a model that fits. The savings come from the many easy requests, not from the few hard ones.
How AI Model Routing Works
A router sits between your app and the model providers. Your app sends a request to the router. The router picks a model and forwards the request. The response comes back with a model field that tells you which model actually answered.
OpenRouter Auto Router works this way. It is the general purpose model router on OpenRouter. You set your model to openrouter/auto and the router picks a model and a reasoning effort for each request. A fast decision model rates eleven aspects of the request in one call, such as what kind of task it is, how hard it is, whether speed matters, and whether it needs vision or knowledge of a codebase. The routing policy then weighs that rating against live prices, cache status, and benchmark performance.
The router also narrows the model pool first. Guardrails, zero data retention settings, provider restrictions, and your allowed and excluded model lists decide which models are considered. You can restrict the router with allowed_models, using wildcard patterns such as anthropic/* to match all Anthropic models. Exclusions win over the allow list, so an excluded model is never selected.
AI Model Routing Cheapest Capable Model Per Request in Practice
Cost tiers control the trade-off. OpenRouter offers cost_tier settings of low, medium, and high. Low prioritises lower estimated cost. Medium balances cost and capability. High favours more capable models when the expected benefit justifies the added cost. If you omit cost_tier, the router uses its default policy.
Session stickiness matters too. The Auto Router can pick a different model on every turn. Switching models costs extra while the new model rebuilds the prompt cache, so the router is restrained about it. It favours a change in reasoning effort when that is enough, and switches models only when the gain is worth it, for example when the task changes or when signals such as a repeated error point at the model.
There is no extra fee for the router itself on OpenRouter. You pay the standard rate of whichever model is selected. To cap what a request may cost, provider.max_price still applies. It filters the endpoints of whichever models the router resolves.
Three Ways to Route: Hosted, Self-Hosted, and Decision Models
Hosted routers are the easiest start. OpenRouter gives one key and one bill for hundreds of models with nothing to run. Vercel AI Gateway is one hosted API for hundreds of models across providers, with fallbacks, logs, and spend controls built in. Requesty is an AI gateway and router that sits in front of hundreds of models behind one OpenAI-compatible API. Its docs show a cost chain: start with a cheap model and only fall back to a premium one when needed.
Self-hosted gateways keep traffic and keys in your network. LiteLLM, Portkey, and similar gateways handle fallbacks, budgets, and logs with rules you write. You operate the gateway yourself. That suits teams with compliance needs or several teams sharing provider keys.
Decision-model routers are a layer on top of a gateway. Not Diamond predicts which model will give the best answer for each prompt, then lets your existing gateway make the call. RouteLLM is an open-source framework from LMSYS for serving and testing routers that send simple queries to a cheaper model and hard ones to a stronger model. Plano is an open-source proxy that routes each request to a model based on rules you write in plain words, with a prefer cheapest option that sorts a route's models by live price.
Comparison: AI Model Routing Options
| Option | Type | Best for | Key feature |
|---|---|---|---|
| OpenRouter Auto Router | Hosted router | Mixed traffic and general agents | Set model to openrouter/auto; cost_tier low, medium, or high; no routing fee |
| Vercel AI Gateway | Hosted gateway | Apps needing fallbacks and spend controls | One API for hundreds of models with logs and fallbacks |
| Requesty | Hosted gateway and router | Cost chains with fallback to premium models | OpenAI-compatible API with cheap-first routing |
| Not Diamond | Decision model | Picking the best model per prompt | Predicts the best answer per prompt; works with your gateway |
| RouteLLM | Open-source framework | Testing and serving your own router | Routes simple queries cheap and hard queries strong |
| Plano | Open-source proxy | Rule-based routing in plain words | Prefer cheapest sorts models by live price per route |
| LiteLLM / Portkey | Self-hosted gateway | Teams needing budgets, logs, and key control | Fallbacks, budgets, and logging in your network |
Setting Up Routing in Five Steps
- Log your current traffic for a week. Record the task type, the model used, and the cost per request.
- Sort requests into easy, medium, and hard. Easy means short, factual, or routine. Hard means reasoning, long context, or high stakes.
- Pick a router. Start with a hosted router such as OpenRouter Auto Router for the fastest test.
- Set guardrails. Use allowed_models to limit the pool and cost_tier low to keep costs close to your current baseline.
- Measure for two weeks. Track cost per request, error rate, and user complaints by task type. Adjust the cost tier or the allow list based on the data.
Watch for three failure modes. First, a router that switches models too often will rebuild prompt caches and raise costs. Second, a router with no logging will hide why a model was chosen. OpenRouter lets you opt in to router metadata with the X-OpenRouter-Metadata header to see the reason for each pick. Third, a router with no fallback will fail when a provider is down. Set fallback models for every route that matters.
Bottom Line
AI model routing pays off when most of your traffic is easy and a small share is hard. Start with OpenRouter Auto Router and cost_tier low. It needs one line change, charges no routing fee, and tells you which model answered each request. Add a self-hosted gateway when you need budgets, logs, and key control in your own network. Measure cost per request by task type before and after, and let that data set your cost tier.