By Alfie Lambert · · 9 min read
Your AI bill is a knowledge problem
If you hired a temp and made them read every email in every inbox, and pore through every filing cabinet in the building before answering each question, you'd want a word with whoever designed that process.
You'd be paying for hours and hours of reading to get one line of answer. And by the fortieth cabinet, they'd be tired enough to give you the wrong line.
That's roughly how a lot of companies run their AI agents today. My co-founder Adil put it bluntly on a client call recently: most teams just hand the AI the entire SharePoint, the inbox and every call transcript, and tell it to figure it out.
For the most part, it works - but it also explains a lot of AI bills. And if your AI token costs are spiralling right now, it might be what’s happening to you.
Why AI bills keep rising when tokens keep getting cheaper
The price of a token has been in free fall. Andreessen Horowitz calls it LLMflation: for the same level of model performance, inference costs have been dropping about 10x a year (faster than broadband ever did!).
The bills went the other way. Average monthly token spend across Ramp's customers grew 13x from January 2025. Gartner expects AI inference costs per agentic workflow to rise more than fivefold through 2028, because an agent reasoning its way through a multistep task burns far more tokens than a chatbot answering one question.
The worst part is most of this spending is hard to justify. Accenture found that less than one dollar in five of enterprise token spend can be traced to a quantified business outcome.
So the CFO conversation around AI spending has changed. It used to be "is AI worth it?" Now it's "why is this line growing faster than anything else in the budget, and who's spending it?"
Where your agents' tokens actually go
On pay-per-use APIs you pay for the tokens you send on every call. An agent working through a task makes a lot of calls, and it sends its working context each time. Caching makes the repeated bits cheaper, but they still count.
Look at where that context comes from and four leaks show up.
1. Reading everything to find one thing
Give an agent access to everything and it has to search, open, skim and discard its way to the answer. Every document it opens and rejects still goes through the model, and you pay for it.
This is the filing cabinet problem. The agent isn't being wasteful on purpose. It has no idea where anything lives, so reading is the only way it can find out.
2. Instructions loaded before work starts
Every tool you connect to an agent comes with a written description, and many setups load all of them into context before the agent reads your question.
Anthropic's engineers have written about this. In one of their examples, a task took 150,000 tokens, which fell to about 2,000 once the agent loaded only the tools it needed and filtered data before it reached the model. And yes that's their example, on their setup - it's not an Oiya number. But the principle behind it holds true, right? Let the agent discover what it needs as it goes, instead of loading everything up front. Connect a few busy apps without doing that and you're paying for tens of thousands of tokens of instructions before any work actually happens. Again, if we were doing this with employees, people would be losing their minds.
3. Context that only ever grows
Teams keep shared instruction files and notes for their agents. Great. Agents add to them. Great - learning as we go is a good thing. But, nobody removes anything. Not so great.
Every agent that reads that file afterwards pays for all of it, every time. Telling the agent to "keep it concise" doesn't work, because instructions are advice, and an agent trying to finish a task will happily ignore advice. Adil’s phrase for it is that agents will “cheat”. Which is not as sinister as it sounds, but at its core an agent is built to be helpful and get your task done. When a rule in its instructions gets in the way of that… the task always wins.
4. Reconciling five versions of the truth
This is the really expensive one that (almost) nobody measures.
Go and ask your agent what your refund policy is. Maybe it finds the 2023 policy, the updated policy, a Slack thread where someone agreed an exception, and a customer email quoting the old terms. Now it has to read all four and spend time and tokens reasoning about which one wins.
Then the next agent asks the same question and does it all again. Sometimes it reaches a different conclusion, which is a different and bigger problem. We call that one knowledge divergence. Which, you guessed it, costs tokens!
What the usual fixes do, and what they don't
There's a standard toolkit for cutting AI costs and it looks like this:
Cheaper models and routing. Send simple tasks to small, cheap models and save the expensive ones for hard reasoning. This works well.
Prompt caching. If the same big block of context gets sent again and again, providers will charge less for the repeat. Also worth doing.
Budgets and metering. Track spend per team, per project, per agent. You can't manage what you can't see, and plenty of companies are now putting AI on its own budget line.
All three are worth doing. Routing can even cut tokens, since some models reason more economically than others. Good stuff, but not quite job done.
What none of these fixes actually change is how much your agents have to read to find an answer. If an agent has to open forty documents to answer a question, a cheaper model just opens forty documents more cheaply.
Going back to our opening analogy, we’ve negotiated a better hourly rate for our temp but we’re still making them read every filing cabinet.
Fix the knowledge and the bill follows
A big driver of how many tokens an agent needs is how easy it is to find the right answer, and how sure it can be that the answer is right.
That's a knowledge problem and knowledge problems are what Oiya is built to fix. Here's how each leak closes:
Start from a map, not a search
A knowledge layer gives every agent somewhere to start. It goes there first, sees what exists and where it lives, and then opens only what it needs.
Adil compares it to a well-organised library rather than a pile of boxes. You check the catalogue, walk to the right shelf, and take down one book, you don’t read the building.
Keep the interface small
Oiya gives agents a small, familiar way to look around, instead of dozens of tools they have to read about first. The agent spends its tokens on your question, not on working out how to use the system.
Put limits on what grows
Shared context gets hard limits. If an agent tries to write past the limit, the write is blocked and the agent has to tighten it, split it or point to something else. Advice can be ignored, but a blocked write can't.
Agree the answer once
When there's an agreed version of the refund policy, every agent reads that one and moves on. Nobody reconciles four documents, and agents are far less likely to disagree with each other. When the policy changes, it changes in one place, for every agent.
Keep the agreed answer agreed
The hard part isn't writing down the refund policy once. It's what happens in March, when someone agrees an exception on Slack and the policy is tweaked.
A knowledge layer notices that, keeps track of where each piece of knowledge came from, and lets the person who owns the policy actually review the change before every agent starts using it. Otherwise you've written one more document that will go out of date, and you're back to four versions of the truth.
Cheaper and better are the same fix
A leaner context is cheaper and gives the model less to wade through. Researchers have shown that models struggle to use information buried in the middle of a long context, even when the right answer is in there.
Give an agent four conflicting documents and a pile of irrelevant ones, and you're asking it to find the needle and then pick the right needle. Give it the one agreed answer and there's far less to get wrong.
So when someone asks whether this is a cost project or a quality project, the honest answer is both. The tokens you stop wasting are mostly the ones that were making answers worse.
Is your AI bill a knowledge problem?
You can check this in an afternoon. Pull up a few real agent traces and ask:
- How many tokens get used before the agent does anything useful?
- How many documents does it open to answer one question, and how many of those end up in the answer?
- How big are your shared instruction files now compared with three months ago?
- Ask two agents the same policy question. Do they agree?
- When a policy changes, how many places does someone have to update?
If the answers are "lots", "lots", "much bigger", "not always" and "I'm not sure", your bill is a knowledge problem. A cheaper model will take the edge off, but it won't fix it.
Back to the temp
The fix for the temp was not a cheaper temp. It was a filing system, someone who knew where things were, and one up-to-date copy of the rules. The mad thing is, we know this when it comes to working with humans. It’s no different for agents.
Get this right and you stop paying for reading nobody needed, the answers get more consistent, and you have fewer uncomfortable questions to answer about your rocketing AI token spend.
If your AI spend is climbing and nobody can quite say why, let's talk. We'll look at where your tokens go.
FAQ
Why are AI token costs rising when token prices are falling?
Because usage is rising faster than prices are falling. AI agents run multistep tasks and send large amounts of context on every call, so they use far more tokens than chatbots answering single questions.
How do I reduce LLM token costs?
Start with the standard fixes: route simple tasks to cheaper models, use prompt caching, and meter spend by team and agent. Then cut how many tokens each task needs by organising your knowledge so agents can find the right answer without reading everything.
What is context bloat?
Context bloat is when the instructions, notes and documents sent to an AI model keep growing over time. Every call pays for the extra tokens, and answers get worse as the model has more irrelevant material to work through.
How can AI agents use fewer tokens?
Let them find what they need instead of loading everything up front. Give agents a map of where knowledge lives, load tools only when a task needs them, put hard limits on shared context that only ever grows, and keep one agreed version of important answers so agents don't reconcile conflicting documents on every call.
Does prompt caching solve AI token costs?
It helps. Caching makes repeated context cheaper, but your agents still process it. It doesn't reduce how much context an agent needs to find an answer, so it works best alongside better-organised knowledge.
What is a knowledge layer for AI?
A knowledge layer is a shared, organised source of company knowledge that every AI tool reads from. It tells agents where things live, who can see them and which version is agreed, so they read less and answer more consistently.
Related reading
- Enterprise AI search
Why finding information is not the same as agreeing what it says.
- Private AI for business
Why a private LLM is only half the answer.
- Company knowledge layer for AI agents
Give every agent shared, governed company knowledge.