# Token

> Canonical: https://skillalmanac.com/glossary/token | Last verified: 2026-11-24 | Index status: index-eligible

In language-model text processing, a token is a unit of text that a model processes, such as a word, subword, character or byte. Token counts help keep prompts within a context window and manage rate limits and costs.

Also called: tokens, AI token, AI tokens.

## In plain language

AI text systems divide text into small pieces called tokens. A token need not be a complete word. The same text can produce different token counts on different models, which matters when keeping prompts within a context window or managing costs. As a rough guide for English text, OpenAI's help page says 1 token is approximately 4 characters and 100 tokens are approximately 75 words, and calls these estimates. To get a model-specific estimate, use the provider's token-counting tool for the model you plan to use.

## Technical definition

Text is encoded into a series of tokens for the model to process, and the number of characters a token represents depends on the model and the language. Tokenization methods differ, and the choice can affect model performance, vocabulary size and the handling of out-of-vocabulary words. Subword methods can encode rare and unknown words as sequences of smaller units. Anthropic documents that a newer tokenizer produces more tokens for the same text than earlier models. In Anthropic's token-counting endpoint, the input can include system prompts, tools, images and PDFs, and the count is an estimate that might include system-added tokens that are not billed.

## How it shows up when you use agents

Anthropic's documentation says to use token counts to keep prompts within a model's context window and to manage rate limits and costs. It also says not to reuse token counts measured on an older model when estimating costs or context-window fit; count with the model you plan to use.

For example, compare the same short paragraph by running token counting once with your current model and once with the model you plan to move to, then compare the two input counts. This is a suggested exercise, not a measured result in this entry. For Claude, the number of characters a token represents depends on the model and the language, so there is no single characters-per-token figure.

For a concrete sense of scale, OpenAI's help page says that for English text 1 token is approximately 4 characters and 100 tokens are approximately 75 words. These are rough estimates; counts differ by model, encoding and language.

At that ratio, a 75-word paragraph is about 100 tokens and a 1,500-word page about 2,000 tokens (our arithmetic from OpenAI's estimate, so also approximate).

Billing follows token counts: Anthropic's pricing page lists Claude Opus 5.5 at $4 per MTok (million tokens) for input and $20 per MTok for output, as of 2026-11-24. For how this shows up in a coding tool, see the guide [Claude Code pricing explained](/learn/claude-code-pricing-explained).

## Common confusions

- **Token versus word.** A token can correspond to a word, subword, character or byte. A word may be encoded as a sequence of subword units.
- **Tokens versus price.** In Anthropic's token counting, the count is an estimate and might include system-added tokens that are not billed. Consult the service's current pricing rules.
- **Visible text versus counted input.** Anthropic's token counting returns the total number of input tokens, and current assistant-turn thinking counts toward input tokens.
- **AI versus cryptocurrency.** This entry's own scope note: here the word describes model processing, not a digital asset.

## Worked examples in this catalogue

### [Claude Code Pricing: What Drives Cost and Plan Options](https://skillalmanac.com/learn/claude-code-pricing-explained)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide on what drives Claude Code cost; it says API and cloud-provider use is billed per token and that cost grows with context length.

Why it exercises the concept: It shows token counts turning into a bill.

### [context-window-packer](https://skillalmanac.com/skills/skill-almanac/context-window-packer)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill is designed to propose what supplied material to retain or shorten under a stated token budget.

Why it exercises the concept: Use it to examine a proposed prompt budget; verify counts with token counting for the model you plan to use.

### [llm-cost-estimator](https://skillalmanac.com/skills/skill-almanac/llm-cost-estimator)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Turns a usage profile and your own price table into a monthly LLM cost range with cache, batch and subscription effects.

Why it exercises the concept: An illustrative place where token counts meet a price table.

### [agent-session-cost-review](https://skillalmanac.com/skills/skill-almanac/agent-session-cost-review)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Finds where a coding-agent session spent its tokens, by parsing the saved session transcript.

Why it exercises the concept: An illustrative place where token use is read from a saved transcript.

## Related terms

- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Context window](https://skillalmanac.com/glossary/context-window.md)
- [Language model](https://skillalmanac.com/glossary/language-model.md)
- [Transformer](https://skillalmanac.com/glossary/transformer.md)
- [Prompt](https://skillalmanac.com/glossary/prompt.md)

## Sources

- [Glossary: Tokens](https://platform.claude.com/docs/en/about-claude/glossary), Anthropic (accessed 2026-11-24)
- [Neural Machine Translation of Rare Words with Subword Units — Sennrich, Haddow and Birch; arXiv v5, 2016](https://arxiv.org/abs/1508.07909v5), arXiv (accessed 2026-11-24)
- [Token counting](https://platform.claude.com/docs/en/build-with-claude/token-counting), Anthropic (accessed 2026-11-24)
- [What are tokens and how to count them](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them), OpenAI (accessed 2026-11-24)
- [Pricing](https://platform.claude.com/docs/en/about-claude/pricing), Anthropic (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
