In plain English
A language model doesn't read whole words; it splits text into tokens — pieces of a few letters. In English one token is roughly four characters, while in Russian and Kazakh it is shorter, so text in these languages costs more and takes up more space in the context.
Tokens count the question, the answer and the instructions sent along with them. If the assistant gets a long knowledge base and the dialogue history every time, thousands of tokens go into a single answer.
How it works
Provider pricing lists a price per million tokens, with input and output priced differently: generating an answer usually costs more. More powerful models cost noticeably more than lightweight ones. The final cost of a dialogue is the sum of message length, the number of steps and the chosen model.
Usage can be reduced. You pick a cheaper model for simple questions, shorten the instructions, pass only the relevant fragments of the knowledge base into the request, cache repeated parts and limit the length of the dialogue history.
Why a business owner needs this
You need to know about tokens to calculate your monthly AI budget in advance. If you get a thousand dialogues a month, the cost is easy to estimate, but with a sudden traffic spike or a bot attack, expenses can jump. That's why limits are set.
The context size is also capped in tokens. Long contracts or correspondence have to be split into parts or compressed first, otherwise the model will "forget" the beginning.
Real-world example
An online store in Shymkent connected an assistant and was surprised by the bill in the very first month: the entire catalog was being sent with every request. After switching to selecting a few relevant product cards and using a lighter model for simple questions, costs fell several-fold with no loss in quality.
Common mistakes
- Sending the entire document with every request
- Using the most powerful model for simple tasks
- Not setting limits and not getting spending alerts
- Not accounting for the fact that Cyrillic takes more tokens
- Keeping an endless dialogue history