Models read and generate text in tokens, and pricing and context limits are measured in them. Estimating token counts is how you forecast the running cost of an LLM feature.
Token in practice
Tokens make AI running costs predictable: estimate the typical input and output length of a task, multiply by expected volume and the provider's price per million tokens, and you have a monthly forecast. Trimming prompts, retrieving fewer but better passages and using smaller models for simple steps are the usual ways to bring the figure down.
Guides that cover this
- GPT-6 Reaches Every ChatGPT User: What It Means for UK Businesses
- Azure OpenAI Service: The Complete Guide for UK Enterprises
- Building LLM Applications: Lessons from Production Deployments
Related terms
- Context Window
- The maximum amount of text a model can consider at once, measured in tokens.
- LLM (Large Language Model)
- A model trained on large volumes of text that predicts and generates language.
- Embedding
- A numeric representation of text that captures its meaning for search and comparison.
- Prompt Engineering
- Systematically designing, testing and versioning the instructions given to a model.