Unit economics for a production AI feature comes down to one comparison: what a single inference request costs to serve against what it earns. Subtract the first from the second and you have contribution margin per request. For AI features, model cost scales roughly linearly with usage, so a feature that loses money at 1,000 requests a day still loses money at 1,000,000. More volume does not fix poor unit economics for an AI feature. It makes the losses bigger.
The rest of this article sets out what goes into each side of that comparison, how to work the numbers for a real feature, and how to see the point where a feature that was making money starts losing it.
What unit economics measures in a production AI feature
The FinOps Foundation’s framework describes unit economics as bringing together what an organisation spends on technology and the value that spending creates, because without relating cost to benefit it is hard to say whether the spending is appropriate. It frames the discussion in terms of marginal cost (unit cost metrics) and, where feasible, marginal revenue, and comparing the two can help highlight break-even points and support conversations about contribution margin and pricing. AWS’s cloud financial management guidance uses the same idea. A unit metric is a KPI with spend or consumption in the numerator and a demand driver in the denominator, and finance teams would call the cost version “marginal cost”.
For a deployed AI feature, we take the request as the demand driver. Each time a user asks the product to do something, a model runs, and running a model costs real money. We would model the feature’s unit economics as cost per request, revenue per request and the gap between them, tracked while the feature is live rather than reviewed once a quarter.
Cohere puts the common mistake plainly: treating token price as unit economics. The unit economics come from the total cost of the system that produces the token.
Why count per request rather than per user or per outcome?
We would choose a single inference request as the base unit. Per-user and per-outcome figures are built from it rather than replacing it.
A per-user unit hides the most costly part of the distribution. Rework’s analysis of AI gross margins points out that when revenue per customer is fixed and inference cost per customer varies with usage, margin is no longer a property of the product. It depends on the product, on how each customer uses it, and on the price. A blended per-user margin can look healthy while individual heavy users run at a loss. Counting per request shows that variation. Averaging per user removes it from view.
A per-outcome unit (cost per resolved ticket, per generated report) is where the business conversation should end up. CloudZero argues that cost per outcome, not cost per token, is the number that matters, and the FinOps Foundation recommends tracking cost per inference, per user and per successful outcome for each use case. Outcomes are still harder to define and attribute than requests. You cannot price an outcome reliably until you know what the requests behind it cost.
The request unit has one real weakness. If retries and agent steps are buried inside “one task”, per-request numbers will understate what the task costs. Failed and discarded runs are still cost, and we cover that gap separately in why cost-per-request optimisation misses the bill if you ignore failed requests.
How do cost per request and revenue per request become contribution margin?
Contribution margin per request is revenue per request minus variable cost per request. Richard Ewing writes the AI version as feature margin = revenue per interaction − cost per interaction, with cost built from input and output tokens, embeddings, vector storage and orchestration. His worked example uses about 2,000 input tokens at $2.50 per million and 800 output tokens at $10 per million, roughly $0.013 per interaction, against $0.25 of revenue ($50 a month spread over 200 requests). That leaves a margin of $0.237, or 94.7%.
That figure only counts tokens. Ewing notes that once fully loaded costs such as salary, fine-tuning and safety work are added, the margin falls to 40-60%. A practitioner’s guide to scaling ML products at startups (arXiv, 2023) observes that fixed engineering costs are conventionally left out when scaling a digital product, with attention on contribution margin, on the theory that once it is positive, profitability is a matter of acquiring and keeping enough customers. The same guide defines variable cost as the total cost of serving the models and maintaining their performance. Model upkeep therefore belongs among variable costs, not hidden in R&D.
Arpit’s cost-per-request guide turns the margin around into a pricing rule: required revenue per request = total cost per request ÷ (1 − target margin).
Worked example: a unit economics model for one AI feature
The figures below come from Arpit’s worked example of a feature serving 100,000 requests a month. The structure is the useful part. The cost rows follow the five cost components the guide defines: model, infrastructure, pre/post-processing, human review and amortised fixed cost. This example has no separate processing line.
| Component | Working | Cost per request |
|---|---|---|
| Model: input tokens | 800 × $3 per 1M | $0.0024 |
| Model: output tokens | 300 × $15 per 1M | $0.0045 |
| Infrastructure | $500 ÷ 100,000 requests | $0.005 |
| Human review (amortised) | 5% of requests × 2 min × $25/hour | $0.0417 |
| Development amortisation | $2,000 ÷ 100,000 requests | $0.02 |
| Total | sum of rows | $0.0736 |
| Revenue needed for 70% margin | $0.074 ÷ 0.30 | about $0.247 |
Two things in this table are worth noting. In this example, human review, at about $0.042, is roughly six times the model cost of $0.0069. The source notes that human review outweighing model cost is common and frequently overlooked. Token counts also need to come from production distributions (P50, P90 and P99), not estimates, because a few very long requests can dominate the total.
This example has no line for retrieval or agent harness costs. In retrieval-augmented and agentic architectures, the FinOps Foundation reports that vector databases, embedding generation, rerankers, orchestration, caches, data transfer and observability often make up 40 to 60 percent of total feature spend, and none of it appears on the model provider’s invoice. The RAG multi-call cost stack works through that part in detail. a16z reports, anecdotally, companies spending up to 10-15% of revenue on ongoing data labelling and retraining.
If you do not yet have production data, our guide on modelling cost per request without a vendor quote explains how to build the first estimate.
When does an AI feature go margin-negative as usage grows?
A feature goes margin-negative when revenue per request falls below cost per request. Under flat pricing, margin erodes by two routes: heavier usage against capped revenue, or a rise in cost per request.
The usage route is simple arithmetic. In the worked example each request costs $0.0736, so a $20 subscription’s AI cost rises with every request while its revenue stays fixed. Usage across customers is rarely a bell curve. Rework describes a heavy-user tail in which most customers use a modest amount and a small group uses vastly more. Under flat pricing, revenue from each customer is capped but cost is not. In Rework’s illustrative example, 10% of seats generate about 79% of inference cost. Agents make this worse, because a scheduled agent can send thousands of requests where a human sends a few.
The cost route is quieter. Cohere notes that one user interaction can trigger a long prompt, a large context window, several reasoning steps and tool calls, and the company pays for the whole chain, which is why AI costs can rise without any visible product change. In Rework’s illustrative example, a 5x increase in cost per request turns a 76% margin into a loss.
GitHub Copilot is a public example. Thurrott, citing a Wall Street Journal report, wrote that individuals paid $10 a month while the service lost an average of $20 per user per month, with some users costing as much as $80. Thurrott also describes Adobe keeping Firefly profitable by slowing service for users once they exceed their monthly credit allotment. That is a usage cap keeping the feature profitable.
The early warning signs we would look for are these:
- Cost per request at constant behaviour, trending up. This separates a falling unit price from a growing usage footprint.
- The share of cost from your top 10% of users. If it is concentrated, pricing is the first place to look.
- Margin by usage cohort rather than blended. This shows how many customers sit below target.
- A week-over-week jump in a feature’s cost per request. Arpit suggests alerting above 20%, which usually traces to a prompt change, a model swap or a shift in token distribution.
When the numbers do not work, Arpit lists four options: reduce cost, raise the price, limit usage, or accept the loss as an explicit strategic investment. Rework notes that usage-based pricing, or hybrids with an included allowance, tie revenue to usage and protect margin per request. Flat seats leave the most risk with the vendor.
Why doesn’t AI get cheaper per user the way SaaS does?
Traditional software has a convenient property: once the product is built, serving one more customer costs almost nothing. AI products lose that property, because inference cost grows with usage almost one for one, while training cost does not. a16z describes cloud computing and human support as linked costs (reducing one tends to increase the other) and says neither is likely to reach the near-zero levels of SaaS. On margins, a16z reports a consistent pattern in the AI companies it has seen, anecdotally, of gross margins often in the 50-60% range, against a 60-80%+ benchmark for comparable SaaS.
There are two qualifications. The surrounding infrastructure still benefits from scale, even though model cost does not. And when a workload moves to owned hardware, the cost structure flips: Cohere describes hardware becoming a fixed, depreciating expense, with each additional request after that nearly free. Utilisation then becomes the main cost factor, which is why we treat cost per request as load-dependent. Our load-aware cost per request article covers how load and utilisation move the figure. Comparing the hardware itself is a separate question, covered in cost, efficiency and value are not the same metric.
Falling token prices do not settle the issue either. Rework notes that prices for a fixed level of capability have dropped fast, while customers move to more capable models, longer contexts, reasoning and agents that use more compute per task. Which effect wins depends on the workload.
Is tracking cost per request different from watching the cloud bill?
Tracking cost per request differs from watching the cloud bill, because unit cost shows whether rising spend signals success or a problem. AWS makes the point directly: rising spend with falling unit cost suggests growth or optimisation, while rising unit cost is a signal that something needs investigating. Introl observes that many organisations know their total API spend but cannot say which applications drive it. The FinOps Foundation gives an example of the difference: “We spent $42,000 on tokens this month” is not actionable, while a cost per resolved ticket that has moved since last quarter is the cost side of a decision.
Two practical differences follow. First, the billed unit is not the user’s unit, because applications add system prompts, history and retrieved content to what the user typed. Second, the total cost of one request comes from more than one bill. The FinOps Foundation recommends two attribution streams, token spend captured at the proxy and harness spend from cloud and SaaS billing, joined on a shared workload identifier. Our guide on how to instrument production AI for cost-per-request tracking covers that plumbing.
Our position is that cost per request, not a generic cut in cloud spend, is the target worth optimising for. The levers then act on the request itself: routing simple requests to smaller models, caching shared context, cutting tokens, quantisation, which Introl says keeps saving money until models change, and decoding techniques such as speculative decoding. Precision as an economic lever and what speculative inference means for AI unit economics each look at one of these in depth. Any of them should be priced against its effect on the business, such as longer inference times or lower accuracy.
TechnoLynx’s AI engineering services profile a deployed feature to produce a measured cost-per-request figure instead of an estimated one, then target the request classes that drive the margin gap. The context for that work is described on our page for AI infrastructure and production SaaS.
When per-request numbers stop being enough
Cost per request is the measure a margin decision rests on, but it is not the decision itself. FinOps maturity models describe unit economics starting with cost per token and moving toward outcome measures such as cost per assist or cost per case deflected, and at the most mature stage they are used early enough to shape architecture, sourcing and pricing. The question each team still has to answer is which business action a request belongs to, and whether that action earns its cost. Our article on unit economics per business action covers when a team is ready for that step. A team that has not yet measured cost per request has nothing reliable to aggregate.
FAQ
What does inference cost mean in AI?
Inference cost is the compute you pay for each time a model generates a response. Unlike training cost, it grows with how much customers use the product. Our AI inference production cost primer explains the components.
Is token price the same as total cost of ownership?
No. Cohere argues that total cost of ownership is the whole system that produces the token, not the token’s price, and that utilisation is the main factor in whether owning or renting hardware is cheaper.