ENGINEERING · OPERATIONS

Running costs at scale

What a working system costs per month at real volume, measured per team, with limits that hold.

22 August 2026·6 min read·By Agile Labs

What does a working system actually cost?

The question has no general answer, which is why vendor pricing pages are unhelpful. It has a specific answer per system, and the unit is one completed piece of work: one answer returned, one document processed, one case triaged.

That figure is measurable from the first week of a pilot. Multiply it by real volume and the monthly cost stops being a projection.

Four things drive the bill

DriverWhat moves itWhat holds it
Context lengthPassages retrieved per question, conversation historyReranking, and a cap on passages passed
Turns per taskAgents that reason in loopsA step limit per conversation
Model choiceRouting every request to the strongest modelRouting by task, measured on the graded set
RetriesFailures that re-run the whole callA retry budget, and idempotency

Context length is the one most often underestimated, because each turn in an agent conversation carries the accumulated context forward. Cost per turn therefore rises as the conversation lengthens, which is why an unproductive exchange is more expensive than a productive one of the same length.

“Cost per turn rises as the conversation lengthens. An unproductive exchange costs more than a productive one.”

on why turn limits are a cost control

Who is the bill attributed to?

Without cost attribution there is one number for the organisation, and no way to answer whether a use is worth its cost. With it there is a figure per team, per feature and per workflow, and the conversation changes from “AI is expensive” to “this workflow costs eleven hundred a month and saves an adviser four hours a week”.

Attribution is a build decision, and a cheap one if taken early. Every call carries an identity through the gateway, and the gateway records which team, which feature and which model answered.

Limits that hold

A monthly ceiling notices after the money is gone. What catches a loop while it is still running is a per-step limit on the conversation, a per-key budget with a deviation alarm against the trailing baseline, and a hard cap at the key as the backstop. The first is the detector. The last stops the bill.

Published runaway-cost accounts share a shape: no step cap, no per-key budget, and a monthly invoice as the first signal.

What do we do about it?

Unit economics are established during the pilot rather than estimated before it. Per-team budgets sit at the gateway with deviation alarms against the trailing baseline, and every call is attributed to the team and feature that made it.

The monthly report carries cost per team against the previous month, so a change in the bill has an owner before it has a surprise.

Article Published 22 August 2026 · By Agile Labs

Agile Labs is a Singapore software engineering company. Since 2016 we have built, taken over, secured and maintained software and AI systems.

Sources

  • LiteLLM and Envoy AI Gateway documentation on virtual keys, budgets and rate limiting.
  • FinOps Foundation, FinOps for AI working group, cost attribution practice.
  • Published provider pricing for input, output and cached tokens, current at the date above.

Read next

Have something complex to build, fix or take over?

Build better software, with zero surprises