What are AI tokens, and how do they turn into a bill?
Tokens are the small pieces of text an AI model reads and writes: a word, part of a word, or a symbol. In English, 100 tokens is roughly 75 words. AI APIs charge per million tokens in and out, and output costs more. Multiply tokens per task by tasks per month by the price to estimate a bill.
What is a token?
A model does not read letters or whole words. It reads tokens, which Anthropic's glossary describes as words, parts of words, characters or bytes. Common words are often one token. Rare words, names, numbers and code split into several.
OpenAI's rules of thumb for English: one token is about four characters, or about three quarters of a word, so 100 tokens is about 75 words. Anthropic says a token was about 3.5 English characters on its earlier models, and its newer tokenizer makes about 30% more tokens for the same text. Other languages usually take more tokens per word. For exact counts, use the vendor's token counter on your own text.
Why are API bills counted in tokens?
The work a model does grows with the text it reads and writes, so vendors price by the million tokens. Input and output have separate prices. On Anthropic's price list today, Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens. Writing costs five times as much as reading on that model.
Input is more than your question. Instructions, pasted documents and the earlier turns of a conversation are all sent again with each request, and all are billed.
What is a context window?
The context window is the most text a model can handle in one request, counted in tokens, and it includes the answer. Anthropic's current models have a 1 million token window; some older ones have 200,000. A bigger window is not a reason to fill it: Anthropic's docs say accuracy and recall drop as the token count grows.
How do you estimate a monthly bill?
Pick one task and count three things: tokens in, tokens out, and how many times a month it runs. An example with Claude Sonnet 5.5 prices:
| Item | Example |
|---|---|
| Task | Draft a reply to a customer email |
| Tokens in per task | 1,500 (instructions plus the email) |
| Tokens out per task | 300 (the draft) |
| Runs per month | 1,000 |
| Input cost | 1.5 million tokens x $2 = $3.00 |
| Output cost | 0.3 million tokens x $10 = $3.00 |
| Monthly total | About $6 |
Change any number and the total moves with it. Long documents, long chats and agents that loop through many steps are where bills grow. Our AI cost calculator does the arithmetic for you.
Where should you start?
Measure one real task before you commit to a budget: send ten real examples, read the token counts the API reports, and multiply. We do this before we build anything that calls a model. When volume is steady and high, running a model on your own hardware can replace the per-token bill; see local or cloud AI.
Questions owners ask
Does a monthly chat subscription count tokens too?
Usually not on your bill. Chat plans have a flat price with usage limits. Per-token billing applies when your software calls the API directly.
Are tokens the same across vendors?
No. Each vendor, and sometimes each model, splits text differently. Anthropic says its newer tokenizer produces about 30% more tokens for the same text than earlier Claude models.
How can we lower the bill?
Send less text, use a smaller model for simple jobs, and use the vendor's discounts. Anthropic's Batch API halves the price for work that can wait, and prompt caching cuts the price of text you send again and again.
Sources
- OpenAI Help Center, what are tokens and how to count them: about 4 characters or 3/4 of a word per token in English (checked November 2026)
- Anthropic docs, glossary: tokens, about 3.5 English characters on earlier models, newer tokenizer about 30% more (checked November 2026)
- Anthropic docs, pricing: Claude Sonnet 5.5 at $2 input and $10 output per million tokens, Batch API 50% off (checked November 2026)
- Anthropic docs, context windows: what counts toward the window, 1M tokens on current models (checked November 2026)