Inference Cost vs. Intelligence: Does Compute Determine the LLM Breakeven Line
This article explains what inference costs are made of, how utilization affects per-token pricing, and why higher model intelligence can lower the real cost per successful task. It includes an estimation formula, a Python example, and a cost model based on success rates.
1. Background
Revenue from large language model (LLM) services typically comes from metered token usage, while costs come from the compute, electricity, data centers, and operations required for inference. The industry often uses the term “breakeven line” to describe a critical state: the revenue per unit of service can no longer cover the cost per unit, or the available compute cannot meet demand, making the service unsustainable. The concept has no strict definition, but it points to two quantifiable questions: is the unit cost under control, and is capacity sufficient?
The phrase “minimize inference cost, maximize intelligence” involves two directions at once. The first is making a service with the same capability cheaper. The second is making the service more capable at the same or a similar price. Only when both are combined can we determine whether a service’s economic model is healthy.
2. What Makes Up Inference Cost
The cost per token mainly consists of three parts: hardware occupancy cost, energy and data center costs, and waste caused by failures, retries, or idle resources. Hardware occupancy accounts for the largest share. It depends on the hourly depreciation and maintenance cost of a single accelerator card, and on how many tokens that card can produce per second on average.
The estimation formula is as follows:
Unit cost = (single-card hourly cost × number of cards) ÷ (total throughput × utilization) — the reciprocal of the per-second figure scaled by 3600, then multiplied by 10⁶, giving the card-hour cost per million tokens.
Utilization is the most sensitive variable. With the same hardware, raising average utilization from 30% to 70% reduces the unit cost by roughly 57%. The reason is that hardware costs are essentially fixed — you still pay for the hardware when it sits idle.
The following code demonstrates this calculation logic. The parameters are hypothetical, and the currency unit is illustrative only:
def cost_per_million_tokens(gpu_hour_cost, gpu_count, throughput_tps, utilization):"""Estimate inference cost per million tokens (hypothetical parameters, for demonstration only)"""effective_tps = throughput_tps * utilizationseconds_needed = 1_000_000 / effective_tpshours_needed = seconds_needed / 3600return gpu_hour_cost * gpu_count * hours_neededfor util in (0.3, 0.5, 0.7):cost = cost_per_million_tokens(gpu_hour_cost=2.0, gpu_count=8,throughput_tps=2000, utilization=util)print(f"Utilization {util:.0%}: approx. {cost:.2f} hypothetical currency units per million tokens")
Inference consists of two phases: prefill and decoding. Prefill processes the input; decoding generates the output token by token. Output tokens are usually more compute-intensive and harder to parallelize, so controlling output length often has the largest impact on cost.
3. Why Higher Intelligence Can Lower Real Cost
Reducing the unit price is not the only way to cut costs. Improvements in model capability can also reduce wasted consumption. A more reasonable metric is “how much does it cost to complete one successful task” rather than “how much does a million tokens cost.”
Suppose a task requires multiple attempts before it succeeds. Its cost can be estimated as:
Cost per task = cost per attempt ÷ success rate
Assume Model A costs 1 per attempt with a 50% success rate, so each successful task costs 2. Model B costs 1.4 per attempt with a 90% success rate, so each successful task costs approximately 1.4 ÷ 0.9 ≈ 1.56. In other words, even though Model B is 40% more expensive per attempt, its higher success rate makes each completed task cheaper overall. This is why evaluating models purely on per-token pricing can be misleading: a more capable — and slightly more expensive — model may deliver a lower effective cost per successful outcome.
