Calculator

What will this actually cost?

Nothing is sent anywhere — the arithmetic runs in your browser. Start from a workload shape if you do not know your token counts yet; most people do not, and the shape gets you close enough to compare.

Start from a shape
Or enter your own

The share of your input that is a repeated prefix. Caching is the single biggest lever on most bills.

Estimated monthly spend

Prices are list rates before any committed-use discount.

  1. Claude Haiku 4.5cheapest$172.56
  2. Claude Sonnet 5$347.28
  3. Claude Sonnet 4.6$517.68
  4. Claude Opus 5$862.80
  5. Claude Opus 4.8$862.80
  6. Claude Fable 5$1,726

Getting the numbers right

Input and output tokens

Tokens are not words. A rough English estimate is ~4 characters per token, but that breaks down badly on code and on non-English text. If the number matters, count it properly — every major provider ships a token-counting endpoint, and using one is far more reliable than a rule of thumb or a third-party tokenizer built for a different model family.

Cached input

Caching is the largest lever on this page, and the most commonly left on the table. If every request begins with the same long system prompt, tool definitions, or retrieved document, that prefix can usually be cached and re-read at a fraction of the input price. Move the slider and watch what happens to the total — on a long-prefix workload it is often the difference between two models being close and one being obviously right.

The catch is that caching is a prefix match. One changed byte early in the prompt — a timestamp, a re-ordered JSON key, a session ID — invalidates everything after it. A cache hit rate you assumed but never measured is worth checking before you budget against it.

What this does not include

Batch discounts, committed-use agreements, enterprise pricing, fine-tuning, and per-request minimums are all out of scope here. Treat the output as the list-price ceiling for your workload, not a quote.