Token
A token is the basic unit a large language model (LLM) uses to read and write text. A token can be a character, part of a word, a whole word or a punctuation mark.[1] Token counts set how much text fits in one request and how API usage is billed: input and output tokens are counted and priced separately.[1][5]
What does Token mean in simple terms?
A token is a small piece of text that an AI model actually reads. For English, OpenAI's rule of thumb is that one token is about four characters, or about three-quarters of a word.[1] Other languages split differently, so the same message can take more tokens in one language than in another.[1][7] In OpenAI's own example, a short Korean greeting took 45 tokens with an older tokenizer, while its English version took 27.[8] Because API bills are calculated per token, a budget based on "number of users" or "number of pages" can be far off. The token count of your real prompts and answers is what drives cost.[1]
How can Token be explained with an analogy?
Tokens are the "quantity" column on a quote or invoice: the unit your AI usage is measured and billed in.
Where is Token used?
API budgeting — Estimating a monthly bill (illustrative)
OpenAI's price list for its GPT-6.1 Sol flagship model shows USD 2.00 per million input tokens and USD 10.00 per million output tokens at the standard short-context rate (checked October 2026).[6] Take a hypothetical internal summary bot that runs 100,000 times a month, each call using about 2,500 input tokens and 500 output tokens. That is 250 million input tokens (about USD 500) and 50 million output tokens (about USD 500), or roughly USD 1,000 a month. This is a simple illustration: caching, long-context rates and reasoning tokens, which are billed as output, change the real figure.[1][6]
Result: About USD 1,000 per month for the hypothetical workload (illustrative calculation, not a real company's bill).[6]
Korean and other languages — More tokens for the same meaning
Researchers at the University of Oxford found that the same text translated into different languages can differ in token length by up to 15 times, which affects API cost, response time and how much fits in the context window.[7] OpenAI's GPT-4o announcement listed token counts for one greeting in 20 languages. In Korean, the sentence took 45 tokens with the older tokenizer and 27 with GPT-4o's new one; the English version went from 27 to 24.[8] Teams serving several languages should measure each language rather than reuse English estimates.
Result: Korean sample sentence reduced from 45 to 27 tokens (40% fewer) with GPT-4o's tokenizer; English 27 to 24 (OpenAI, May 2024).[8]
Meta Llama 3 — A larger vocabulary
In April 2024 Meta said Llama 3 uses a tokenizer with a vocabulary of 128K tokens that encodes language much more efficiently.[9] Meta's benchmarks showed up to 15% fewer tokens than Llama 2 for the same text.[9] Fewer tokens for the same document means less of the context window is used and can lower input cost if the per-token rate is unchanged.
Result: Up to 15% fewer tokens than Llama 2 (Meta, April 2024).[9]
Anthropic Claude — Same text, different count after a model change
Anthropic states that Claude 4.7 and later models use a newer tokenizer that produces approximately 30% more tokens for the same text, depending on content.[10] Claude 4.6 and later models (except Claude Haiku 5.5) offer a 1M-token context window at standard per-token prices.[5][10] When you switch models, re-measure token counts instead of carrying over old estimates.
Result: About 30% more tokens for the same text on Claude 4.7 and later models (Anthropic pricing docs, checked October 2026).[10]
Try it today
- Paste a typical paragraph your team sends to AI into OpenAI's Tokenizer, or count it with tiktoken or your provider's token-counting tool.[1][4]
- Measure the same content in every language you serve and note the ratio for your cost estimates.[7][8]
- For your three most-used prompts, record average input and output tokens, including reasoning tokens, and multiply by the current price per million tokens.[1][6][10]
- Re-measure when you change model or model version, because tokenizers differ.[1][10]
- For long documents, check the model's context window and long-context pricing before deciding whether to split the text.[5][10]
Limits and direction
Tokens are not language-neutral. Standard tokenizers learn from frequency, so languages that dominate the training data get shorter token sequences, while others get longer ones and pay more for the same meaning.[2][7] The same text also produces different counts on different models and tokenizer versions, and even spaces or capitalization can change how a word is split.[1][10] Name the model in quotes and contracts that depend on token volume. A lower price per million tokens does not guarantee a lower total cost, because models tokenize differently and generate different amounts of output.[1]
Three trends stand out. First, context windows have grown to 1M tokens on many current models, which reduces the need to split documents.[5] Second, tokenizers are getting better at non-English text, as shown by Llama 3 and GPT-4o, and researchers are proposing fairer tokenizers across languages.[2][8][9] Third, images are now counted in tokens too: Claude, for example, converts each 28×28-pixel patch of an image into a visual token.[14] For token-billed model usage, the basic calculation is tokens × the applicable rate, summed across input, output, and cache categories; tools or runtime can add separate charges.[1]
How has Token evolved?
Which concepts are related to Token?
- FoundationTransformerThe model architecture that takes a sequence of tokens as input; Llama 3 uses a decoder-only transformer.[9]
- Next stepEmbeddingThe step that turns tokens into numeric vectors that carry meaning.
- Related conceptContext WindowThe total number of tokens a model can handle in one request.[5]
- Key toolToken CostAPI cost is calculated from the number of input and output tokens.[1]
Which sources explain Token?
- OpenAI Help Center — Understanding and counting tokens (checked 2026-10-13) — https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
- Foroutan et al. — Parity-Aware Byte-Pair Encoding: Improving Cross-lingual Fairness in Tokenization (arXiv 2508.04796, 2025-08-06) — https://arxiv.org/abs/2508.04796
- Kudo, Richardson — SentencePiece: A simple and language independent subword tokenizer and detokenizer (arXiv 1808.06226, 2018-08-19) — https://arxiv.org/abs/1808.06226
- OpenAI — tiktoken, GitHub repository (checked 2026-10-13) — https://github.com/openai/tiktoken
- Anthropic — Context windows, Claude Platform Docs (checked 2026-10-13) — https://platform.claude.com/docs/en/build-with-claude/context-windows
- OpenAI — API Pricing (checked 2026-10-13) — https://developers.openai.com/api/docs/pricing
- Petrov, La Malfa, Torr, Bibi — Language Model Tokenizers Introduce Unfairness Between Languages (NeurIPS 2023, arXiv 2305.15425) — https://arxiv.org/abs/2305.15425
- OpenAI — Hello GPT-4o (2024-05-13) — https://openai.com/index/hello-gpt-4o/
- Meta AI — Introducing Meta Llama 3 (2024-04-18) — https://ai.meta.com/blog/meta-llama-3/
- Anthropic — Pricing, Claude Platform Docs (checked 2026-10-13) — https://platform.claude.com/docs/en/about-claude/pricing
- Sennrich, Haddow, Birch — Neural Machine Translation of Rare Words with Subword Units (arXiv 1508.07909, ACL 2016) — https://arxiv.org/abs/1508.07909
- Wu et al. — Google's Neural Machine Translation System (arXiv 1609.08144, 2016-09-26) — https://arxiv.org/abs/1609.08144
- PyPI — tiktoken 0.1.1 release (2022-12-15) — https://pypi.org/project/tiktoken/0.1.1/
- Anthropic — Vision, Claude Platform Docs (checked 2026-10-13) — https://platform.claude.com/docs/en/build-with-claude/vision
Tell us what you think
Your feedback helps us improve the content.