A token is a chunk of text, often part of a word, that an AI model processes as one unit. In English, OpenAI's rule of thumb is that one token is about four characters, or about three-quarters of a word.
How text becomes tokens
Before a model reads your prompt, a tokenizer splits it into pieces. Common short words often become a single token. Longer or rarer words get split into several, and spaces and punctuation count too.
The exact split depends on the model. Two models can break the same sentence into different numbers of tokens, so counts from one tool won't match another exactly.
How to estimate tokens
For English text, OpenAI gives these rough estimates:
- 1 token is about 4 characters.
- 1 token is about three-quarters of a word.
- 100 tokens are about 75 words.
These are estimates, not exact counts. Other languages can use noticeably more tokens for the same meaning.
Why tokens set your limits
Every model has a context window, which is the number of tokens it can work with in one request. That includes your prompt, any files you attach and the model's reply. Models also have a separate cap on how long a single answer can be.
Reasoning models use extra tokens
Models that think before answering spend tokens on that reasoning as well as on the reply you see, so leave room for both.
Why tokens decide what an API call costs
If you use an AI model through its API, you usually pay per million tokens. Input tokens, cached input and output tokens can each have a different price, and the rate depends on the model.
A lower price per token doesn't always mean a cheaper bill. A model that tokenizes your text differently, or writes longer answers, can cost more overall.
Coming next on this desk
- 01Why AI Transformation Is a Problem of GovernanceIN PRODUCTION
- 02Art Prompt Generator (Free Tool)IN PRODUCTION
- 03What Is a Prompt in AI?IN PRODUCTION