What Is a Token in AI? Tokens, Words and Pricing
A token is a chunk of text that a language model treats as one unit. Common short words are usually one token; longer or rarer words are split into several. Punctuation and spaces are part of tokens too.
Tokens vs words
In English, 1,000 tokens is roughly 750 words, or about four characters per token. Other languages, code and unusual names usually take more tokens per word.
Why tokens matter
- Memory: a model’s context window is measured in tokens.
- Cost: API providers charge per million input and output tokens.
- Speed: local models generate a certain number of tokens per second.
Counting tokens
Each model family has its own tokenizer, so counts differ slightly between models. For planning, an estimate is enough. Paste any text into our token counter, or estimate monthly spend with the AI chat cost calculator.
Related
More terms: Alignment · Character card · Content filter · Guardrails · Hallucination · Jailbreak · Full glossary