What Are Tokens in AI? How LLM Tokens Work and Cost
Tokens are the small chunks of text an AI model reads and writes: roughly four characters, or three quarters of a word, each. They decide how much an LLM API costs and how much text fits in one request. Here is how they work, with real prices.
Tokens in one minute
Before a model reads your text, it splits it into tokens. A token can be a whole word (cat), part of a word, a single character or a punctuation mark. OpenAI's rule of thumb for English is 1 token ≈ 4 characters ≈ ¾ of a word, so 100 tokens is about 75 words. Google says the same for Gemini: about 4 characters per token, and 100 tokens is 60 to 80 words. Other languages and code usually take more tokens per word.
The four kinds of token you pay for
- Input tokensEverything you send: the prompt, the chat history, any documents. Also called prompt tokens.
- Output tokensWhat the model writes back. Usually priced 3 to 8 times higher than input.
- Cached input tokensInput the provider has seen recently and reuses, charged at a much lower rate. See prompt caching.
- Reasoning tokensThe hidden thinking of reasoning models. You don't see them, but they are billed as output.
From OpenAI's and Google's token guides, checked 22 November 2026.
How many tokens is my text, and what does it cost?
Using ¾ of a word per token, priced on Claude Fable 5.2 ($8 per million input tokens) and inclusionAI: Ling 3.0 Tiny ($0.015), the cheapest model today:
| Text | About | To send on Claude Fable 5.2 | On Ling 3.0 Tiny |
|---|---|---|---|
| A tweet (40 words) | 53 tokens | $0.00042 | $7.9e-7 |
| An email (200 words) | 267 tokens | $0.0021 | $0.000004 |
| A page of a book (500 words) | 667 tokens | $0.0053 | $0.00001 |
| A 30-page report (15,000 words) | 20,000 tokens | $0.16 | $0.0003 |
| A novel (90,000 words) | 120,000 tokens | $0.96 | $0.0018 |
Tokens and the context window
A model's context window is the most tokens it can handle in one request, input and output together. The biggest windows on OpenRouter today reach 2M tokens, about 1,500 thousand words. Filling it is possible, but you pay for every token each time you send it.
Count tokens exactly
For an exact count, use the provider's own tools: OpenAI's Tokenizer page and its tiktoken library, OpenAI's free input-token counting endpoint, or Anthropic's token counting API. Every API response also reports the tokens it used.
Next: compare prices
Ready to pick a model? See the LLM API pricing table for all 360 models, the cheapest LLM APIs, and the cost calculator. By lab: Claude, OpenAI, Gemini, DeepSeek, Grok, Mistral, Qwen, Kimi, Meta Llama.
Questions
What is a token in AI?
A small piece of text, about four characters or three quarters of an English word, that a language model reads or writes. APIs charge per token.
How many words is 1,000 tokens?
About 750 English words, using OpenAI's rule of thumb that a token is three quarters of a word.
How many tokens per word?
About 1.3 tokens per English word on average. Rare words, other languages and code take more.
Why do output tokens cost more?
The model has to generate output one token at a time, which takes more computing than reading input, so providers price it higher.
Do spaces count as tokens?
Spaces are usually joined to the next word, so " red" and "red" can be different tokens. They still affect the count.
Get this in your inbox at 7am
One free email each morning with the AI repos, models and stories that are picking up speed, including new free models. Your own time zone, no spam.