AI unit economics: margin per call
AI unit economics explained: how to work out your margin per call from model cost, token price and the value of each task you automate, step by step.
Updated
AI unit economics is the cost and value of one unit of AI work, such as one API call, one support reply or one processed contract. Margin per call is what that unit is worth to you minus what the model and the work around it cost. If the margin is positive, the feature pays for itself at that volume. If it is negative, every extra call makes the loss bigger.
What margin per call means
A monthly invoice shows what you spent, not whether the spending pays. Divide the bill by finished tasks to get cost per unit, then compare that with what a finished task is worth. Do this per feature, because one feature is often most of the spend and most of the risk.
Track three numbers for each task:
- Value per unit. What one finished task is worth to the team that owns it, such as the handling time a support reply removes.
- Model cost per unit. Input and output tokens at the current rate, multiplied by calls per task, including retries. Reasoning tokens and long outputs often cost more than people expect.
- Everything else. Hosting, logging and the human review queue. Review time is easy to leave out, and for many teams it is the largest line.
Margin per call is the first number minus the other two.
Worked example: one contract
Take a hypothetical task worth $0.50 to your team once it is finished. Say a frontier model at list price costs $0.155 per contract for this extraction, and a model fine-tuned for that one extraction costs $0.0045 per contract.
On the frontier model, the margin is $0.345 per contract before review. On the fine-tuned model it is $0.4955. The gap of about $0.15 per contract is what the training project has to pay back, roughly $150 for every 1,000 contracts.
That gap only holds if both models get the same share of contracts right. Every miss goes to a reviewer, and the reviewer’s time comes off the margin. Score both models on the same set of contracts your team has already checked, count the misses, and price each one at the review time it takes before you compare margins.
Batch and throughput change the cost per unit
Throughput sets how many units one deployment finishes in an hour, and so how much fixed cost each unit carries. For bulk work such as backfills, a faster deployment lowers cost per unit directly. For interactive work, measure latency too, since a fast answer that arrives late is no use to someone waiting on a screen.
Batch pricing is the other lever. Anthropic’s Batch API is half price for requests that can wait for results, so a backlog that does not need a live answer should not be priced at the live rate. Caching discounts depend on the model and provider, so check the pricing page before you count them. Our guides on batch APIs versus real-time calls and prompt caching cover when each trade pays.
Common mistakes
- Comparing per-token prices. A lower rate can still cost more per finished task if the model needs retries or longer prompts. Divide by finished tasks, not tokens.
- Leaving out retries. A failed call that is retried costs the same tokens again. Count calls per finished task.
- Valuing the task at full manual cost. If a person still checks every output, the saving is the review time you remove, not the whole task.
- Testing on a lucky sample. A handful of clean examples says little. Include the contract types and edge cases that failed before.
- Using last month’s price. Provider rates change. Recompute with the rate on the day you measure and write the date down.
How to get your own numbers
- Pick one task and one feature. Do not start with the whole product.
- Count calls per finished task, retries included, with input and output tokens per call.
- Multiply by the model price on the day you measure. That is model cost per unit.
- Agree the value per unit with the team that owns the task, and write the assumption down.
- Add review and hosting cost per unit.
- Check the result against a sample of real calls before you decide anything.
The LLM cost calculator does the arithmetic once you have the counts.
When a cheaper model changes the margin
If model cost is most of the cost per unit, a model trained for that one task can lower it. Own Weights fine-tunes a model for one high-volume task that a company now sends to a frontier API, and serves it in the customer’s own cloud account or on-prem. The customer owns the weights.
The rule we follow is that the trained model must beat the current model on your own test before it is deployed. A cheap model that gets more results wrong can cost more once review is counted, so compare cost per correct result. Our guide to testing an LLM on your own data explains how to build that test.
If you want these numbers for your product, book a free audit. The free AI cost audit reads your repository as text on your machine, makes no network calls while it reads and uploads nothing. It lists each AI call with its model and estimated cost, and flags waste such as missing prompt caching, calls inside loops and no output limit. It is open source under the MIT license. Use the “Book a free audit” button on this page to pick a time.
Questions
What is AI unit economics?
It is the cost and value of one unit of AI work, such as one call or one processed document. Teams use it to decide which AI features earn their keep and which ones lose money as volume grows.
How do I calculate margin per API call?
Take the value you assign to one completed task and subtract the model cost for that task, including retries and output tokens. Then subtract any review or infrastructure cost you attribute to it. Check your provider's current pricing page for the rates you multiply by.
Is a cheaper model always better for unit economics?
No. A model that gets more outputs wrong can cost more once review and rework are counted. Test each candidate on your own data and compare cost per correct result, not cost per token.