AI tokens are units of information that a model processes when reading or generating content. For text, a token may represent a word, part of a word, punctuation or other characters. Tokens help determine how much information a model can process and, for some services, how much a request costs.
Last updated: 29 November 2026
How do AI tokens work?
A tokenizer converts text into units that the model can process. Different models may use different tokenizers, so the same sentence can produce different token counts. Code, numbers, punctuation and different languages can also affect the count. A token is not reliably equal to a word or a fixed number of characters.
Input tokens vs output tokens
Input tokens represent the information supplied to the model, such as your prompt, conversation history, instructions and retrieved text. Output tokens represent generated material. Some services separately account for cached input, reasoning or other modalities. Check the provider’s documentation for the exact categories.
Tokens and context windows
A context window is the amount of material a model can handle in a request or interaction. Both supplied information and generated output may count towards its limits, depending on the service. A large context window does not guarantee that every detail is used accurately. Memory across conversations is a separate feature.
How token pricing works
Some APIs charge per million input and output tokens, with separate rates for different models or categories. As a hypothetical example, if input costs £2 per million tokens and output costs £8 per million, a request using 10,000 input tokens and 2,000 output tokens would cost £0.036 before other charges. These are illustrative rates, not a current price quote.
How to reduce unnecessary token usage
Send relevant excerpts rather than repeatedly including entire documents when appropriate. Keep reusable instructions concise, choose a suitable output length and use supported caching where it makes sense. Monitor usage in your provider’s dashboard. Do not remove important context solely to save a small amount of money.
Frequently asked questions
Are AI tokens the same as cryptocurrency tokens?
No. AI tokens are units of model input or output; cryptocurrency tokens are digital assets.
Do ChatGPT subscriptions charge separately for each token?
Consumer subscription terms differ from usage-based API billing. Check the specific plan, product limits and provider pricing rather than assuming API rates apply to a chat subscription.
Further reading
See OpenAI guide to tokens for technical background.
Related AI guides
AI glossary: artificial intelligence terms explained
What Is an LLM? Large Language Models Explained for Beginners