What Is a Token? How LLM Billing Actually Works
Published December 5, 2026
Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. This never influences our rankings or opinions.
Every AI API bill is denominated in a unit most people never see: the token. Understanding what it is takes about five minutes and explains 90% of why one model’s invoice reads different from another’s. Here’s the plain-language version, with the arithmetic that turns tokens into dollars.
The definition
A token is a chunk of text — roughly 4 characters or ¾ of a word in English. “Pricing” is likely two tokens; “the” is one; an emoji is often one; code and non-English text split into more, smaller tokens. Models read and write in tokens, and both directions get billed: every token you send in (input) and every token the model writes out (output).
Quick estimates without a tokenizer: 1,000 tokens ≈ 750 English words ≈ 3 pages of prose. A typical chat exchange is 1–3K tokens in and a few hundred out. A big RAG prompt with documents can be 50K+ tokens in.
The two rates (and why output wins the bill)
Every model has an input rate and an output rate per million tokens — and output costs 3–6x more because generating is computationally heavier than reading. Check any row of the comparison table: Opus 5.5 is $4 in / $20 out; GPT-6.2 Sol is $2 in / $10 out.
That asymmetry flips most people’s intuition. A chatbot sending 2,000-token prompts with 600-token answers bills ~75% of its cost on the output. If you estimate your bill from the prompt side, you’ll be off by 3–4x. (Verbose outputs are the #1 bill-killer — the full math here.)
The arithmetic
Bill = (input tokens ÷ 1M × input rate) + (output tokens ÷ 1M × output rate)
Example: 50M input + 15M output tokens/month on a $2/$10 model:
- Input: 50 × $2 = $100
- Output: 15 × $10 = $150
- Total: $250/month
Run your own numbers in the cost calculator — plug in requests/day, prompt size and answer length and it prices every model side by side.
The four modifiers that change the real rate
- Caching. Repeated prefixes (system prompts, documents, tool definitions) bill at 1–10% of the input rate on repeat reads. On agentic and RAG workloads this is the biggest lever there is — how to turn it on.
- Batching. Non-urgent bulk jobs get ~50% off on most platforms. If it can wait hours, it shouldn’t pay interactive rates.
- Context thresholds. Some models bill more past a prompt-size limit — Claude Haiku 5x past 100K tokens, Grok doubles past 200K, GPT-6 tiers rise past 272K. Check the effective price tables before assuming the headline rate.
- Time windows. DeepSeek bills peak hours at double its off-peak rate. Scheduled work can legitimately cost half price.
What does NOT get billed
- Failed requests and most rate-limit rejections.
- Content you don’t send — trimming a prompt saves real money.
- Max-output settings you don’t use: you’re billed for tokens actually generated, not the ceiling you configure.
The 60-second estimation habit
Before building on any model, do this once:
- Estimate requests per month × average prompt size (in tokens) and answer size.
- Multiply out with the rates from the model pages.
- Halve the input line if your prompt has a stable prefix (cache), and halve again if any of it can run batch/off-peak.
That’s your real bill — usually 50%+ below the naive estimate, and now you know exactly which levers moved it.