Why LLM Inference Pricing Varies So Much
This article explains why per-token LLM inference prices differ dramatically across providers. It breaks down the four variables behind pricing, clarifies why activated parameters rather than total parameters drive compute cost, and shows how gross margin and tier-based value pricing amplify cost into price. It also covers prefix caching as a cost lever, includes code for estimating monthly spend, and offers a four-step framework for deciding whether a model is worth its price based on your task distribution.
1. Same “Expensive” Label, Different Reasons: Building a Common Frame of Reference
Before judging whether any model service is reasonably priced, accept one fact: the price per token is never a number you can compare directly across providers. It is determined by at least four variables at once—total parameter count, activated parameters per inference, the procurement and depreciation cost of compute, and the gross margin the vendor chooses to keep. Once you separate these four variables, many apparent contradictions resolve naturally.
The industry roughly groups model capability into three tiers: general-purpose chat, complex engineering and near-research workloads, and extreme reasoning. The higher the tier, the more compute each request consumes, and the higher the price climbs. For overseas models in the same tier, output prices typically land in the $25–$30 range per million tokens—an anchor formed by long-term market competition. Understanding this anchor is the prerequisite for judging whether any pricing is “reasonable” or “outrageous.”
2. The Cost Side: Total Parameters Are Not Cost—Activated Parameters Are
A common mistake is treating total parameter count as the basis for cost. Under sparse architectures, what actually determines the compute for a single forward pass is the activated parameter count, not the total.
Inference compute ∝ activated parameters × token count × layer correction factorMemory and bandwidth overhead ∝ total parameters (weights stay resident)
In other words, total parameters affect deployment cost and memory footprint, while activated parameters affect the floating-point operations per request. A model with 2.8T total parameters and 100B activated parameters versus one with 1.6T total and 49B activated has an activation ratio of roughly 2x—not the 1.75x suggested by the total-parameter ratio. Add engineering factors such as attention implementation, batching strategy, and quantization precision, and the real cost gap usually falls in the 3x–4x range, a relatively reliable estimate band.
3. The Pricing Side: Two Amplifiers Between Cost and Price
Two amplifiers sit between cost and price.
The first is gross margin. Leading vendors in the industry typically run gross margins of 70%–80%. If a tier’s blended inference cost is about RMB 5–6 per million tokens, backing out that margin puts the price around RMB 25, or roughly $4.
The second is tier premium and brand premium. When a vendor positions itself in the “near-research” tier, the pricing logic shifts from cost-plus to value-based pricing: reference the upper end of overseas models in the same tier, then offer a “relatively cheaper” discount. This produces the mismatch described earlier—the absolute price is several times what cost-plus would yield, yet it looks restrained relative to the international benchmark in the same tier.
An analogy captures this mismatch: under cost-plus, it should be priced like a mid-size luxury sedan; under value-based pricing, it sits in a supercar showroom, just with a 50% discount on the sticker.
4. Cache Hits: The Underrated Cost Lever
In the cost model, prefix cache hit rate is a heavily weighted variable. For scenarios with a fixed system prompt, repeated long-document Q&A, or reused codebase context, cache hits can push the actual billed cost down to a small fraction of the list price.
# Minimal model for estimating monthly inference spenddef estimate_monthly_cost(req_per_day, in_tok, out_tok,price_in, price_out, cache_hit=0.0):daily = req_per_day * (in_tok * price_in * (1 - cache_hit) +out_tok * price_out) / 1_000_000return daily * 30
In practice, placing stable content first and variable content last is the most effective way to raise the hit rate. When evaluating any model quote, factor in the “effective unit price after cache hits,” or your conclusions will be badly distorted.
5. A Decision Framework: Whether It’s Expensive Depends on Your Task Distribution
Back to the original question. Whether a price is reasonable is not on the quote sheet—it’s in your task distribution. A four-step approach:
- Tier your tasks: measure the share of requests that genuinely need heavy reasoning. If it’s below 20%, paying for a high-priced tier is performance overkill.
- Calculate the effective unit price: plug in cache hit rate and input/output ratio to get actual spend rather than list price.
- Quality conversion: translate accuracy gains into reduced rework and manual review costs as an offset on the quality side.
- Combined routing: use a low-cost model for high-frequency simple requests and a high-capability model for the few critical requests.
Routing strategy pseudocodeif complexity_score < threshold:route_to(economy_model)else:route_to(reasoning_model)
In related practice at Baidu AI Cloud, this kind of tiered routing is typically built alongside logging services and monitoring alerts, using real call data to continuously calibrate thresholds and avoid cost overruns from guesswork pricing.
6. Conclusion
A high price is not the problem in itself; the problem is whether it matches your usage structure. Understand the difference between total and activated parameters, calculate the effective unit price after cache hits, and convert quality gains into cost offsets—then you can turn “expensive” and “cheap” from emotional judgments into computable, reviewable engineering decisions.
