LLM Cost Calculator
Estimate the cost of an LLM API call from input and output token counts, using published Claude model pricing — instantly, in your browser.
Estimate the cost of an LLM API call from input and output token counts, using published Claude model prices. It runs in your browser.
How to use it
- Choose the model.
- Enter the input and output token counts. If you only have text, estimate tokens with the Token Counter.
- Read the input cost, output cost and total.
Prices used
US dollars per million tokens (input and output), base uncached prices from Anthropic’s pricing page, checked 18 October 2026: Claude Fable 5.1 $10 and $50, Opus 5.5 $4 and $20, Opus 5 $5 and $25, Sonnet 5.5 $2 and $10, Sonnet 5 $2 and $10, Haiku 4.5 $1 and $5.
Example: 2,000 input and 500 output tokens on Sonnet 5 cost $0.004 + $0.005 = $0.009.
Good to know
Prices change, so confirm current rates on the provider’s pricing page before budgeting. Other providers and older models are not included. Discounts such as prompt caching and batch processing, taxes and minimum fees are not applied, and hidden system tokens are not counted. Output tokens cost several times more than input, so shorter replies save more than shorter prompts.
See the guide.
FAQs
Is my data sent anywhere?
No. The calculation happens in your browser.