The Real Cost of Claude Code Is Not the Price per Token
Two 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.
When people talk about Claude Code cost, the first question is often: “how much does a token cost?”
That is a good question, but it is not the only one. The price per token says nothing about how many tokens are actually consumed. It also says nothing about the cache, the number of requests, tool calls, subagents, errors, or the model used.
Two sessions can use the same model and cost very differently. Claude Code’s documentation distinguishes token price from the cost of a completed task: comparing models only on unit price can be misleading.
#Why price per token is not enough
A task may consume more tokens with a cheaper model if it requires several attempts, back-and-forth exchanges, or a full context re-read. Conversely, a more expensive model can be more economical when it solves the task in fewer steps.
The real metric is not price per token, but cost per completed task. That is exactly where modelmile becomes meaningful.
#What modelmile does
modelmile does not simply choose a cheaper model. It seeks to understand the nature of the task, session continuity, and the level of capability actually needed. It then applies that decision before each request.
The goal is not to reduce the price per token. The goal is to reduce unnecessary cost per task.
modelmile makes this complexity visible. Instead of leaving you guessing, it gives you a basis for understanding what is happening: the model used, the effort applied, observed consumption, and estimated cost.
#For API users
For developers using the API directly, the price per token still matters. That is where solutions like FaborAPI can complement the approach. FaborAPI offers access to multiple models through an OpenAI-compatible API, with prepaid pricing that can reduce the effective cost per token on compared models.
modelmile and FaborAPI do not do the same thing. modelmile acts on routing and parameters within Claude Code. FaborAPI acts on the cost of accessing models through an API. The two can complement each other depending on the usage profile.
#An honest approach
modelmile does not promise automatic savings. It offers better visibility and control. Because the best saving is not always the cheapest model. It is the right model, at the right time, with the right effort level.
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.