Last fall, back when I was still on the consulting side, a client called me in a panic. They had integrated an AI assistant into their customer support processes; during the pilot month everything was rosy and the bill was reasonable. Then they opened the system up to their entire customer base, and the model bill that arrived at the end of the month was exactly eight times what they had budgeted. Their first words were: "This isn't sustainable, we're shutting it down." They didn't. After three weeks of optimization work, they were running the same system, at the same quality, for a quarter of the old bill. What we did during that process is the subject of this post, because we've watched the same story play out again and again with different scenery.
The basic truth is this: an AI pilot is cheap, while a production system that scales is full of billing surprises. In a pilot you send fifty requests a day and nobody looks at the cost. In production you send fifty thousand requests a day, and every bit of waste that was harmless in the pilot comes back to you multiplied by a thousand. LLM costs are manageable, but only through architecture, not through negotiation.
Anatomy of an eightfold bill
First, let's clarify the mechanism. A token is the unit of measure for every piece the model reads and writes; your bill is roughly calculated on "tokens read + tokens written" (and tokens written are usually more expensive than tokens read; this detail will matter shortly).
At that client, we pulled out the items inflating the bill one by one, and the picture was a lesson in itself. With every request, a giant four-thousand-word system prompt was being sent again: all of the assistant's rules, sample dialogues, a product catalog summary, every single time. The entire conversation history was carried to the model with every request "just in case": all forty messages of a forty-message support thread, even when the user had only written "thanks." Data was being dumped on the model in raw form: the order object's entire JSON instead of the three relevant fields for an order query, the whole document instead of the relevant clause for a return policy question. And the final classic: even the simplest greeting went to the same, most expensive model as the most complex analysis request.

If you look closely, none of these is an "AI is expensive" problem. All of them are architectural laziness, and all of them can be fixed.
There's also a multiplier specific to 2026: agentic flows. A single user question can turn into ten or twenty chained calls behind the scenes to a model that calls tools, evaluates the result and retries if needed. Agent architectures accomplish tremendous things, but through a cost lens, every agent step is a separate line on the bill. Limiting the length of the chain, pruning intermediate results as you carry them forward, and asking at every step "should this step really go to the model, or can plain code handle it?" is the new cost discipline of the agent era. Having a model do deterministic work is like hammering nails with a calculator: it works, but it's expensive.
Five levers that bring the bill down
- Model tiering (cascade): Classify requests first; in our experience, close to 70% of traffic can be handled by a cheap, fast model, and only the genuinely hard ones escalate to the large model. On its own, this is usually the biggest win, and that was the case for that client, too.
- Prompt caching: Unchanging system instructions and fixed context become many times cheaper with providers' caching mechanisms. The prerequisite is a simple ordering: fixed block first, variable content after. Something as mundane as reordering a prompt can show up on the bill as a reduction measured in tens of percent.
- Context diet: Give the model not the data, but the relevant summary of the data. In RAG setups, sending the top 20 documents when the top 3 would do is both expensive and (this is the part many people miss) lowers answer quality; the model drowns in irrelevant context.
- Output discipline: Ask for structured, short output. The "explain in detail" habit multiplies output tokens, which are already the more expensive kind. Any system that asks for a classification and gets a paragraph back is burning money.
- Your own cache: For tasks that give the same answer to the same input (classification, summarization, translation), keep the result in your own cache. Asking the model the same question twice is like taking the same taxi ride twice and paying twice.
These five aren't alternatives to each other; they're layers. On that eightfold bill we applied four of them at once; the line items shrank one by one, and the total effect compounded.

The "How many lira a month does this feature burn?" test
Now for what I think is the truly critical part: without measurement, none of this lasts. Log the cost per request, broken down by feature, customer and model. Which screen, which automation, which customer segment burns what: you need to have this table in hand.
I suggest a simple test: if you can't answer the question "How many lira a month does this feature burn?" in 10 seconds, you're not optimizing, you're guessing. And costs managed by guesswork grow while everyone assumes they aren't growing. In the systems I've built, this visibility layer surfaced savings opportunities of 50-70% on average on its own within the very first month, because waste becomes indefensible the moment it becomes visible. We run the same discipline today in the assistant and agent flows on our platform. (My favorite example: at one client back then, a nightly batch job was regenerating a report nobody read, every night, with the most expensive model. Its monthly cost had approached a junior developer's salary. Nobody knew until logging was turned on.)
On top of visibility, buckle a seatbelt, too: monthly budget thresholds per feature and automatic alerts when a threshold is exceeded. The real pain of the eightfold bill wasn't the amount; it was that nobody noticed until the end of the month. With a threshold alert, the same problem would have been caught on day three, and the story would have been an ordinary maintenance note instead of a blog post.

Then there's the contract side: model prices and cache discounts vary significantly from provider to provider, and they change during the year. Rather than welding your architecture to a single model, abstracting the model layer so you can switch when prices change is a cost strategy in its own right in 2026.
Cheaper models won't save you
We often hear the objection: "Models get cheaper every year anyway, why not just wait?" Unit prices really are falling, but usage is growing faster. When you add a capability to an assistant, users use it more, and agentic flows chain dozens of model calls in response to a single question. The direction of the bill is a function of architecture, not unit price. A wasteful architecture is wasteful with a cheap model too; the disaster is just postponed. A disciplined architecture, by contrast, turns every price cut directly into profit; when a discount arrives, it's those same teams whose bills go down.
If your AI integration's bill is spiraling out of control as it grows, or you want to avoid these traps while you're still building it, start with an analysis that breaks down your usage and shows where the money is burned. In my experience, the analysis stage alone surfaces the first three actions that are enough to bring the bill down. Preventing the eightfold surprise before it happens is always cheaper than putting out the fire afterward. I love a good conversation about token economics; the contact page is open.