Token
The small unit of text, roughly a word or part of a word, that a language model reads and writes.
A token is the unit a language model works in. Text is split into pieces before the model sees it, and each piece is a token. A short common word is usually one token. A longer or rarer word is often broken into two or three. Punctuation, spaces and parts of code count too. As a rough rule, a thousand tokens is about 750 English words.
The model reads tokens and produces tokens, one at a time, each chosen in the light of all the tokens before it. That is why a reply arrives word by word, and why longer replies take longer and cost more.
Tokens matter in three practical places. They set the size of the context window, which is the most text a model can consider at once. They set the price, since providers charge per token read and per token written. And they are how training data is measured: a model is described as trained on so many trillion tokens, which is one of the quantities in the scaling laws.
Tokens are also a source of odd failures. A model can struggle to count the letters in a word, because it never sees letters, only tokens. Different models split text differently, so a token count is not a fixed property of a piece of text.