Cost calculator

Enter token counts and compare estimated API cost across popular models.

Defaults are sample values. Prices are USD per 1M tokens from the editable data file.

ModelInput / 1MOutput / 1MEstimated cost
Llama 4 Maverick
Meta
$0.2$0.6$0.0032
GPT-5 mini
OpenAI
$0.5$1.5$0.0080
Gemini 2.5 Flash
Google
$0.3$2.5$0.0080
Gemini 2.5 Pro
Google
$1.25$10$0.03
Claude Sonnet 4
Anthropic
$3$15$0.06
Grok 4
xAI
$3$15$0.06
GPT-5
OpenAI
$5$15$0.08
Claude Opus 4
Anthropic
$15$75$0.30

Last updated: 2026-09-15. Prices and context windows are approximate, drawn from public provider documentation, and change frequently. Always confirm current pricing with the provider before relying on these numbers. TidyChats is not affiliated with any model provider.

Reading the results

Cost is calculated as input tokens times the input price plus output tokens times the output price, divided by one million, then multiplied by the number of requests. The cheapest model is highlighted.

Not sure how many tokens you use? Try the token counter first.