Anyone Can Build an AI Agent. But the Monthly Invoice That Follows Shows Who Built It.
AI Architecture / Cost / Opinion
· 9 min read
Author: Lucian Pampu
Everyone is an AI expert now. But between an optimised architecture and an improvised one sit cost differences of 3 to 60 times — monthly, indefinitely. What a demo never shows, and what to ask before you sign.
We are living through a strange moment. There have never been so many AI experts, and it has never been cheaper to become one.
You open an account, write a prompt, get a result that looks good. You repeat it a few times, learn which phrasings work, build a vocabulary. Two months later you have an updated profile and a service offering.
The uncomfortable part is not that people do this. The uncomfortable part is that it works — up to a very precise point.
It works in the demo. It works for the first few hundred runs. It stops working when the system reaches production, runs daily and starts generating a monthly invoice.
That is when the question nobody asked at the start finally arrives: why does this cost so much?
What a Demo Never Shows
A demo runs a handful of times, in front of a handful of people, on a handful of chosen examples.
A production system runs thousands of times a month, on real data, with retries, background jobs and cases nobody anticipated. Every one of those runs costs money.
This is where the fundamental difference appears between someone who knows how to ask a model and someone who knows how to build a system: token consumption is not proportional to answer quality. It is proportional to architecture.
Research on standard agentic workflows shows that between 50% and 99% of token usage is redundant. The waste does not sit in the model. It sits in poorly structured tool calls, system prompts resent in full at every step, and reasoning loops nobody bounded.
Someone who has never built a distributed system does not see those loops. Not because they are not intelligent, but because they have never had to pay for them before.
The Numbers Worth Knowing Before You Sign
This is where the discussion stops being a matter of opinion.
Prompt optimisation delivers 20% to 50% cost reduction. Architectural changes deliver 60% to 90%. The AWS research these figures rest on says so directly, and practitioners confirm it: teams spend weeks polishing prompt libraries while the architecture underneath quietly burns money that a few days of real engineering would eliminate.
Prompt caching alone can cut input token costs by up to 90%. An evaluation across three major providers measured reductions of 41% to 80% on agentic workloads. It is one of the simplest optimisations available — and one of the least used, because it requires understanding how a prompt is structured, not just what you write in it.
Shifting from a stochastic architecture to a deterministic one reduces operational costs by 15 to 60 times at scale. An agent in which the model is called at every step of every execution costs fundamentally differently from a system where the model is called only where it matters and the rest runs in code.
Between an optimised and an unoptimised pipeline sits a cost ratio of 3 to 7 times, and 60–80% of inference cost in enterprise deployments traces to prompt token volume.
So yes — 10 times more expensive is a reasonable estimate. In some cases, it is an optimistic one.
The context makes it more urgent: 68% of enterprises cite unpredictable compute costs as the primary barrier to scaling agent deployments, according to Gartner's 2026 AI infrastructure report. Not a shortage of ideas. The bill.
Four Places Money Leaks, That an Amateur Cannot See
1. Context resent in full on every call. System instructions, tool definitions, reference documentation — the same content, with every request, paid for again every time. One optimised project file cut consumption from 1,125 to 274 tokens per call. Same result, a quarter of the cost.
2. All traffic routed through the most powerful model. Classifying an email and analysing a 40-page contract do not need the same capability. Routing by task is an architectural decision that appears in no prompt.
3. Unbounded loops. Agentic systems introduced a failure mode that did not exist in single-turn calls: unbounded token consumption across multi-step reasoning loops. A per-task token budget is one line of code. Its absence can be a four-figure invoice.
4. Context stuffed "just in case." Anthropic documented context rot: as the number of tokens in a prompt grows, the model's recall accuracy degrades. Large contexts do not only cost more — they perform worse. Anyone who believes "more context means better answers" pays twice: once in money, once in quality.
Notice what all four have in common. None is a phrasing problem. All are design problems.
Why a Non-Engineer Cannot See This
It is not a matter of intelligence or effort. It is a matter of what you have built before.
An engineer who has scaled a system instinctively recognises a pattern repeating thousands of times a day, because they have paid for one before. They know what caching means, because they solved that class of problem ten years before LLMs existed. They know how to separate the deterministic part from the probabilistic one, because they have built systems where reliability mattered.
Someone who entered AI through the chat interface does not have that mental library. They see the model, not the system around it. And the real cost of an AI system does not sit in the model — it sits in everything surrounding it.
The irony of this era is that it has never been easier to produce something that looks like a solution, and never mattered more whether it holds at scale.
Five Questions to Ask Anyone Proposing an AI Implementation
You do not need to be technical to ask them. You only need to listen to the answer.
"How do you handle repeated context between calls?" If the answer does not contain the word caching or an equivalent, your cost will be several times higher than necessary.
"Which model runs on which type of task?" If the answer is one model for everything, you are paying top-tier rates for routine work.
"What token limit does one execution have, and what happens when it is exceeded?" If there is no precise answer, there is no limit.
"Which part of the flow runs in code and which part goes through the model?" If everything goes through the model, this is where the 15–60× difference lives.
"How will I see cost per process, monthly?" If you cannot see cost per document or per transaction, you can never know whether the system is worth it.
An engineer answers all five in minutes, without hesitation. Someone who learned AI from prompts will drift toward generalities.
What Working With Engineers Actually Means
At Visual AI Labs we build AI systems starting from the question most people only ask at the third invoice: what will this cost when it runs ten thousand times a month?
Architecture before prompt. We decide what runs in code and what goes through the model before writing the first instruction. The deterministic part stays in code, where it is cheap and predictable.
Caching and context management, designed in from the start — not added when the bill arrives.
Model routing, each task at the capability it needs, not the largest available.
Token budgets and per-execution limits, with alerts before thresholds, not after.
Model-agnostic architecture, so changing a provider is a configuration, not a refactor.
Cost per process, visible monthly. What a processed document costs, a resolved request, a transaction. Without that, you cannot know whether the system is making or costing you money.
Plus what belongs to safety rather than cost: technical access limits, a separate identity per agent, complete audit trails and escalation defined before launch.
We deliver fast, without replacing the systems that already work for you.
One Last Thought
We are not writing this to say others are incompetent. We are writing it because the difference between a well-built implementation and an improvised one does not show on launch day. It shows six months later, in a cost line that keeps climbing and that nobody can explain.
An AI system is, in the end, still a software system. The same rules apply that always applied: architecture decides cost, not syntax.
The good news is that it is almost always fixable. Most large bills are not inevitable — they are the result of design decisions that can be changed without users losing anything.
Write to us on the contact page with a short description of what runs and what it costs monthly. We will come back with an honest assessment of where the money leaks — and whether intervention is worth it.
Write to us on the contact page → →
No obligations. Including if the answer is "your system is fine."
Visual AI Labs — software development and AI integration agency. We build AI systems with architecture designed for cost at scale: caching, model routing, token budgets, deterministic–probabilistic separation and visible cost per process.
Sources: AWS, via AI cost optimization — why architecture beats prompt engineering (updated Sept. 2026); Gartner — 2026 AI infrastructure report; Anthropic — research on context rot; Glean — How to optimize token efficiency in agentic systems (2026); Stevens Institute — 2026 caching analysis; McKinsey — 2026 enterprise AI report