Skip to content
Guide · Cost9 min readBy Auf Deutsch lesen

Model routing: pay frontier prices only for the work that needs them

Most developers point every request at the most expensive model they have, then wonder why the bill is brutal. Model routing fixes that. Plan with a frontier model, execute with a cheaper one, and reserve top-tier tokens for the work that actually needs them. With the price gap between model tiers now at 40x, done well it cuts an AI coding bill by 40 to 85 percent. Here is the real math at current prices, every practical way to do it, and how to see whether it is actually working.

Quick answer

Model routing means sending each task to the cheapest model that can handle it, instead of paying frontier prices for everything. As of October 2026 the split looks like this: plan with Claude Opus 5.5 ($4 per million input tokens, $20 output) or GPT-6 Astra, write the code with Claude Sonnet 5.5 or GPT-6.1 Sol ($2 and $10), and send edits, file navigation, and subagents to Claude Haiku 5.5 or GPT-6 Luna ($0.10 and $0.50). The top and bottom tiers are now 40x apart, the widest gap yet. Realistic savings are 40 to 70 percent from routing alone, and up to about 85 percent when you also stack prompt caching and lower reasoning effort. Tokens 4 Breakfast shows your spend per model so you know what to route and can prove the savings are real.

Step by step

The full walkthrough

Each step stands on its own. Skip to the one that matches where you are.

  1. What model routing actually is

    Model routing means matching each task to the cheapest model that can do it well, instead of paying frontier prices for every request. The cost gap has never been wider: as of October 2026, Claude Opus 5.5 costs $4 per million input tokens and $20 per million output, while Claude Haiku 5.5 costs $0.10 and $0.50. That is a 40x difference per token. Using a frontier model to rename a file or add a TODO comment is money set on fire. The default mistake is leaving every request pointed at the most capable model and never switching.

  2. The highest-leverage move: split planning from execution

    You do not need the same model quality for planning and for execution. Planning is where the real thinking happens: understanding the codebase, choosing an architecture, and writing a detailed spec. That deserves your best model. Execution, taking a good spec and writing the code from it, is work a much cheaper model does well. The workflow: plan and write the spec with a frontier model, hand the spec to a cheaper model to write the code, optionally have the frontier model review the pull request, then let the cheap model fix and ship. The expensive thinking happens once, up front.

  3. The real math at October 2026 prices

    Take a feature that spends 100k input and 20k output tokens on planning, then 150k input and 120k output on coding, since writing code produces far more output. All on Opus 5.5 that is about $3.80. Move only the coding to Sonnet 5.5 and it drops to about $2.30, a 39 percent cut. Move the coding to Haiku 5.5 instead and it falls to about $0.88, a 77 percent cut for the same plan. Two catches keep this honest. Haiku 5.5 bills 5x once a single prompt passes 100,000 tokens, which long agent sessions reach; at that rate the saving is still about 69 percent. And a cheap model only saves money if it gets the task right. Outside data agrees on the range: Matthew Berman's worked example lands at 68 percent, and the peer-reviewed RouteLLM framework reached 85 percent while keeping about 95 percent of frontier quality.

  4. Pick the right model for each job

    A simple routing table covers most work. Planning, architecture, and hard debugging go to Opus 5.5, with Claude Fable 5.1 or GPT-6 Astra ($10 and $50) kept for the very hardest problems. Implementation from a clear spec goes to Sonnet 5.5 or GPT-6.1 Sol ($2 and $10), or to Cursor's Composer at about $0.50 and $2.50 inside Cursor. Sonnet 5.5 deserves its spot: Anthropic's launch numbers put it at 70.6 percent on Terminal-Bench 4.0 against 66.4 percent for Opus 5.5, at half the price. File navigation, renames, simple edits, and subagents go to Haiku 5.5 or GPT-6 Luna. Keep a second frontier model in reserve for code review, where a fresh set of eyes catches what the author missed.

  5. Route the effort level, not just the model

    Model family is only half of it. Every current platform, Claude Code, Codex, Cursor, and ChatGPT, exposes a thinking or reasoning effort setting from low up to max, and those thinking tokens bill at output rates. Most tasks do not need max thinking, yet defaults have crept toward high. Drop simple work to low effort and reserve high or max for genuine multi-step reasoning. On Claude Code use /effort or cap the ceiling with MAX_THINKING_TOKENS; OpenAI models take a reasoning_effort from none to xhigh. Effort routing compounds with model routing rather than replacing it.

  6. How to route in practice, easiest first

    There are four ways, in rising order of automation. First, manual: plan and write the spec with your frontier model, then copy the spec into a cheaper model and tell it to build. Second, in-tool controls: Claude Code switches models with /model and dials effort; Cursor's Auto mode routes tasks to its cheap in-house Composer automatically. Third, cross-CLI delegation: Claude Code and Codex can call each other, so you can plan in one and delegate the code writing to the cheaper one with a small skill. Fourth, dedicated routers for API or team workloads: OpenRouter's Auto Router, powered by Not Diamond, plus Martian and the open-source RouteLLM, classify each prompt's difficulty and send it to the right tier automatically.

  7. Stack the other cost levers

    Routing is the biggest single lever, but it compounds with a few more. Prompt caching bills repeated input such as your system prompt and CLAUDE.md at a tenth of the input price on most Claude models, and a twentieth on Opus 5.5 and Sonnet 5.5, which can cut 30 to 50 percent of a typical bill on its own. Start a fresh session when you switch tasks so a bloated context window does not bill on every turn; on Haiku 5.5 that also keeps you under the 100,000-token price step. Keep output tight, since output tokens cost five times input on most current models. Use the Batch API for a flat 50 percent discount on non-urgent work. And keep subagents disciplined, around four for most exploration. Because each lever hits a different part of the bill, they stack.

  8. Measure it, or you are only guessing

    Routing without measurement is guessing. To route well you have to see which model is actually eating your budget, and to prove a change worked you have to watch the number move. That is the gap Tokens 4 Breakfast fills. It shows your real spend broken out by model and by project, live in the Mac menu bar, with 7- and 30-day totals and a Plan Value read that tells you whether your subscription is even worth it. Route your execution to a cheaper model, then watch the per-model spend drop over the next week. If it does not move, you routed the wrong thing, and now you can see it.

Pro tips

  • Route by the shape of the task, not how important it feels. A scary-sounding task that is really just boilerplate still belongs on a cheap model.
  • The single biggest win is offloading execution. The spec is the expensive thinking; writing the code from a good spec is cheap work Sonnet 5.5 or Haiku 5.5 does well.
  • Keep Haiku 5.5 sessions short. Past 100,000 prompt tokens it bills 5x, so fresh contexts and subagents get the full $0.10 rate.
  • After you change your routing, watch your per-model spend for a week. Real savings show up in the numbers; imagined ones do not.
FAQ

Common questions

Short, direct answers to the things people ask most about this.

What is model routing?

Model routing is the practice of sending each task to the cheapest AI model that can handle it, rather than paying frontier prices for every request. Easy work like edits, file navigation, and writing code from a clear spec goes to a cheap model; hard work like architecture and planning goes to a top model.

How much can model routing actually save?

Realistically 40 to 70 percent from routing alone, and up to about 85 percent when you also stack prompt caching and lower reasoning effort. At October 2026 prices, moving the coding half of a feature from Opus 5.5 to Haiku 5.5 cuts its cost by about 77 percent, or 39 percent if you move it to Sonnet 5.5. The peer-reviewed RouteLLM framework reached 85 percent savings at roughly 95 percent of frontier quality.

What is the cheapest AI model for coding?

As of October 2026, Claude Haiku 5.5 and GPT-6 Luna, both at $0.10 per million input tokens and $0.50 per million output. Haiku 5.5 bills 5x once a prompt passes 100,000 tokens, so it is cheapest for short tasks and subagents. For writing full features, Sonnet 5.5 or GPT-6.1 Sol at $2 and $10 are the better value.

Which model should I use for planning versus writing code?

Use your best model, such as Claude Opus 5.5 or GPT-6 Astra, for planning: understanding the codebase, choosing an architecture, and writing a detailed spec. Then hand that spec to Sonnet 5.5, GPT-6.1 Sol, or Haiku 5.5 to write the code. The expensive reasoning happens once during planning, and execution runs cheap.

Does Claude Code have automatic model routing?

Not automatically. Claude Code lets you switch models manually with /model and control the thinking budget with /effort and MAX_THINKING_TOKENS, and you can pin subagents to a cheaper model, but it does not route the main conversation between models on its own. Cursor's Auto mode does route automatically, often to its cheap in-house Composer model. For full automatic routing on the API, use OpenRouter's Auto Router, Martian, or RouteLLM.

How do I know model routing is actually saving me money?

Measure your spend per model before and after. Tokens 4 Breakfast shows your real cost broken out by model and project, live in the Mac menu bar, across the last 7 and 30 days. Route your execution to a cheaper model, then confirm the per-model spend actually drops over the following week instead of assuming it did.

Verified sources

Current primary documentation used for the time-sensitive details on this page.