Every major LLM API now sells tokens, but they do not sell the same token. A token is a unit produced by a tokenizer, and different models split the same text differently. Images, audio and video are converted into tokens by provider-specific rules. Reasoning models may bill hidden thinking tokens as output. The rate card is only the start.
This guide explains the meters that appear on a 2027 LLM bill, works through a concrete example for four models, and sets out when per-token pricing beats a flat plan. Rates were checked on 23 November 2026. The arithmetic is labelled as arithmetic; it is not a quote.
| Model | Input per 1M | Output per 1M | Cached input | Batch or discount tier | Note |
|---|---|---|---|---|---|
| OpenAI GPT-6.2 Astra | $8.00 | $40.00 | $0.40 | Batch $4.00 / $20.00; Flex $5.00 / $25.00; Fast $16.00 / $80.00 | Cache writes are $10.00 for 30 minutes or $20.00 for 12 hours per 1M |
| Anthropic Claude Sonnet 5.5 | $2.00 | $10.00 | $0.10 read; $2.50 write | Batch processing saves 50% | Rates are per million tokens (MTok) |
| Google Gemini 4 Carbon | $2.00 through 30 Nov 2026; $4.00 from 1 Dec | $10.00 through 30 Nov 2026; $20.00 from 1 Dec | $0.10 through 30 Nov; $0.20 from 1 Dec | Batch API is 50% below standard | Not available on the free tier |
| Groq GPT-OSS 120B | $0.15 | $0.60 | Not listed | No batch tier listed on the model page | Developer-plan rate; free plan has lower limits |
What a token is, and what it is not
A token is a fragment of text, roughly three-quarters of a word in English, but the ratio varies by tokenizer and language. Code, Arabic, JSON and long identifiers can tokenize very differently from prose. That is why the same 1,000-word document can cost different amounts on two models even when the per-token rate looks similar.
Non-text inputs follow provider-specific rules. OpenAI states that images count as tokens and are billed accordingly, with a limit of 30,000 patches per image after resizing. Gemini calculates video output at 5,792 tokens per second of 720p video, and audio tokens at 25 per second for some models. A budget built only on text tokens will miss the modality that dominates the bill.
The practical lesson is to count with the provider's tokenizer, not with a word count. If the provider publishes a token calculator, use it on a sample of real requests before you commit to a volume estimate.
The five meters on an LLM bill
Input tokens are the prompt: system instructions, conversation history, retrieved documents, tool definitions and images. Output tokens are the completion, including reasoning or thinking tokens where the model bills them. Cached input is a discounted read of a prompt prefix the provider has stored. Cache writes are sometimes charged separately, especially for long-lived caches. Batch, flex and priority tiers change the rate for the same tokens.
The tiers are where procurement gets lost. OpenAI publishes standard, batch, flex and fast rates for GPT-6.2 Astra: $8/$40 standard, $4/$20 batch, $5/$25 flex and $16/$80 fast. Anthropic says batch processing saves 50%. Gemini's paid tier includes a Batch API at 50% below standard. The same workload can therefore have four different unit prices depending on latency tolerance.
Reasoning tokens deserve a separate line in the model. A model that thinks for 2,000 tokens before answering a 200-token question can bill ten times the output the user sees. Ask whether thinking tokens are included in the output rate and whether they are capped.
- Input: prompt, history, retrieved context, tool schemas and media.
- Output: visible answer plus hidden reasoning tokens where billed.
- Cached input: discounted reads, with a possible write charge.
- Tier: standard, batch, flex, priority or fast.
- Retries: failed attempts may still bill input tokens.
Worked example: 10M input and 2M output
Take a month with 10 million input tokens and 2 million output tokens, all at standard rates, with no caching and no batch. On GPT-6.2 Astra at $8 and $40, the bill is $80 for input plus $80 for output, or $160. On Claude Sonnet 5.5 at $2 and $10, it is $20 plus $20, or $40. On Gemini 4 Carbon at the promotional $2 and $10, it is also $40; after 1 December 2026, at $4 and $20, it becomes $80. On Groq's GPT-OSS 120B at $0.15 and $0.60, it is $1.50 plus $1.20, or $2.70.
The spread is not a quality ranking. It reflects model class, provider cost structure and the tokenizer. A cheaper model that needs two attempts to produce an acceptable answer has an effective cost closer to twice its rate. A more expensive model that solves the task in one pass can be cheaper per completed task.
Now add caching. If 70% of the input is a stable system prompt and document set, a cached read at $0.40 instead of $8 changes the input line dramatically. That is why cache hit rate belongs in the forecast alongside token volume. It is also why a provider that does not publish a cache rate is harder to compare.
Why per-token forecasts drift
The first cause is output length. Teams estimate input volume from documents and forget that the model's answer is also billed, often at five times the input rate. The second is agent loops: a single user request can trigger five model calls, each with a growing history. The third is retries and tool errors, which consume input tokens even when the final answer fails.
The fourth is context growth. A long chat resends the whole history on every turn unless the provider caches it. The fifth is modality conversion: an image, a PDF page or a minute of audio becomes a token count that is not obvious from the file size. The sixth is a price change. Gemini 4 Carbon's standard rate doubles on 1 December 2026, which is exactly the kind of event a annual budget should model.
Model three scenarios: current volume, 2x output length and a 30% traffic spike. If the per-token bill is uncomfortable in the third, a flat plan or a committed discount may be the better risk transfer.
When flat pricing wins
Flat pricing wins when volume is steady, output is long and the model list fits. A support assistant with predictable concurrency can budget a fixed fee and stop reconciling token reports. Finance gets one line item; engineering stops tuning max_tokens.
Per-token pricing wins when volume is low, spiky or experimental. A prototype that makes 200 requests a day should not buy a $120 plan if a $5 credit covers it. Batch pricing wins for offline classification, extraction and evaluation, where a 50% discount is worth waiting for. Self-hosting wins only at high sustained utilization, where the GPU bill is lower than the token bill and the team can operate the stack.
The trap with flat plans is model fit. A plan that covers 39 models is not a substitute for a specific frontier model outside the catalogue. Check the model list before comparing the price.
When a competitor wins
Per-token providers win for low-volume, spiky and batch workloads, and for teams that need to switch models often. Their bills scale down when traffic stops, which is valuable for a pilot. They also make it easy to compare model economics without a contract.
Flat plans win for steady, output-heavy workloads where the monthly bill would otherwise be volatile. They transfer the risk of a traffic spike to the provider, provided the fair-use terms are clear.
Self-hosting wins at very high utilization, or when the data cannot leave a private environment. It rarely wins for a small team, because the GPU, storage and operations costs are fixed even when the workload is idle.
The decision rule is simple: forecast the 80th-percentile month, not the average. The average month hides the spike that blows the budget.
How to build a token forecast
Pull 50 real requests from production, count tokens with the provider's tokenizer, and multiply by your expected monthly volume. Then add the output tokens you actually observed, not the maximum you configured. Run the same sample through two providers and compare completed tasks per dollar, not tokens per dollar.
- Count input and output separately, with the provider's tokenizer.
- Measure the cache hit rate on real traffic.
- Add retries and agent-loop calls to the request count.
- Compare the 80th-percentile month, not the average.
Verdict
Use per-token pricing for pilots, spiky traffic and batch work, where paying for what you use is an advantage. Use a flat plan when volume is steady, output is long and the models in the plan fit the job. Use batch tiers when latency does not matter, and self-host only at high sustained utilization.
Whichever model you choose, forecast output and retries, not just input. The input rate is on the landing page; the output rate arrives on the invoice.
Frequently asked questions
What is token-based pricing?
A billing model where the provider charges per token processed. Input tokens cover the prompt, output tokens cover the completion, and cached or batch tokens may have different rates. The total depends on volume, output length, caching and the service tier.
Are input and output tokens priced the same?
Usually not. Output is often several times more expensive than input because generation is more compute-intensive. GPT-6.2 Astra, for example, lists $8 per million input tokens and $40 per million output tokens. Always model the output line separately.
Do reasoning tokens cost extra?
They can. Some models bill hidden thinking tokens as output, and providers differ on whether they are capped or reported. Ask whether the output rate includes reasoning tokens and check the usage record for a sample request.
Why did my token bill change when my traffic did not?
Common causes are longer outputs, more agent-loop calls, a lower cache hit rate, retries, or a price change. Gemini 4 Carbon's standard rate, for example, moves from $2/$10 to $4/$20 per million tokens on 1 December 2026. Check the rate card and the usage breakdown before assuming fraud or a billing error.
Related
Sources
- OpenAI API pricing · 23 Nov 2026
- Anthropic API pricing · 23 Nov 2026
- Gemini Developer API pricing · 23 Nov 2026
- Groq supported models and pricing · 23 Nov 2026