What is a token in AI
- 01
Your text
A sentence, email or document goes in.
- 02
Split
A tokenizer cuts it into small pieces.
- 03
Tokens
Each piece becomes one token.
- 04
Model
The model reads and predicts the next token.
When you send text to an AI model, it does not read words the way you do. The text is first split into small pieces, and each piece is a token.
OpenAI describes tokens as the units its models use to process text. A short, common word is often one token. A long or rare word may be split into several.
So what are tokens in AI in practice? They are the counting unit for everything the model takes in and puts out.
Do not confuse them with other uses of the word. An LLM token is not a crypto token and not a login token. It only measures text for a language model.