Explainer

Model routing explained: how to mix cheap, mid and frontier models

Sending every request to a frontier model can cost 40 times more than it needs to. How routers, cascades and advisor patterns work, and what vendors actually offer.

A tiny glass bar beside a lit bar 40 times taller on a fuchsia gradient, titled 40 times more

In 20 seconds

  1. Within one vendor, the cheapest and most expensive current models differ 40-fold (Claude Haiku 5.5 vs Opus 5.5) to 100-fold (GPT-6 Luna vs GPT-6 Astra) in list price.
  2. Routing patterns include a classifier that picks a model up front, a cascade that escalates when a cheap answer fails, and a planner or advisor that brings in a strong model only where it matters.
  3. Vendor features are narrower than the name suggests. Anthropic's advisor tool is in beta, its 'fallbacks' only handle safety refusals, and OpenAI's GPT-6 guide describes no automatic model selection.
On this page

Most production AI traffic is easy: tagging a ticket, pulling a date out of an email, summarizing a page. A small amount is hard. Model routing means sending each request to the cheapest model that can handle it. In October 2026 it's one of the biggest cost levers left, because the gap between small models and frontier models within a single vendor is huge. On Anthropic's official pricing page, Claude Haiku 5.5 costs $0.10 per million input tokens and $0.50 per million output tokens (for prompts up to 100K tokens), while Claude Opus 5.5 costs $4 and $20. That's a 40x gap. On OpenAI's, GPT-6 Luna costs $0.10/$0.50 and GPT-6 Astra costs $10/$50, a 100x gap.

This explainer covers how routing works, the main patterns, what Anthropic, OpenAI and OpenRouter actually ship (checked against their docs on October 8, 2026), and what the savings look like on paper.

The terminology

  • Router: a component that decides, before the work starts, which model handles a request. It can be rules, a small classifier, or another LLM.
  • Cascade: try the cheap model first, check the result, and escalate to a stronger model if it isn't good enough.
  • Planner/executor: a strong model plans and a cheaper model carries out the steps. Some setups use the reverse: a cheap executor that consults a strong advisor.
  • Subagent: a separate agent instance, often on a smaller model, that handles a bounded subtask (search, summarize, explore) and returns a compact result to the main agent.
  • Fallback: retry on another model when the first one fails. "Fails" can mean an error, a rate limit or a refusal, depending on the system.

Pattern 1: a classifier router

A router looks at the request and picks a tier. It can be as simple as a rule ("all requests from the tagging endpoint go to Haiku") or a learned model that predicts difficulty.

The best-known research here is RouteLLM (Ong et al., arXiv 2406.18665, first submitted June 26, 2024). It trains routers on human preference data to choose between a stronger and a weaker LLM. The authors report that their routers cut costs by more than 2x in certain cases without compromising response quality, and that the routers kept working when the strong and weak models were swapped at test time. Those results are from 2024-era model pairs. The finding that carries over is that a cheap learned router can capture much of the gap. The exact ratio won't carry over.

Commercial example: OpenRouter's Auto Router. According to OpenRouter's docs, the openrouter/auto model uses "a lightweight classifier" to assign each prompt one of about 30 task types. It then ranks models by how much OpenRouter users spent on that task type over the previous seven days, applies your chosen cost_tier (low through max), and picks a primary model with fallbacks. OpenRouter says there's no extra fee for the router itself: you pay the selected model's rate. You can limit candidates with allowed_models (wildcards such as anthropic/*) or excluded_models, and the response's model field shows which model answered. Note what "powered by the market" means here: the ranking reflects what other customers pay for, which isn't necessarily what's best for your task.

Trade-offs: routers add a decision step (latency, plus a small cost) and can misroute. A misrouted hard request gets a confidently wrong cheap answer, and nothing in the system tells you.

Pattern 2: a cascade with escalation

A cascade sends everything to the cheap model first, then checks the output. The check might be a schema validation, unit tests, a confidence score, or a second model acting as a judge. Anything that fails goes up a tier.

Cascades are attractive when you can verify output mechanically: code that must compile, JSON that must validate, an extraction that must match a regex. They're risky when quality is subjective, because the check itself becomes the weak point. They also cost more than a perfect router, because escalated requests are paid for twice.

Pattern 3: planner/executor, advisors and subagents

The newest pattern is built into the agent tools themselves.

Anthropic's advisor tool (beta). Anthropic's docs describe it this way: "The advisor tool lets a faster, lower-cost executor model consult a higher-intelligence advisor model mid-generation for strategic guidance." The executor (for example, Sonnet) decides when to call the advisor (for example, Opus), and it all happens inside one /v1/messages request. Key details from the docs (re-checked October 9, 2026):

  • It needs the beta header advisor-tool-2026-03-01 and a tool of type advisor_20260301 with a required model.
  • The advisor "reads the full conversation". Its tokens are "billed at the advisor model's rates" and don't appear in the top-level usage totals. Check usage.iterations.
  • The advisor must be Claude Sonnet 4.6 or a more capable model, and at least as capable as the executor. Opus 5, Opus 5.5, Sonnet 5.5, Fable 5/5.1 and Mythos 5/5.1 executors pair only with advisors that return encrypted advice. An unsupported pair returns a 400 error, so check the compatibility table in the docs for your exact pair.
  • Newer advisors (Opus 5, Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable and Mythos models) return an encrypted advisor_redacted_result, so your code can't read the advice. Older advisors such as Opus 4.8 return plain text.
  • The tool definition's max_tokens (minimum 1,024) caps each advisor call. The request's own max_tokens doesn't.

Claude Code. Anthropic's coding agent has two built-in routing options. The opusplan model setting "uses opus during plan mode, then switches to sonnet for execution". Subagents take a model field (haiku, sonnet, opus, fable, a full model ID, or inherit). The docs suggest defining your own Explore subagent with model: haiku "to run exploration on a lower-cost model". Anthropic's Haiku 5.5 launch page recommends that kind of pairing: Haiku 5.5 as a subagent alongside Opus 5.5 or Sonnet 5.5. If you're building your own agent, our Claude Agent SDK guide shows where subagents fit.

Managed Agents. Anthropic's August 7, 2026 release notes added "advisors" to the multiagent roster in Claude Managed Agents.

What vendors don't offer (yet)

  • Anthropic's fallbacks parameter isn't a cost router. Its docs say "only a safety classifier decline triggers fallback". Rate limits, overloads and server errors come back as-is. It's in beta, works on the Claude API only, and Haiku 5.5 has no server-side fallback.
  • OpenAI's API has no automatic tier selection for GPT-6. OpenAI's "Using GPT-6" guide recommends Astra for "the most demanding" work, GPT-6.1 Sol for "balanced speed, cost, and intelligence" and Luna for high-volume tasks, but it describes no automatic selection between them. The only routing it mentions is the older gpt-5.6 alias, which points to gpt-5.6-sol. You build the router yourself.
  • Effort is routing inside a model. Both vendors let you dial reasoning up or down per request. On Anthropic, effort runs from low to max, and Opus 5.5 and Haiku 5.5 default to medium. On OpenAI, GPT-6 Luna accepts none but GPT-6.1 Sol doesn't. Dropping effort on a mid-tier model is sometimes a better move than dropping to a smaller model, because thinking tokens are billed as output. Our reasoning models explainer covers why.

The cost math (illustrative)

These examples use verified list prices. The traffic mix, request sizes and escalation rates are our assumptions, chosen to show the arithmetic. They aren't measurements.

Assume 1 million requests a month, each with 2,000 input tokens and 500 output tokens.

StrategyCalculationMonthly cost
Everything on Claude Opus 5.5 ($4/$20)1M × (2,000×$4 + 500×$20) ÷ 1M$18,000
Everything on Claude Sonnet 5.5 ($2/$10)1M × (2,000×$2 + 500×$10) ÷ 1M$9,000
Everything on Claude Haiku 5.5 ($0.10/$0.50)1M × (2,000×$0.10 + 500×$0.50) ÷ 1M$450
Router: 70% Haiku, 25% Sonnet, 5% Opus$315 + $2,250 + $900$3,465
Plus a Haiku 5.5 classifier on every request (2,000 in, 10 out)1M × (2,000×$0.10 + 10×$0.50) ÷ 1M+$205 → $3,670
Cascade: all start on Haiku; 30% re-run on Sonnet; 5% re-run on Opus$450 + $2,700 + $900$4,050
OpenAI equivalent router: 70% Luna, 25% GPT-6.1 Sol, 5% Astra$315 + $2,250 + $2,250$4,815

Under these assumptions, routing cuts an all-Opus bill by about 80% and an all-Sonnet bill by about 60%. The cascade costs about 10% more than the router because escalated requests are paid twice, but it doesn't depend on predicting difficulty in advance. The OpenAI mix costs more mainly because its top tier (Astra, $10/$50) is 2.5 times Opus 5.5's price. The real question is how much quality you lose when the router or check gets it wrong, and the table doesn't capture that.

Advisor example (illustrative): three Opus 5.5 advisor calls in a task with a 50K-token conversation, each producing 1,500 tokens, cost about 3 × (50,000 × $4 + 1,500 × $20) ÷ 1M = $0.69, before any caching. Because the advisor reads the full conversation each time, advisor costs grow with context length. Cap max_uses and keep contexts lean.

Two more traps. Haiku 5.5's price rises five-fold once a prompt passes 100K tokens, so a router that sends long documents to "the cheap model" may be less cheap than it looks. And Anthropic's newer models use a tokenizer that produces about 30% more tokens for the same text. Both are covered in why token pricing isn't the story.

How to start

  1. Log first. Record the input and output tokens and outcome for a week of traffic, and find which endpoints actually need a frontier model.
  2. Start with rules. Route by endpoint or task type before you train anything.
  3. Build an eval set of real requests labeled with acceptable answers, and test each tier against it. Our Claude lineup guide lists what each tier costs.
  4. Add verification where you can, and cascade only where checks are mechanical.
  5. Consider an open model as the cheap tier if your volume is high. We compare the economics in frontier APIs vs open models.
  6. Re-run your evals when models change. Router decisions go stale with every release, and Anthropic has released nine Claude models, including two access-restricted Mythos models, on seven dates since June 9, 2026.

What's confirmed and what isn't

  • Confirmed from docs: advisor tool behavior and billing, fallbacks scope, Claude Code opusplan and the subagent model field, OpenRouter Auto Router mechanics and pricing, and all list prices.
  • Research result: RouteLLM's "over 2 times" cost reduction in certain cases, on 2024 model pairs.
  • Assumptions: every traffic mix and escalation rate in the cost table.

Read next

Comments (0)

More on Small models

View all
Hardware · ExplainerMac Studio M5 Ultra 512GB: reported at $22,299, with 1.2TB/s of bandwidth, and which of the biggest open models actually fitThe Mac Studio M5 Ultra with 512GB of unified memory went on sale on October 28, 2026, at $22,299 according to MacRumors and Cult of Mac. What 512GB and 1.2TB/s mean for running the biggest open models locally: Reflection Beam fits at 4-bit, DeepSeek V4.1 Flash barely does, and Kimi K3.1 needs several machines.·8 min read
Hardware · ExplainerM6 MacBook Pro for AI: what the Dual 16-core Neural Engine, 32GB memory ceiling and 170GB/s bandwidth mean for running local modelsIs the M6 MacBook Pro good for AI? Apple's October 27, 2026 M6 MacBook Pro and iMac top out at 32GB of unified memory and 170GB/s of bandwidth. What Apple claims for AI, what fits in that memory, and when the M5 Pro or M5 Max models still make more sense for local models.·8 min read
Products · ExplainerOffline AI assistant: how Survival LLM pairs a local model with a 930,000-article emergency library, and how people run AI with no internetAn offline AI assistant runs the model and its reference library on your own computer, so it keeps working when the internet doesn't. Survival LLM, which drew wide attention on October 27, 2026, bundles one of four models with about 930,000 Wikipedia articles and medical and repair references. What it needs, how Kiwix, Ollama, llama.cpp and LM Studio work offline, and where offline AI falls short.·9 min read
Open source · NewsLiquid AI LFM3: six 2B-class open-weight models for text, vision, audio, omni and decisions, free only below $10 million in revenueLiquid AI LFM3, released October 27, 2026, puts text, vision, audio, omni and two 'decision' models on one 1.7B backbone. What 'every modality' means, the sizes, the LFM Open License's $10 million revenue limit, and where the models run.·6 min read
The Week in AI · every Friday

New guides and explainers, every Friday.

The week’s biggest stories in AI and tech, what they mean, and what to read next.

Free. One email a week. Unsubscribe in one click.