Ask most teams what an AI agent will cost to run and you'll get a number based on token pricing multiplied by expected usage. That number is almost always too low, often by a factor of two to twelve in our experience, because token cost is the easy, visible part of the bill. The expensive part is what happens around it.

Why the naive estimate is wrong

The naive calculation looks like: (input tokens + output tokens) × price per token × expected requests. That's a reasonable estimate for a single-turn chatbot answering one question per request. It badly underestimates an actual agentic system, because an agent rarely makes exactly one model call per user request.

What actually drives agent cost

A number worth knowing
In client engagements, the actual per-task cost of a production agentic workflow has landed anywhere from 2x to 12x the naive single-call token estimate, depending on how many tool calls and retries a typical task actually involves. That range is exactly why this needs real modeling, not a back-of-envelope multiply.

The estimation model we actually use

  1. Map the real task flow, not the ideal one. Walk through an actual representative task end to end: how many model calls does it realistically take, including tool calls, re-planning steps, and a reasonable retry rate based on tool reliability.
  2. Separate model tiers by task step. Not every step needs your most expensive model. Routing and simple classification steps often work fine on a smaller, cheaper model. Pricing each step at the model tier it actually needs, not a flat rate across the whole flow, usually cuts the estimate significantly.
  3. Model context growth explicitly. For multi-turn or long-running tasks, estimate token cost per turn as the conversation grows, not a flat per-turn average. Later turns in a long session can cost meaningfully more than early ones.
  4. Add a realistic retry and failure rate. Base it on the reliability of the tools and APIs the agent depends on, not on zero. Real systems have real failure rates, and retries cost real tokens.
  5. Price infrastructure separately from tokens. Vector database queries, embedding generation, logging and observability tooling, and hosting all have real costs that a pure token-price estimate leaves out entirely.
  6. Build in a buffer for usage patterns you haven't seen yet. Real users find edge cases and usage patterns a prototype's test set never covered. Budgeting for that discovery period, rather than assuming launch-day usage patterns hold forever, avoids an unpleasant surprise in month two.

What this looks like for a real engagement

During discovery, we build this cost model against the client's actual expected usage, not a generic assumption, before committing to a specific architecture. In more than one case, this has changed the technical approach entirely: switching a step from a large frontier model to a fine-tuned smaller model, restructuring a workflow to reduce redundant tool calls, or moving part of a mobile AI feature on-device specifically because the cloud-inference cost at real scale didn't work.

The goal isn't to minimize cost at all costs. It's to make sure the number you're planning around is the number you'll actually see once the system is handling real traffic, not the number from a spreadsheet that only accounted for the easy part of the bill.