Mauricio Robles

Tool

LLM token and cost calculator

Paste a prompt or type token counts, set how many requests you make per day, and compare what each model would cost.

Tool

Start from

Tokens

Part of the input read from the prompt cache.

Models

USD per million tokens, entered 2026-11-03. Edit to match current pricing.

IncludeModelInputOutputCache readRemove
Claude Fable 5.2
Claude Opus 5.5
Claude Sonnet 5.5
Claude Haiku 5.5

Cost

$0$200$400$600$800Claude Fable 5.2$732Claude Opus 5.5$372Claude Sonnet 5.5$186Claude Haiku 5.5$9.6 · lowest
Cost per month by model (USD)
  • Input
  • Cached input
  • Output
ModelPer requestPer dayPer month
Claude Fable 5.2$0.1220$24.4$732
Claude Opus 5.5$0.0620$12.4$372
Claude Sonnet 5.5$0.0310$6.2$186
Claude Haiku 5.5$0.0016$0.32$9.6

How it works and assumptions

The cost per request is uncached input tokens at the input price, cached input tokens at the cache-read price, and output tokens at the output price, each priced per million tokens. The daily cost multiplies that by requests per day and the monthly cost by days per month. In text mode, tokens are estimated as characters divided by 4.

  • Token counts from pasted text are an estimate: characters divided by 4. Real tokenizers differ by language and content, so use the API's usage numbers when you have them.
  • Cost per request is (fresh input × input price + cached input × cache-read price + output × output price) ÷ 1,000,000.
  • Cached tokens are counted as part of your input, billed at the cache-read price. Cache write premiums are not modelled.
  • Default prices are Claude list prices in USD per million tokens as of the date shown on the page. They change, so edit them to match the current pricing page.

Frequently asked questions

How do I estimate the cost of an LLM API call?

Multiply input tokens by the input price, cached input tokens by the cache-read price and output tokens by the output price, each per million tokens, and add them up. The calculator does this for every model and scales it to a day and a month.

How are tokens estimated from pasted text?

As characters divided by 4. It is a rough estimate for English text; a real tokenizer will differ.

What does prompt caching change?

Cached input tokens are billed at the lower cache-read price, so a high share of cached input lowers the cost of repeated prompts.

Can I compare models that are not in the list?

Yes. Add a custom model with its own input, output and cache-read prices. All prices are editable and labelled with the date they were entered.

Reading that goes with this tool.