Skip to main content

Token

Token

  • Core concepts
  • Stage 1 · Getting In
  • refs checked 2026-11-09
What problem it solves

The smallest unit a model processes text in. Both billing and length limits are measured in it.

What it is
The pieces a model splits text into. One token is roughly a quarter of an English word, or one to two Chinese characters. Context length and API pricing are both denominated in tokens.
Text is split into subwords, then mapped to integer IDs in a vocabulary; the model only sees IDs.
Text is split into subwords, then mapped to integer IDs in a vocabulary; the model only sees IDs.
Why it matters

The most easily overlooked word that most affects your bill. "Is my context enough" and "why is this so expensive" are both answered here.

Chinese aliases

Sources
  • Anthropic: token counting docs ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →