The Real Inference Bill: Why Cost per Completed Workflow Beats Cost per Token
Every model page shows the same two numbers: a price per million input tokens and a price per million output tokens. They are easy to compare, so they become the way teams pick a model. The trouble is that nobody's product ships tokens. It ships finished work: a resolved ticket, a reviewed contract, a merged pull request.
The price per token tells you what one call costs. It doesn't tell you how many calls a job takes, how much context each call drags along, or how often the job has to start over. This post walks through why a model that is much cheaper per token can still cost more per finished job, and which numbers to measure so you can see it in your own workload.
All prices, step counts, success rates and labour costs below are hypothetical, chosen to show the method. They are not Nebula Block prices or benchmark results. Swap in your own measurements. For live per-token prices, see the Nebula Block model catalog.
The formula that matters
cost per completed workflow = (cost of every model call, including retries and failed attempts, plus any infrastructure and human time) ÷ workflows that actually finished
The denominator is the part people forget. A workflow that fails and gets thrown away still cost money, and that money has to be spread over the ones that succeeded.
Where the hidden cost comes from
1. Context grows with every step. An agent that takes nine steps doesn't send nine small prompts. Each step usually resends the instructions, the tool definitions and the history so far. Input tokens add up much faster than the step count suggests. We cover the application side of this in The 2026 Guide to AI Agent Economics.
2. Weaker models often take more steps. A model that is less reliable at planning or tool use tends to wander: extra searches, repeated tool calls, corrections of its own mistakes. Each of those is another paid call with a long context attached.
3. Failures and retries. If 30 out of 100 runs fail on the first pass, you either run them again or hand them to a person. Either way, the cost of the failed attempts lands on the finished jobs.
A worked example (hypothetical)
Take two configurations for the same task.
- Config A ("cheap"): $0.15 per million input tokens, $0.60 per million output tokens. It takes 9 steps with about 18,000 tokens of context per step and 600 output tokens per step. First-pass success is 70%.
- Config B ("premium"): $2.50 per million input tokens, $10 per million output tokens. It takes 4 steps with about 9,000 tokens of context per step and 500 output tokens per step. First-pass success is 92%.
Config B is about 17 times more expensive per token on both input and output. Now count what one run actually consumes:
| Config A | Config B | |
|---|---|---|
| Steps per run | 9 | 4 |
| Input tokens per run | 162,000 | 36,000 |
| Output tokens per run | 5,400 | 2,000 |
| Model cost per run | $0.0275 | $0.110 |
| First-pass success | 70% | 92% |
| Model cost per completed workflow | $0.039 | $0.120 |
Here we assume failed runs are simply retried until they succeed, so the cost per completed workflow is the cost per run divided by the success rate. On model spend alone, the cheap configuration still wins, by about 3 times. That's a real saving, and it's why the per-token view is tempting.
Add the cost of fixing what failed
Retrying is not always an option. In many workflows, a run that fails goes to a person. Suppose, hypothetically, a reviewer spends 6 minutes finishing each failed case at $60 per hour, so each review costs $6. In this version there are no retries: every failed run is handed to a person, who finishes it.
| Cost per completed workflow | Config A | Config B |
|---|---|---|
| Model cost (one run each) | $0.0275 | $0.110 |
| Human review (failure rate × $6) | $1.80 (30%) | $0.48 (8%) |
| All-in | about $1.83 | about $0.59 |
Now the premium configuration is about 3 times cheaper per finished job, even though it costs about 17 times more per token. The model bill was never the big line. The 30% failure rate was.
Two things to take from this. First, which configuration wins depends on how you handle failure, so state that policy next to any cost number you share. Second, the result flips because the rows that don't show up on a pricing page (steps, context, failures, review) dominate the row that does.
Five numbers to measure
You don't need a research project. Log these for a week on a real workload:
- Steps per workflow. How many model calls does one finished job take, on average and at the 95th percentile?
- Input and output tokens per workflow. Sum them from the
usagefield of each response, not from the prompt you think you're sending. - First-pass success rate. Define "success" in a way you can check automatically, or by sampling.
- What happens on failure. Retry, fall back to another model, or send to a person? And what does each path cost?
- Time and infrastructure per workflow. If you run your own GPUs, include the GPU-seconds a workflow occupies. If you use per-token pricing, include any queueing or waiting that delays the job. Latency affects cost when jobs time out and restart. The Cold-Start Penalty post shows one way waiting turns into spend.
What to do with the answer
- Compare models on a fixed task set, not on price sheets. Run each candidate on the same 50 to 100 real tasks and compute cost per completed workflow.
- Trim context before you switch models. Shorter history, pruned tool output and cached shared prefixes lower the cost of every step. How to Cut LLM Inference Costs covers prefix caching and the per-million-token math.
- Route by difficulty. Easy, well-defined steps can go to a cheaper model while the hard planning steps go to a stronger one. Measure each route separately.
- Cap the loops. Set a maximum number of steps so one confused run can't burn through a large context window again and again.
- Put a price on a failure. If you don't know what one failed run costs your team, you can't say whether a more reliable model is worth its price.
- Re-measure when anything changes. A new model version, a prompt edit or a new tool can move steps and success rates more than a price change does.
The bottom line
Price per token is a fine tool for comparing two models on one call. It is a poor tool for predicting your bill, because your bill is made of finished jobs. Count the steps, the context, the failures and the human time, divide by the work that actually got done, and let that number pick your model.
Learn more at
- Email: contact@nebulablock.com
- Website: nebulablock.com
- Docs: docs.nebulablock.com
- Book a call: nebulablock.com/contact