A/CAlienCodeStart a project

Your AI unit cost is not the token price

The number on the vendor’s pricing page is a minority of what one resolved task costs. Here is how to measure cost per outcome, and why it is the only number the CFO should see.

  • ai-economics
  • finops

Most AI business cases are built on one multiplication: expected volume times the price per token. It is a clean number, it fits on a slide, and in every production system worth the name it is wrong by an order of magnitude.

The pricing page tells you what one model call costs. Your business does not buy model calls. It buys resolved support tickets, reviewed contracts, triaged claims and qualified leads. Between the call and the outcome sit retries, safety checks, retrieval, evaluation, people and the platform that keeps all of it running. None of that is on the vendor’s page, and most of it does not show up until after the pilot.

The consequence is predictable. The pilot looks cheap, the rollout gets approved on that basis, and six months later finance asks why the AI line grew three times faster than usage. Nobody lied. The team measured the wrong unit.

Where the money actually goes

Take a customer support assistant that answers tickets end to end and hands the hard ones to a person. Assume list prices of $3 per million input tokens and $15 per million output tokens. The business case assumed one call per ticket with a 6,000-token prompt and an 800-token answer: three cents a ticket.

Here is what the same ticket costs once the system is built properly. The numbers are illustrative, but the shape is the one I see again and again.

Line itemDriverPer attempt
Model calls4.2 calls per ticket (plan, rewrite query, answer, self-check); context grows to ~14k tokens$0.221
Retries18% of attempts re-run after timeouts, malformed output or failed checks$0.040
GuardrailsTwo classifier calls per attempt on a small model$0.005
RetrievalEmbeddings, vector store and reranker, amortized$0.012
Evaluation5% of traffic scored by an LLM judge, plus a nightly regression suite$0.015
Human review12% escalated, 4 minutes each at a $40/h loaded cost$0.320
PlatformGateway, tracing, on-call: $10k a month over 200k attempts$0.050
Cost per resolved ticket$0.66 per attempt ÷ 70% resolved$0.95
Fig. 1 — unit cost model for an AI support assistantillustrative figures

Three cents became ninety-five. Two things stand out. First, model inference including retries and guardrails is about 40% of the total, not 100%. Second, the largest single line is not a model at all. It is the person who reviews the escalations.11This is the most common surprise in AI cost reviews. “A human checks the hard cases” is a design decision with a salary attached.

The pricing page tells you what a call costs. Your business buys outcomes, and the gap between the two is where budgets go to die.

Cost per outcome, defined properly

Cost per outcome is total spend on the AI system in a period, divided by the number of outcomes it actually delivered in that period. Both halves need care.

The numerator includes everything that exists because of the system

Inference, yes, but also the failed attempts, the evaluation runs, the retrieval infrastructure, the share of the platform team, and the human time spent reviewing, correcting and handling escalations. If you removed the AI system tomorrow and a cost would disappear, it belongs in the numerator.

The denominator counts outcomes, not attempts

This is where most dashboards flatter the system. “Tickets handled” is not “tickets resolved”. A ticket the assistant answered, which the customer then reopened, is a cost with no outcome. A contract the model summarized, which a lawyer then re-read in full because they did not trust the summary, delivered nothing.

Define the outcome the way the business would: the customer did not come back within seven days, the claim was paid without manual rework, the lead converted to a meeting. Then divide by that.

The three levers that actually move the number

Once you measure cost per outcome, the optimization priorities change. Switching to a model that is 20% cheaper per token feels productive and rarely matters. These three do.

1. The resolution rate

Every unresolved attempt is paid for and thrown away. In the model above, moving resolution from 70% to 80% cuts cost per outcome by 12.5% without touching a single price. It also cuts human review, because fewer cases escalate. Quality work is cost work.

2. The review rate

Reviewing 12% of tickets costs more than all the inference combined. The question is not whether to keep humans in the loop but which cases they see. Review by risk tier and by sampling, not by default, and measure whether reviewers actually change anything. If reviewers approve 98% of what they see unchanged, you are paying for reassurance, not for quality.

3. Context and step count

Agentic designs grow the prompt at every step, so token cost rises faster than the number of steps. Capping the number of steps, trimming retrieved context to what the step needs and caching stable prompt prefixes usually saves more than any model swap. It also improves latency and reliability, which is rare: three wins from one change.

What the CFO should see

Finance does not need token counts. It needs four numbers on one page, refreshed monthly:

  1. Cost per outcome, fully loaded, with the trend over the last six months.
  2. The baseline: what the same outcome cost before the AI system, through the old process. This is the only comparison that means anything.
  3. Volume of outcomes, so savings can be expressed as a total, not a ratio.
  4. A budget per outcome agreed with the product owner, with an alert when the trailing week exceeds it.

If cost per outcome is $0.95 and the old process cost $4.10 per ticket, the system pays for itself with a large margin, and you can defend the spend at any price per token. If the old process cost $0.80, no amount of model price cuts will rescue the case, and it is better to know in month two than in month twelve.

Instrumenting it in a quarter

You do not need a FinOps platform to get this number. You need one identifier and one join.

  • Give every business task an ID at the moment it enters the system, and pass it through every model call, tool call, retrieval and human review. Most AI gateways and tracing tools support a custom tag for exactly this.
  • Log cost per call against that ID: tokens times price for model calls, minutes times loaded rate for reviews.
  • Join on the outcome event from the downstream system (ticket closed and not reopened, claim paid) once it arrives, days later if necessary.
  • Allocate fixed platform costs monthly by share of tasks. Imperfect, but far better than leaving them out.

The first month of data usually changes the roadmap. Teams find that a small set of task types consumes most of the spend, or that one retry loop doubles the bill, or that review is concentrated on cases the model handles well. All of that is invisible in a token dashboard.

You are about to approve the budget to scale an AI pilot, your AI spend is growing faster than usage, or nobody in the room can say what one resolved task costs today.

In an Executive Advisory session we build the cost-per-outcome model for your use case, compare it with your current process, and decide what has to be true for the business case to hold.

Start a project
  1. The model and the prices are illustrative. Plug in your own volumes, prices and loaded labor costs; the structure is what carries over.

Danilo Panaro Engineer and CEO

Danilo Panaro is an engineer and the CEO of AlienCode. He writes about building AI and software systems that hold up in production, and about the business decisions behind them.

jr3.it

All posts
The 80% demo and the 97% requirementThe AI Act deadline moved. Your customers’ deadline didn’t.