· Prakash Natarajan · Reliability · 15 min read

How Much Does an AI Agent Cost to Run?

AI agent cost guides mostly answer what it costs to build one. Here is what it actually costs to run one: the token math, a five-model worked example, and the per-tenant number a B2B2C builder actually needs.

A production AI agent typically costs between half a cent and fifteen cents per resolved conversation in direct model spend, depending on the model tier, how many model calls a resolution actually needs, and how much context each call carries forward. That is the raw token bill, not the full picture: a support copilot built on a frontier model with eight calls per conversation and no caching can cost twenty times what a routed, cached setup costs for the identical outcome. The number that actually matters for a B2B2C AI SaaS product isn’t total monthly spend, it’s cost per resolution broken out by tenant, because that is the figure you eventually have to defend to a paying customer. Everything below works from real, current per-token pricing, so you can run the same math against your own traces instead of trusting a generic benchmark.

What Actually Drives AI Agent Cost?

An agent costs more than a chatbot because one resolved conversation usually means several model calls stacked on top of each other, not one request and one reply. Four mechanisms multiply the token bill past what a plain chat turn of similar length would cost. Each step in a multi-step task carries forward the full accumulated context of every step before it, not just its own output, so a four-step resolution doesn’t cost four times a single call, it costs more than that because step four is paying for the context of steps one through three as well. A tool result, a retrieved document, or a database row returned mid-conversation becomes input tokens on every subsequent call for the rest of that conversation, so context keeps growing even when the person on the other end has said almost nothing new. Retries and dead ends add a full extra round trip the user never sees: a tool call that returns an error, an ambiguous match, or a result the agent has to re-request adds real tokens with nothing resolved to show for it. And anything resembling a multi-agent setup multiplies cost further, because each subagent re-establishes its own context rather than sharing the lead agent’s.

Anthropic’s own published research on the multi-agent system behind its research product found a lead agent coordinating several subagents used roughly fifteen times the tokens of a single chat turn for the same underlying task, and that fifteen-times number is exactly why the pattern is worth reaching for only once a single agent, with tools added first, has genuinely hit a limit a better tool description can’t fix. This site covers that decision in more depth in picking a multi-agent architecture, including the four patterns teams actually ship and what each one costs relative to the others. None of these four mechanisms are exotic on their own. They are just invisible in a demo, because a demo is usually one clean request and one clean response, and production traffic almost never looks like that once real customers start using it.

How Do You Calculate Cost Per Resolution?

Cost per resolution is the model spend behind one finished conversation, and it comes from three numbers you can pull straight from your own traces: the input and output tokens a typical resolved conversation uses, the price per million tokens for whichever model handled each call, and the number of model calls that conversation actually took. The formula itself is plain arithmetic: take the input tokens for a call, multiply by that model’s input price, add the output tokens multiplied by the output price, then sum that across every call in the conversation, plus any flat per-call cost from a retrieval or tool API that sits outside the model bill entirely.

A realistic support copilot resolving a ticket end to end, including a trace lookup, a knowledge-base retrieval, a drafted reply, and a verification pass before the reply goes out, lands around eighteen thousand input tokens and twenty-two hundred output tokens by the time it closes, because every one of those four steps carries the accumulated conversation forward as input per the compounding effect described above. Here is what that same eighteen-thousand-token conversation costs across five current models, at each provider’s own published per-token API rate:

ModelInput $/1M tokensOutput $/1M tokensCost per resolutionCost per 1,000 resolutions
Gemini 3.5 Flash-Lite$0.30$2.50$0.0109$10.90
GPT-5.6 Luna$0.20$1.20$0.0062$6.20
Claude Haiku 4.5$1.00$5.00$0.0290$29.00
Claude Sonnet 5$3.00$15.00$0.0870$87.00
Claude Opus 5$5.00$25.00$0.1450$145.00

The twenty-three-times gap between the cheapest row and the most expensive row isn’t a rounding error. It’s the single biggest lever most teams have before they touch anything else, because the model tier a step gets routed to usually matters more than any other individual decision in this whole calculation. A team that routes every step through its most capable model by default is paying frontier pricing for work a smaller model handles just as well, a classification step, a formatting pass, a yes-or-no tool decision, while a team that routes by step difficulty pays premium pricing only on the one step that actually needs it. OpenRouter’s pricing is one place this routing decision turns into a real architectural choice instead of a hardcoded model string buried in a config file.

Why Does Multi-Tenant Attribution Change the Math?

The calculation above answers what an agent costs in total, and that total isn’t the number a B2B2C AI SaaS builder actually needs, because an aggregate figure hides which customer is driving it. Cost per resolution only becomes useful once it’s broken out per tenant, because the same agent can cost nine cents per resolution for one customer running short, well-scoped conversations and thirty cents per resolution for another customer whose conversations run long and retry often. Averaging the two tells you nothing true about either one, and billing both customers off that blended average means you’re quietly subsidizing the expensive tenant with the cheap one’s margin.

Getting that breakdown requires tagging every model call with the tenant’s identity at the point the call is made, not reconstructing it after the fact from logs that were never designed to answer the question. A shared queue, a shared cache, or a shared embedding index that doesn’t carry tenant identity through every hop makes accurate per-tenant cost attribution close to impossible once call volume gets real, because by the time you’re trying to reconstruct it, the context that would have told you which tenant a given call belonged to is already gone. This is the same boundary tenant isolation for AI agents covers from the data and memory side, and it applies just as directly to the cost ledger: every span, every tool call, and every retry needs the tenant identity attached from the first request, or the number you eventually show a customer is a guess dressed up as a fact. Generic cost guides treat agent spend as one flat monthly bill for the whole product, and that framing only makes sense for a team running an agent for its own internal use. It falls apart the moment the same agent is billing dozens of separate paying customers for what looks, from the outside, like one shared product.

How Do You Cut AI Agent Costs Without Hurting Quality?

Cutting agent cost without hurting quality comes down to five changes, roughly in order of how much each one typically saves. Route each step to the cheapest model that can still do that step correctly instead of running every step through one model by default. Cache repeated context with prompt caching, which Anthropic prices a cached read at roughly one-tenth the cost of a fresh read once a prefix has already been written to cache, so a system prompt or a retrieved document reused across several calls in the same conversation gets dramatically cheaper after the first read pays the small write premium. Truncate tool results before they go back into context instead of passing the full raw response forward on every subsequent call, since most of a large tool result is never read again after the step that needed it. Set an explicit step cap per conversation so an agent stuck retrying a failed tool call can’t quietly run twenty rounds before giving up, turning one failed resolution into twenty times the cost of a normal one. And batch anything that doesn’t need an interactive response, overnight enrichment jobs or bulk classification, in a way that tolerates slower, cheaper processing instead of paying a real-time premium nothing in that workflow actually needs.

None of these five require giving anything up on quality. A well-scoped routing policy paired with a working cache layer typically cuts thirty to fifty percent off total spend on a workload that was previously running everything through one model with no caching, while the step that still needs the stronger model keeps getting it, unchanged. The mistake to avoid is cutting cost by weakening the step that actually needs the capable model, almost always the final verification pass before a reply reaches a customer, because what that cuts in spend is small next to what one wrong resolution costs in trust once a customer catches it.

How Do You Turn Raw Spend Into a Number Customers Trust?

None of the math above matters to your own customer unless it gets turned into a number they can see and trust, and that conversion is the step most cost guides skip entirely, because they’re written for a team watching its own internal bill rather than for a platform whose own customers are asking whether the agent is actually worth what they’re paying for it. The conversion is cost per resolution divided into the value it created, most directly expressed as deflection rate, the share of conversations an agent resolves without a human, paired with the dollar cost behind each one. That pairing shows a customer both halves of the trade at once, instead of a deflection percentage with no cost attached to it or a cost number with no outcome attached to explain it.

Showing that pairing on a customer-facing dashboard, scoped to that one customer’s own traffic and nobody else’s, is a meaningfully different engineering problem than reporting the same figure to your own team internally. A customer-facing number has to survive an audit the way an internal metric rarely gets asked to, and it needs the same per-tenant attribution from the section above sitting underneath it, or the number won’t hold up the first time a customer asks exactly how it was calculated. Customer-facing analytics covers what belongs on that view and what stays internal to your own team. AiAgRe is built around exactly this handoff, tracing every model call with tenant identity attached from the first request, so the cost-per-resolution number that shows up on a customer’s own dashboard is the same number your trace data already proves, not a separately reconstructed estimate built after the fact to look good in a sales deck.

Treat Cost Per Resolution as a Product Metric, Not a Line Item

The real answer to how much an AI agent costs to run is never one number. It’s a formula your own traces can answer today: your model mix, your calls per resolution, and a per-tenant breakdown, run through the token math above against your own workload instead of a generic support ticket. Teams that only ever look at the total monthly model bill tend to optimize the wrong thing, trimming a feature or downgrading a model across the board because the aggregate number looked high, when the real driver was one noisy tenant or one unbounded retry loop quietly pulling the whole average up behind the scenes.

Pull your own numbers this week: total model spend, resolved conversations, and a rough split by tenant if you already have the tagging in place to get one. That exercise alone usually surfaces the real cost driver faster than any industry benchmark table, including the one further up this page, because your workload’s actual shape, not a generic support ticket someone else wrote about, is the only thing that determines what your agent genuinely costs to run.

Related reading: multi-agent system architecture covers the token multiplier behind coordinating more than one agent, deflection rate covers the outcome side of the cost-per-resolution pairing, tenant isolation for AI agents covers the data boundary per-tenant cost attribution depends on, customer-facing analytics covers what belongs on a customer’s own dashboard, and escalation rate for AI agents covers the related metric for conversations that cost money without ever actually resolving. See OpenRouter pricing for how routing across model providers fits into this picture in practice.

Frequently asked questions

How much does an AI agent cost per month?

Most teams land somewhere between a few hundred dollars and several thousand dollars a month in direct model spend, depending on resolution volume and which model tier handles most of the work. A copilot resolving ten thousand conversations a month at nine cents per resolution runs about nine hundred dollars in model spend alone, before any compute, retrieval, or tool cost that sits outside the model bill.

How much does an AI agent cost per conversation?

A single resolved conversation typically costs between half a cent and fifteen cents in direct model spend, depending on the model tier and the number of model calls that conversation needs to close. The worked example earlier on this page shows that exact range across five current models for the same eighteen-thousand-token conversation.

Why do AI agents cost more than a simple chatbot?

An agent chains several model calls together to reach one resolved conversation, and each call carries forward the accumulated context of every call before it, while a simple chatbot answers once with no accumulated context to carry. That compounding is what pushes a four to fifteen times multiplier onto agent workloads compared with a single chat turn of similar length.

Does AI agent cost include the model provider’s own fees?

Yes. The per-token prices referenced throughout this page are each model provider’s own published API rates, not a marked-up resale price. Your actual bill also includes anything outside the model call itself, a paid search API, a vector database, or hosting for your own orchestration layer, none of which this page’s token math covers.

How do you track AI agent cost per customer in a multi-tenant product?

Tag every model call, tool call, and retry with the tenant’s identity at the point the call is made, then sum spend and resolved conversations by that tag to get a true per-tenant cost per resolution. Reconstructing the breakdown after the fact from logs that never carried tenant identity in the first place is close to impossible once call volume gets real.

What’s a realistic AI agent cost benchmark for a support copilot?

For a support copilot handling an end-to-end resolution with a trace lookup, a knowledge retrieval, a drafted reply, and a verification pass, expect somewhere between half a cent and fifteen cents per resolution depending on model tier. That means a thousand resolved conversations land between roughly six dollars and one hundred fifty dollars in direct model spend before any of the optimizations covered above.

Back to Blog