Home › How token pricing works
How LLM token pricing works
LLM APIs bill by the token, and the bill has more moving parts than one price per million. Here is what each line on a pricing page means, with figures from the 33 models TokenBudget tracks (prices in force on 2026-11-24).
What a token is
A token is a chunk of text, often part of a word. Each provider splits text its own way, so the same text is a different number of tokens on different models. The sentence The quick brown fox jumps over the lazy dog. is about 10 tokens on OpenAI (o200k), 14 tokens on Claude, 10 tokens on Gemini by our estimate. Pass exact counts from your provider's usage data when the cost matters.
Input and output prices
Per token, in US dollars per million tokens, with separate prices for input (what you send) and output (what the model writes). For example Claude Sonnet 5.5 lists $2.00 per 1M input tokens and $10.00 per 1M output tokens, so a request with 10,000 input and 1,000 output tokens costs $0.03.
30 of the 33 models here charge more for output than for input. The output price ranges from 1.0 to 8.3 times the input price, with a median of 5.0 times. That makes output-heavy work, like long answers or code generation, cost more per request than reading a long document.
Cached input and cache writes
When a request starts with the same tokens as a recent one, providers that cache prompts charge less for that repeated part. Among models here with a listed cache price, cached input is 90% to 98% cheaper than normal input.
Anthropic also charges to write tokens into the cache: Claude Sonnet 5.5 lists $2.50 per 1M for a 5-minute cache write, against $2.00 for normal input. Other providers here list no cache-write price; new tokens cost the normal input price. Google also notes that cache storage is billed per hour on some models.
Batch discounts
Every model here with a listed batch price charges 50% less through the batch API, for requests that don't need an answer right away.
Long-prompt surcharges
Some models charge more for the whole request once the prompt passes a size: Claude Haiku 5.5 over 100,000 tokens goes from $0.10 to $0.50 input and $0.50 to $2.50 output; Gemini 3.1 Pro (preview) over 200,000 tokens goes from $2.00 to $4.00 input and $12.00 to $18.00 output; Gemini 2.5 Pro over 200,000 tokens goes from $1.25 to $2.50 input and $10.00 to $15.00 output.
Why agent loops cost more than you expect
An agent re-sends its whole conversation every turn, so input grows each turn. Take a run of 30 turns (4,000 system and 3,000 tool-definition tokens, 800 output and 1,500 tool-result tokens per turn) on Claude Sonnet 5.5: it costs $2.69 without caching and $0.541 with it. Context also grows toward the window limit: a model with a smaller window can run out of room before the task is done.
TokenBudget's API and MCP server price whole loops this way before you run them.
Prices change
Providers announce changes ahead of time. Currently announced: Gemini 4 Argon (Announced for 2026-12-01: $4.00 in / $20.00 out); Gemini 3.8 Flash (Announced for 2027-01-01: $1.50 in / $7.50 out); Gemini 3.6 Flash (Announced for 2027-01-01: $1.50 in / $7.50 out). Prices here were checked on 2026-11-24 against each provider's own page, and every model page links its source.