Token Cost Calculator

Work out what a workload costs across models before you commit to one. Runs in your browser, sends nothing anywhere.

What kind of content?Changes the characters-per-token assumption. Only affects the estimate mode.

These token counts are estimates

This is an estimate based on characters per token, not a real tokenizer. Every model family tokenizes differently: Anthropic notes that Claude 4.7 and later produce roughly 30% more tokens for the same text than their earlier models. Expect to be within about 10 to 20% for English prose, and further out for code, non-Latin scripts, and heavily structured text. For exact counts, use your provider’s token counting API.

Provider:
ModelProviderIn $/MOut $/MPer callPer dayPer month
Gemini 2.5 Flash-LiteGoogle0.100.40$0.0018$0.180$5.40
GPT-5.4 nanoOpenAI0.201.25$0.0045$0.450$13.50
Gemini 3.5 Flash-LiteGoogle0.302.50$0.0080$0.800$24.00
GPT-5.4 miniOpenAI0.754.50$0.017$1.65$49.50
Claude Haiku 4.5Anthropic1.005.00$0.020$2.00$60.00
GPT-5.6 LunaOpenAI1.006.00$0.022$2.20$66.00
Gemini 3.6 FlashGoogle1.507.50$0.030$3.00$90.00
Claude Sonnet 5Introductory pricing through 31 August 2026. Rises to $3 / $15 on 1 September 2026.Anthropic2.0010.00$0.040$4.00$120.00
Gemini 3.1 Pro PreviewRate shown is for requests up to 200k tokens. Above that it is $4 input and $18 output.Google2.0012.00$0.044$4.40$132.00
GPT-5.6 TerraOpenAI2.5015.00$0.055$5.50$165.00
GPT-5.4OpenAI2.5015.00$0.055$5.50$165.00
Claude Sonnet 4.6Anthropic3.0015.00$0.060$6.00$180.00
Claude Opus 5Anthropic5.0025.00$0.100$10.00$300.00
Claude Opus 4.5Anthropic5.0025.00$0.100$10.00$300.00
GPT-5.6 SolOpenAI5.0030.00$0.110$11.00$330.00
GPT-5.5OpenAI5.0030.00$0.110$11.00$330.00

Click any column to sort. Monthly figures assume 30 days. Rates are standard API pricing: batch processing and prompt caching both cost less, so treat these as an upper bound.

Prices checked on 2026-07-26. Model pricing changes often. Confirm with the provider before you budget against these numbers.