Say a feature ships in March and everyone is pleased. In June, finance asks why the model line has grown many times over while revenue has not moved, and nobody in the room can say which product surface is responsible.

That conversation is avoidable, but only before launch.

Budget the workflow, not the call

Per-token pricing invites you to reason about one call, but users never experience one call. They experience a workflow that fans out into a retrieval query, three model calls, two tool round trips and a re-ask when validation fails.

So the unit is cost per successful task. The word successful matters, because a run that ends in a retry loop still burns tokens, and a metric that counts only completions will understate the real number. Latency works the same way, since the p95 on your model call is not the number the user feels. Every step in the workflow is another chance to land in some component's tail, so measure p95 end to end.

Context discipline is the biggest lever left in any prompt nobody has audited since launch. Prompts accumulate an example here, a policy paragraph there, and full conversation history because summarising was harder. Nobody deletes anything, because deletion might hurt quality and quality is hard to measure. Six months later, half the spend is re-sending context that changes no answers.

Set the target per workflow

Not every path deserves the same budget. Decide the tier explicitly and write it down:

Workflow classLatency targetCost ceilingDefault approach
Inline assistunder 300 msfractions of a centsmall model, hard cache, no tools
Interactive answer2 to 5 s, streamedcentsmid model, retrieval, capped tool loop
Deep taskseconds to minutestens of centsstrong model, show progress, checkpoint
Batch or offlinehourslowest per unitbatch API, off-peak, retry cheaply

The numbers are yours to set, but choose them before shipping, so a regression becomes a visible breach rather than a drift nobody owns.

The levers, in the order I reach for them

Route first. Wherever low-risk requests make up the bulk of traffic, they do not need your best model. Classify the request, send easy ones down the cheap path, reserve the expensive path for what earns it. The router adds a hop of latency and fails quietly, sending hard requests down the cheap path, so evaluate it on the hard cases.

Cache second. Exact-match caching costs almost nothing and pays off wherever requests repeat, provided the key includes the tenant and the caller's permissions; without them it will serve one user's answer to another. Semantic caching helps too, but it has a real failure mode in which a near-miss returns a confidently wrong neighbour. Give it its own eval.

Batch third, wherever latency allows. Then degrade deliberately. Under load, a shorter answer from a smaller model beats a queue timeout, and you should decide which surfaces may degrade before you are inside the incident. Capacity planning is the unglamorous work of checking provider rate limits, queue depth and behaviour at three times normal load. Test the queue and its retries before your users do. Without backoff, jitter and a cap, a provider slowdown becomes a retry storm.

Attribution, or that June meeting

Tag every call with feature, tenant, model and outcome. Report spend along those dimensions weekly, to the team that can actually change it. Cost regressions should reach the same people quality regressions do.

Split last month's model invoice by feature and tenant using only the tags you have today. Whatever lands in "unattributed" is the spend nobody in that June meeting could explain.

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Sep 15, 2026

Short mental models: one idea, why it matters, what to do about it.