Token
The small pieces an AI reads and writes text in, like chopped ingredients.
What it is
An AI doesn't read or write text one letter at a time, or a whole sentence at a time. It chops text into small pieces called tokens. A common word usually fits in one token; rare words, very long words and emoji take several. How much an AI can read, how much it writes and what it costs are all counted in tokens.
In the AI Kitchen
In the AI Kitchen, tokens are the chopped ingredients on the board. Your order is cut into pieces first, and the chef reads them one by one. A long, rare word comes apart into many pieces.
In real life
Every model family chops a little differently, so the same sentence gives different counts. This scene uses o200k, a tokenizer OpenAI has published. Claude uses its own tokenizer and does not publish how it splits text; Anthropic's token counting endpoint gives exact counts. In English, a token is roughly three quarters of a word.
Where to try it
- First metScene 2 · Tokens →
- Goes furtherScene 5 · Context →