PromptForge
AI Glossary

Core concepts

Token

Also known as: tokens, tokenization

Definition

A token is the unit of text an AI model reads and writes — roughly four characters or three-quarters of a word in English. Models price by the token and cap context by the token, so token count determines both what you pay and what fits.

Language models do not see letters or words. Text is first broken into tokens by a tokenizer, and each token is mapped to a number the model can process. Common words are usually a single token; rare words, names and non-English text split into several.

The practical consequences are immediate. Every API bills per million input and output tokens, so a prompt that is twice as long costs twice as much. Every model has a context window measured in tokens, so token count decides whether your document fits at all.

A useful rule of thumb for English: 1 token ≈ 4 characters ≈ 0.75 words. So 1,000 words is roughly 1,350 tokens. Code, JSON and languages that don't use the Latin alphabet tokenize less efficiently — often 2-3x more tokens for the same visible length.

Example

"The cat sat on the mat" is 6 tokens. "Antidisestablishmentarianism" is a single word but around 7 tokens, because the tokenizer splits it into familiar fragments.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.