When companies start integrating artificial intelligence into their own systems, it rarely takes long before they encounter the concept of tokens. Whether you use OpenAI (ChatGPT), Google (Gemini), or Anthropic (Claude) via an API, tokens are the currency you pay with. Not having a token management strategy can quickly cause the IT budget to spiral out of control.
What is an AI token?
A token is the fundamental building block that a language model uses to read and generate text. It can be likened to syllables or parts of words. A good rule of thumb is that 1 token corresponds to approximately 0.75 words in English, but in Swedish, it often takes slightly more tokens per word because the language is more complex for the models. You always pay for both input (what you send to the AI) and output (the response you receive).
Which companies are affected by token costs?
If your employees simply log into a ready-made web service like ChatGPT Plus or Copilot for a fixed monthly fee, you are rarely affected by this directly. Token costs primarily affect:
- In-house developed systems and API integrations: Companies building their own tools, for example, a function that automatically summarizes incoming support emails.
- Customer service and chatbots: If you have an AI bot on your website with high traffic, you pay for every question the customer asks and every answer the bot provides.
- Analysis of large datasets: If you send hundreds of pages of contracts or financial reports to the AI for review (so-called large context windows), each document consumes enormous amounts of tokens.
How to work correctly to reduce expenses
Halving your AI costs without losing performance is entirely possible. Here are the most effective strategies from the developer world:
- Choose the right model size: Do not use the most expensive model (e.g., GPT-4o or Gemini Ultra) for simple tasks. Sorting data or flagging spam can be handled by smaller and extremely cheap models (like GPT-4o-mini or Gemini Flash) just as well, at a fraction of the price.
- RAG (Retrieval-Augmented Generation): Instead of attaching the entire company handbook every time an employee asks a question, use a search function that first extracts the relevant paragraph and only sends that short paragraph to the AI. This saves enormous amounts of input tokens.
- Trim your prompts: A system instruction that is concise and precise costs less every time it is run than a long, rambling description.
- Caching: If the same question is asked frequently (e.g., "What are your opening hours?" to a bot), save the generated answer locally. Then you don't need to call the AI API at all for the next customer.
The Alternatives: How to avoid paying per token
Do you always have to pay per used token? No. Depending on your needs, there are two strong paths around the variable cost:
1.Fixed licenses for end users
If your primary need is for staff to get AI support in their daily work, Enterprise licenses are the way forward. Tools like Microsoft Copilot for Microsoft 365 or Google Gemini Enterprise cost a fixed amount per user per month. This way, you don't have to worry about variable API costs and get a predictable expense.
2. Local Open Source models
For tech-intensive companies that develop their own systems, open models (Open Source) like Meta's Llama 3 or the French Mistral are very attractive. You can download these for free and run them on your own servers. You pay absolutely zero in token fees, regardless of how much data you process. The cost is instead shifted to hardware and operations, as you need your own servers with powerful graphics cards (GPUs) to run them.
Does it feel overwhelming to build an AI strategy that is both powerful and cost-effective? Reach out to me, and I will help you choose the right architecture and models for your specific systems.