← All insights

Your AI Cost Per Transaction Is the Happy Path. Price the Worst Day Instead.

Most AI per-transaction costs only price the happy path. This guide walks through a worst-day call inventory (retries, fallbacks, RAG, guardrails, evals, human review, and governance) and a copy-into-a-ticket worksheet for pricing the p95 path finance will trust.

Dark blue illustration of a glowing neural network hub feeding two process flows, one teal and one orange with warning icons, beside a clipboard and.

Most AI business cases quote a per-transaction cost that describes exactly one call: clean input, valid output, no retry. That number is real. It is also the number for the one transaction that worked in the demo, which is why the demo always runs on it.

Production doesn't run the happy path. It runs the scanned PDF with a coffee ring, the form where someone typed a phone number into the policy field, and the upstream system that sent the same batch twice. If you are building next year's AI line item right now, the number you hand finance has to survive those days. Here is how to estimate AI cost per transaction in production by counting every model call one workflow makes on its worst day.

Why the happy-path number is wrong

A happy-path estimate multiplies one model call by expected volume. It skips every call that fires only when something goes wrong, and in production something goes wrong on a schedule.

The gap isn't a rounding error. It is structural: retries, fallbacks, checks, evals, and humans are all separate line items, and none of them appear in a pilot that ran on curated data. (If your pilot also choked on data that looked fine when a human handled it, this one is for you.)

The worst-day call inventory for one workflow

Take an insurance intake flow like the one behind PolicyFlow, where one senior engineer plus an AI co-pilot shipped in 3 months what would have taken a 4-person team 12 months. A single submission can trigger all of this:

Calls that fire on every transaction

  • Primary extraction call. The model reads the document and returns structured fields. This is the only call in most estimates.
  • RAG retrieval and re-ranking. Pulling the relevant underwriting rules or policy language means an embedding call for the query, a retrieval, and often a re-ranking model call on top. Explained by what it costs you: two or three extra calls before the main one even starts.
  • Guardrail and PII checks. A classifier or small model scans input and output for personal data and policy violations. Cheap per call. Not free, and it runs every time.

Calls that fire only on failure

  • Schema-validation retries. The output fails validation, so you call again, sometimes with the error appended. Each retry is a full-price call.
  • Fallback to a larger model. After N failed retries the workflow escalates to a bigger, pricier model. On a bad data day this path stops being rare.
  • Human review. Confidence drops below threshold and a person checks the record. Their minutes cost more than any token.

Calls that look like overhead but bill like production

  • Eval runs. Scoring a sample of outputs with an LLM judge or a reference check is model traffic. Your provider does not care that you call it quality assurance.

Seven line items. The demo showed one.

A worksheet you can copy into a ticket

No per-call prices here, on purpose: your provider rates, model choices, and contract terms are yours. Use this structure and plug in your own numbers.

  1. Trace one real transaction end to end. A production-shaped one, ideally an ugly one, not the demo fixture.
  2. Log every model call by type. Extraction, embedding, re-rank, guardrail, fallback, eval. One row each, with input and output tokens.
  3. Mark which calls fire only on failure. Add a column for trigger condition and observed or expected frequency.
  4. Set a retry budget. Maximum retries per transaction before escalation. Write it down so it becomes a config value, not a vibe.
  5. Set a rollback budget. How much spend and how many bad outputs you tolerate before the workflow falls back to the manual process. We cover the math in a separate post on rollback budgets.
  6. Price human review in reviewer minutes. Minutes per review times loaded hourly cost times review rate. This line usually beats the model spend.
  7. Count eval traffic as production traffic. Sample rate times eval calls per sample, priced at real rates.
  8. Compute two totals: average and p95. Then budget from the second one.

Governance has a unit cost too

Here is the part enterprise teams get wrong, and CTOs and CISOs should read it twice: governance isn't a one-time setup fee. It is a per-transaction cost.

  • Audit logging. Every model call and agent tool call written somewhere durable and queryable. Storage and writes scale with volume.
  • Access-boundary checks on agent tool calls. Each time an agent wants to read a record or call an API, something verifies it is allowed to. That check runs per call.
  • The human-in-the-loop step your CISO will insist on. For high-risk actions, a human approves. That is reviewer minutes, again.

Teams that leave these out get a pilot number that looks great until the pre-production review, where security adds them back and the economics collapse in a single meeting. Put them in from day one. If you need to map which decisions require which controls, start with how governance maps to agent decisions. And if your human approval step is already the slowest part of the flow, see the handoff bottleneck.

The pilot mistake: budgeting from the average

The single most common costing mistake we see is budgeting from the average transaction. Averages hide the tail, and the tail is where retries stack, fallbacks fire, and humans get pulled in.

The one change that fixes it: price the p95 path and treat the average as a pleasant surprise. Finance would much rather hear "we came in under" in the spring than "we need more" in the second quarter. For why a green eval dashboard doesn't save you here, read why your CFO still killed the pilot.

This is the inventory our AI Opportunity & Readiness Sprint produces. It is a 2-week, fixed-fee engagement, and the executable plan it delivers already contains the worst-day call inventory for your highest-leverage workflow. So when a Pilot-to-Production Build starts (6 to 10 weeks, milestone-based), it starts with a per-transaction number finance has already seen, not one they meet for the first time at the go-live review.

We price our own ventures this way

This isn't advice we hand out and leave. SoloStream was built by one engineer with an AI co-pilot in about 3 months, at roughly 80% lower cost than a traditional ~$500k build. That didn't happen because the model was cheap. It happened because we knew where every call went and which ones only fired when things broke. You can see the rest of that work on our ventures page.

Budgets are getting locked as the year closes. Before yours is, grab the worst-day AI cost inventory worksheet (call types, retry and rollback budgets, eval and human-review line items) at https://horizontwolabs.com, then book an AI Opportunity & Readiness Sprint to have it filled in against your real workflow.

So: what does your workflow cost on the day the upstream data is messy and half the calls retry?

Frequently asked

Do eval runs count toward AI inference costs?

Yes. Eval runs that score sampled outputs with an LLM judge or reference check are model calls, and your provider bills them like any other traffic. Price them as sample rate times eval calls per sample at your real rates, and include them in the per-transaction number rather than parking them in a separate QA budget that finance never sees.

How do you price human review in an AI workflow?

Price it in reviewer minutes, not headcount. Multiply minutes per review by the reviewer's loaded hourly cost, then by the share of transactions that drop below your confidence threshold. On a worst day that share rises, so model it at p95. Human review is frequently the largest line item in the inventory, larger than the model spend itself.

Should AI budgets use average or p95 cost?

Use p95. Averages hide the tail where retries stack, fallbacks to larger models fire, and humans get pulled into review. Budgeting from the p95 path gives finance a number that survives messy data days, and treats coming in under budget as a pleasant surprise instead of explaining an overrun halfway through the year.

Building AI into real operations is what we do.

Start a conversation

Have a workflow worth fixing?

If something in your operation takes four hours that should take two minutes, that's where we start. No pitch required.