How to control AI cost (token usage)
Understand what tokens are and apply best practices so your AI agent stays useful without overspending.
Watch this step in the video · AI usage and credits
AI is billed by usage: every message the AI reads and writes is measured in tokens. You don't need to know the model internally; you do want to understand what raises or lowers that usage to keep cost under control.
What tokens are
A token is a small unit of text (roughly a few letters or a short word). Every conversation consumes tokens when reading context (instructions, knowledge base, history) and when generating the reply.
What raises usage
- Very long or repetitive instructions.
- A huge, messy knowledge base.
- Very long conversations with lots of history.
- Needlessly long replies.
Best practices to reduce cost
- Concise instructions: say what's needed, no filler.
- Clean knowledge base: remove the obsolete and duplicated.
- To-the-point replies: ask the AI to be clear and brief.
- Timely handoff: if a person solves it better, hand off instead of dragging the chat.
Monitor usage
- Review your AI usage dashboard regularly.
- Identify the agents or channels that consume the most.
- Compare spend with value: an AI that closes sales justifies its cost.
Balance quality and cost
It's not about spending the least, but spending well.
- Too much trimming can produce poor answers.
- Too much information can raise cost without improving results.
- Find the point where the AI solves well at the lowest reasonable cost.
Final tip: view usage as an investment, not an expense. If every AI conversation saves your team time or generates sales, a well-used token pays for itself.
Related articles
-
Create your first AI agent
Learn what an AI agent does in Omnifox, how to give it instructions, connect it to a channel and test it in the sandbox before it talks to real customers.
-
How to write good instructions for your AI agent
Learn how to write clear instructions so your AI agent replies with the right tone, limits and actions.
-
AI Agents complete guide
AI Agents in depth, in 65 chapters: creating, instructions, tools, knowledge, behavior, tester, inbox, workflows, analytics and usage, with every setting explained.
-
Connect your AI agent to WhatsApp, Instagram, Messenger and web chat
An agent with no channels serves nobody. Connect it to your WhatsApp, Instagram, Messenger or website chat from the Connections section, then switch it on so it starts replying.
-
Start here: AI Agents in 8 minutes
AI Agents essentials in a short video: creating an agent, its instructions, tools, knowledge, channels, the tester, hours and handing over to a person.