modelmile
All articles

Your Claude Code bill isn’t going down. Here’s why.

One model for everything: that is where the bill comes from. The same message costs exactly forty times as much on Opus as on Haiku, and nobody picks more power than they need.

#The problem isn’t the price of a token

A token doesn’t have one price: it has three. Haiku, Sonnet and Opus read and write the same thing, and that same message costs, depending on the model handling it:

ModelPrice of one message
Opus 5.5$0.0660
Sonnet 5.5$0.0330
Haiku 5.5$0.0017

Amounts per message, on the site’s usual assumptions — 12,000 tokens read, 900 written. The full arithmetic is at the bottom of this page.

When a session runs on a single model, it pays Opus to fix a typo. Over a working day, those messages are the most numerous, and they are the ones that make the bill.

#What modelmile does

modelmile installs into Claude Code and looks at every message as it leaves. It picks for that message the model and the effort that are enough — according to what you ask, without us saying how.

A typo does not become a systems design. A hard message keeps the model that knows how to handle it.

That is where the gap comes from: between a message on Opus and the same message on Haiku, there is $0.0644. The share of messages that don’t need Opus is the share of the bill that disappears.

#Install, in one command

bash
claude plugin install modelmile --marketplace https://www.modelmile.dev/marketplace.json

The plugin needs your modelmile key: it is what ties it to your account and to your message balance. You create the key from your account on this site, and give it to the plugin once. Without a key, it chooses nothing.

You can pause the plugin at any time and force a model by hand: it will not undo your decision.

#What it does not promise

The 65% figure is an observation made on our own sessions, not a calculation derived from yours. As an estimate, it only holds for a usage that resembles ours.

So the plugin guarantees no percentage in advance. It does one thing, and does it on every message: pick the model that is enough. The simulator on the home page takes your message volume and the observed price of a message — which is more honest than a number on a poster.

And nothing from your conversation leaves your machine: the analysis happens locally, and the only thing that goes out is your key, when the session starts.

The arithmetic

A message of 12,000 input tokens and 900 output tokens, without cache. Anthropic prices per million tokens. Cache writes are not counted.

Haiku 5.5   12,000 × 0.1 $ + 900 × 0.5 $   = $0.0017
Sonnet 5.5  12,000 × 2 $ + 900 × 10 $      = $0.0330
Opus 5.5    12,000 × 4 $ + 900 × 20 $      = $0.0660

Gap between the most and the least expensive message : $0.0644
(amounts per million tokens, divided by 10⁶ — an estimate, not an invoice)

An estimate, not an invoice.

Read next

RoutingYou May Be Paying for Opus on Tasks Sonnet Could HandleOpus by default, because it is the best: that is the most common choice, and the most expensive one. A comma does not need the same model as a migration. The right level of capability is decided task by task, not once and for all.2 min readCacheSwitching Models in Claude Code Can Break Your CacheThe prompt cache is tied to the model. Switching models mid-session throws it away, and the next turn rereads the whole context at full price. In a long session, the savings from the cheaper model can vanish right there.2 min readCostsIs Claude Code Consuming Too Much? 7 Settings Most Developers IgnoreThe model, the effort, task continuity, accumulated context, subagents, errors and visibility: seven levers decide consumption, and most developers touch none of them. Reviewing them once beats switching models at random.3 min readRoutingEffort Low, Medium, or High: The Claude Code Setting That Really Changes Your BillLow, medium or high effort does not change the price of a token: it changes how many tokens a task burns to get there. It is the most direct lever on the bill, and the one most often forgotten once the model is picked.2 min readCostsThe Real Cost of Claude Code Is Not the Price per TokenTwo sessions on the same model can cost very different amounts. The price per token says nothing about retries, cache, tool calls or subagents. The useful figure is not the token: it is the finished task.2 min readCacheWhy Your AI Agent Suddenly Becomes Slow and Expensive After a Model SwitchYou switch models, the answer comes back, then everything slows down. It is not a bug: the new model cannot reuse the old one’s cache, and the context goes back to full price. The longer the session, the more it shows.2 min readRoutingOpus, Sonnet, or Haiku: How to Choose Without Ruining Your Budget or Sacrificing QualityOpus, Sonnet and Haiku are not three grades of one product: they are three levels of capability, and the task decides. The question is not which one is best, but which one is enough — without sacrificing quality where it matters.2 min readCostsYou Use Claude Code Every Day, but You Do Not Know What It Really Costs YouYou see the answers, the code, the passing tests. You do not see the consumption. While it stays invisible, it cannot be steered: understanding which decisions produced the bill comes before switching models.2 min readCostsWhat We Do Not Measure: the Limits of “Token Savings”A savings percentage is computed against a bill that never happened. What the plugin decides is a fact, and it sits in a journal; what you would have paid otherwise is an opinion. Here is the line, and the three numbers this site will not publish.4 min read