Cost breakdownby Ahsan Ahmad

The hidden running costs of an AI agent: tokens, evals, monitoring and model deprecations

Summary

Beyond model tokens and hosting, an AI agent's running costs include evaluation runs on every change to prompts, documents or models; monitoring and logging; a few hours of maintenance a month; and a model migration whenever the provider retires the model it runs on. Anthropic, for example, gives at least 60 days' notice before retiring a model. In our worked example, an agent with a $340 monthly infrastructure bill costs about $1,013 a month once those are included, mostly in people's time. Budget infrastructure, upkeep and change as three separate lines, and agree who owns each before launch.

Why does an AI agent cost more to run than the token bill suggests?

Because the token bill is the only running cost that arrives as an invoice. The rest - re-running tests, watching for failures, updating documents and prompts, and moving to a new model when the old one is retired - turns up as people's time, spread across months, and is easy to leave out of a budget that was approved on the model provider's price list.

None of these costs is large on its own. Together, in the worked example below, they come to roughly 3 times the visible infrastructure bill. Knowing that before launch is the difference between a system that is budgeted properly and one that gets switched off in its first cost review.

What are the hidden running costs of an AI agent?

1. Tokens, but more of them than the estimate

The estimate usually assumes one model call per conversation at today's volume. In production, agents retry failed tool calls, re-read long context on every step, and get used more as they get better. Running cost scales with success: the agent that works is the one whose bill grows. Prompt caching and routing simple steps to a smaller model are the two biggest levers, and both are covered in our AI agent cost guide.

2. Evaluation runs

Every change to a prompt, a document set or a model should be checked against the evaluation set before it ships. Each run is a few hundred model calls, plus a grading model if answers are scored automatically. It is a small cost per run, and it is the one most often cut - which is how a change that broke a third of the answers reaches customers. How the set is built and run is in evaluating LLM output in production.

3. Monitoring and logging

You need to see every run: what the agent was asked, what it retrieved, which tools it called and what it cost. That means log storage, a tracing or observability tool, and alerts on error rates and cost spikes. Without it, the first sign of a problem is a customer, and the first sign of a cost problem is the invoice.

4. Maintenance time

Documents change and need re-indexing. Users ask questions nobody anticipated, and the hard ones need adding to the test set. Prompts need adjusting. Integrations change their APIs. This is a few hours a month for a stable agent, more in the first quarter, and it needs someone who understands how the system works.

5. Model deprecations

Model providers retire models on a schedule, and when a model is retired, requests to it fail. Anthropic, for example, commits to at least 60 days' notice before retiring a publicly released model, and announced on 30 September 2026 that Claude Sonnet 4.5 retires on 30 November 2026. Every agent will go through this. Moving to the replacement means re-running the evaluation, fixing what regressed and often rewriting prompts - see why your AI agent got worse after a model upgrade.

What does an AI agent really cost to run each month, with everything included?

Our cost guide works through an internal operations agent that answers around 8,000 questions a month for about $340 in model, embedding and hosting costs. Here is the same agent with the hidden costs added. The first three lines come from that example; the rest are assumptions, stated in the table, that you should replace with your own.

Monthly running cost of an internal AI agent including the costs that do not arrive as an invoice
CostBasisA month
Model tokensFrom the cost guide's worked example$210
EmbeddingsFrom the cost guide's worked example$25
Vector store and hostingFrom the cost guide's worked example$105
Evaluation runsAssumed 8 runs at $6 each$48
Monitoring and loggingAssumed tooling and log storage$50
MaintenanceAssumed 6 hours at $75$450
Model migrationAssumed 20 hours every 12 months, spread monthly$125
Total$1,013

On these assumptions, the infrastructure bill is about $340 and the real cost is about $1,013. Most of the difference is people's time, which is why it rarely shows up in the original business case. Against the roughly 40 hours a month of staff time the agent in the cost guide replaced, it still pays for itself comfortably - but that is a conclusion you want to reach with the full number, not the partial one.

How do you keep the hidden running costs of an AI agent down?

Most of these costs fall sharply when the system is built to expect them rather than discovering them later.

  • Cache the stable parts of every prompt and route easy steps to a smaller model. These are architecture decisions, cheapest to make in week two.
  • Automate the evaluation run so it costs a few dollars and no engineer time, and run it on every change.
  • Log tokens and cost per step from day one, with an alert when cost per conversation moves.
  • Re-index documents automatically when the source changes, and remove the versions they replace.
  • Pin the model version and keep a note of its retirement date, so a migration is planned rather than forced.
  • Keep prompts in version control and the model behind a thin interface of your own, so switching is a test run, not a rewrite.

Choosing the provider matters less than these. Our comparison of Claude, GPT and Gemini for AI agents shows mid-tier list prices are close enough that architecture moves the bill more than the vendor does.

How should you budget for running an AI agent?

Budget three lines, not one, and agree who owns each before launch.

  • Infrastructure - model, embeddings, hosting, monitoring. Scales with usage. Set an alert at the level that would surprise you.
  • Upkeep - evaluation runs and a fixed number of maintenance hours a month, from your team or a support arrangement with whoever built it.
  • Change - a model migration at least once a year, budgeted as a small project with its own evaluation and rollback plan.

If you are comparing this against a SaaS product that charges per resolution, include all three lines on the build side. Our three-year comparison of custom and SaaS agents does exactly that.

Who should carry the hidden running costs: you, the builder or a support plan?

Whoever can do the work cheapest and will still be there next year. There are three workable arrangements, and the wrong one is no arrangement at all - the default when a build contract ends at handover.

Your own team

Best when you have engineers who were involved in the build and will keep the agent as part of their remit. It needs a recorded handover, runbooks and the evaluation set in your repositories, so the knowledge does not leave with the builder.

A support arrangement with the builder

Best when you do not have AI engineering in-house. Agree a fixed number of hours a month, what they cover - re-indexing, evaluation runs, prompt fixes, model migrations - and how quickly someone responds when it breaks. A fixed monthly figure is easier to budget than ad-hoc invoices, and it makes the upkeep line visible.

An embedded engineer

Best when AI is becoming a regular part of the product and the agent is one of several systems. An engineer working in your team covers upkeep for all of them, alongside new work. Our dedicated AI engineers work this way.

Whichever you choose, write it down before launch. An agent nobody is paid to maintain is maintained by nobody, and degrades quietly until it is switched off.

What are the hidden running costs of an AI agent?

Beyond tokens and hosting, an AI agent costs evaluation runs on every change, monitoring and logging, a few hours of maintenance a month, and a model migration whenever the provider retires the model it runs on. In our worked example, those take a $340 monthly infrastructure bill to about $1,013. Budget for infrastructure, upkeep and change as three separate lines, and build so the last two are cheap.

For what an agent costs to build in the first place, see what AI agents actually cost, or AI agent development for what we include.

Tell us what you are building

A free strategy session: what is buildable, what it costs, what we would not attempt.

Book a call

Pick a time for a strategy call

It goes straight into our calendar, with no form to fill in first.