AI GLOSSARY · AI CONCEPTS

Token

Markdown version

In one line: A token is a small piece of text, about four characters or three-quarters of a word in English by OpenAI's estimate, that an AI model reads and writes.
Cost: Anthropic prices its models per million tokens (MTok), with separate input and output prices; as of 2026-11-24, Claude Opus 5.5 is $4 in and $20 out.

Definition

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.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    Claude Code Pricing: What Drives Cost and Plan Options

    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.
  2. Skill by Skill Almanac · Illustrative, not executed

    context-window-packer 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.
  3. Skill by Skill Almanac · Illustrative, not executed

    llm-cost-estimator 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.
  4. Skill by Skill Almanac · Illustrative, not executed

    agent-session-cost-review 58/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.

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.

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.
Show all 41 related terms

Terms that mention Token

101 terms mention this one

Guides that mention Token

Show all 32 guides

More in AI concepts

Next steps

  1. Claude Code Pricing: What Drives Cost and Plan Options The long-form guide.
  2. context-window-packer A skill that exercises it.
  3. All glossary terms A to Z and by family.

Next term to learn: Context window (7 of 10)

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude and Codex (automated drafting); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (20)
  • : First version.
  • : Initial reference entry with scoped definitions, primary references and illustrative examples.
  • : Replaced with Codex's final reviewed version from the staged-approval cohort; earlier history kept above. Still a draft: not indexable.
  • : Accuracy pass: short and technical no longer say a token is 'produced by a tokenizer'; reworded to the Anthropic glossary's 'encoded into tokens for the model to process'.
  • : Accuracy pass: removed the clause 'commonly represented by vocabulary identifiers' because no cited source says it.
  • : Accuracy pass: removed 'a word count is not an exact token count'; kept only the sourced advice to use token counting with the model you plan to use.
  • : Accuracy pass: replaced 'different tokenizers give different counts' with Anthropic's documented statement that a newer tokenizer produces more tokens for the same text.
  • : Accuracy pass: narrowed multimodal and billing wording to Anthropic's token-counting endpoint (inputs, estimate, system-added tokens not billed); removed the general claim about how services charge.
  • : Accuracy pass: removed unsourced body statements (added instructions or history, longer responses, local models and per-token invoices, input versus output, search-volume remark).
  • : Accuracy pass: replaced the two cost skill see lines with the catalog one-liners and simplified the three why lines; no new claims added.
  • : US spelling; per-example caveats removed (the page states once that examples are illustrative); related terms filled. No verified claim changed.
  • : Beginner example added: OpenAI's English estimate (4 characters, 75 words per 100 tokens) for token; Claude Opus 5.5 context size and glosses of FIFO, compaction and max_tokens for context window. Each sourced.
  • : Verification reset to pending: the beginner example added after Codex's PASS changed the reviewed text. No other change.
  • : Added a written one-line answer (size estimate and per-token pricing, both sourced) and a pointer to the Claude Code pricing guide; pricing page added as a source.
  • : Added the Claude Code pricing guide as the first example and a worked size example (arithmetic from OpenAI's 100 tokens per 75 words).
  • : Round 6: one-line answer rewritten in plain words with the price on its own cost line; tokenizer moved from the plain section to the technical section.
  • : Round 7: plain section no longer uses the word encode; technical wording unchanged.
  • : Round 8: MTok defined as million tokens where prices appear.
  • : Independent automated factual and example-source review completed; exact-version technical release checks recorded separately. Publication remains disabled.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.