LLM Cost per Million Words Calculator
What it costs to have Claude, GPT or Gemini read or write a million words, with words converted to tokens for you.
Updated · By Niraj Kumar · 6 sources
https://checkpre.com/ai/llm-cost-per-million-words
Model
Each request
About 1,333 tokens. System prompt, conversation history, documents and tool definitions are all resent on every call.
About 1,333 tokens. The visible answer.
Count tokens from a prompt or JSON payloadShowHide
Plain text, OpenAI Chat or Responses JSON, or Anthropic Messages JSON. A final assistant message or a response body counts as output. Counted in your browser; nothing is uploaded.
Loading the tokenizer…
Counts use OpenAI's o200k tokenizer, so they are exact for GPT-6 and GPT-5 models, plus a few tokens of message framing. Other providers' tokenizers count the same text differently and do not publish a conversion factor; Anthropic says Claude models from 4.7 on produce about 30% more tokens than earlier Claude models. For an exact count on another model, paste one of its API responses: the usage it reports is shown above.
Thinking tokens are billed as output. Leave at 0 for models or settings that do not reason.
Volume
Discounts
The share of input that repeats exactly at the start of every request, such as a fixed system prompt. The prompt caching calculator prices cache writes and expiry in detail.
- Per 1,000 requests
- $16.00
- Input
- $2.67
- Output
- $13.33
- Price rank
- 15th cheapest of 24
- Cheapest listed model
- Claude Haiku 5.5
- $0.80 for the job, $15.20 less
- Input17%
- Output83%
- 1Claude Haiku 5.5Anthropic$0.80
- 2GPT-6 LunaOpenAI$0.80
- 3Qwen3.8 FlashAlibaba$0.826
- 4GPT-5.6 LunaOpenAI$1.87
- 5DeepSeek V4.1 FlashDeepSeek$2.00
- 6Qwen3.7 PlusAlibaba$2.67
- 7Gemini 3.5 Flash-LiteGoogle$3.73
- 8Grok 4.3xAI$5.00
- 9Gemini 3.8 FlashGoogle$6.00
- 10DeepSeek V4 ProDeepSeek$7.04
- 11Claude Haiku 4.5Anthropic$8.00
- 12Grok 4.7xAI$10.66
- 13Qwen3.8 MaxAlibaba$10.66
- 14Claude Sonnet 5.5Anthropic$16.00
- 15Claude Sonnet 5Anthropic$16.00
- 16GPT-6.1 SolOpenAI$16.00
- 17GPT-6 SolOpenAI$16.00
- 18GPT-5.6 TerraOpenAI$18.66
- 19Gemini 3.1 ProGoogle$18.66
- 20Claude Opus 5.5Anthropic$31.99
- 21GPT-5.6 SolOpenAI$31.99
- 22Claude Opus 5Anthropic$39.99
- 23Claude Fable 5.1Anthropic$79.98
- 24GPT-6 AstraOpenAI$79.98
How the LLM Cost per Million Words Calculator works
cost = (fresh input × input rate + cached input × cache rate + (output + reasoning) × output rate) ÷ 1,000,000This page uses the same method as the LLM API Cost Calculator, which explains each term and assumption in full.
Worked example
1,000 requests of 1,000 words in and 1,000 words out: a million words read and a million written, as a one-off job. At about 1.33 tokens a word, that is roughly 1.33 million tokens each way. Priced on Claude Sonnet 5.
- 1Each request: 1,333 input tokens, 1,333 output
- 2Input costs $0.00267 and output $0.0133, so $0.016 a request
- 3× 1,000 requests = $16.00
$16.00 for the job on Claude Sonnet 5. The cheapest listed model, Claude Haiku 5.5, would cost $0.80.
Frequently asked questions
How many tokens is a million words?
About 1.33 million tokens of ordinary English prose, at roughly three-quarters of a word per token. Technical writing, code, names and non-English text take more tokens per word, sometimes much more, and each provider's tokenizer counts slightly differently.
Why does writing a million words cost more than reading them?
Every provider prices output tokens four to eight times higher than input, because generating each token takes a full pass through the model. Reading a million words is therefore a small part of the bill next to writing a million. Toggle the output down to zero in the calculator to see the reading cost alone.
Sources
- Anthropic, Claude API pricing · checked
- OpenAI, API pricing · checked
- Google, Gemini API pricing · checked
- DeepSeek, Models and pricing · checked
- xAI, Models and pricing · checked
- Alibaba Cloud Model Studio, Model pricing · checked
Related calculators
- LLM API Cost CalculatorPrice a real workload across Claude, GPT, Gemini, DeepSeek, Grok and Qwen side by side, with prompt caching, batch discounts and exact token counts.
- LLM Summarization Cost CalculatorWhat it costs to summarize documents in bulk with Claude, GPT or Gemini, by document length, summary length and daily volume, on the batch API.
- GPT-6 Luna API Cost CalculatorPrice GPT-6 Luna, the cheapest model listed at $0.10 in and $0.50 out per million tokens, for classification, extraction and other high-volume work.
- Prompt Caching ROI CalculatorSee whether caching your system prompt or documents pays off: cache writes, reads, expiry and break-even for Claude, GPT and Gemini.
More in AI, Cloud & Developer
- AI Chatbot Cost Calculator
- RAG Cost Calculator
- AI Coding Agent Cost Calculator
- LLM Classification Cost Calculator
- Claude Sonnet 5 vs GPT-6 Sol API Cost
- Claude Sonnet 5 vs GPT-5.6 Terra API Cost
- Claude Sonnet 5 vs Gemini 3.1 Pro API Cost
- Claude Sonnet 5 vs Claude Opus 5.5 API Cost
- All 99 AI, Cloud & Developer calculators