LLM Inference Cost and Compute Cost-Performance Evaluation Guide
This guide explains why the common assumption that a new hardware generation automatically triggers a sharp drop in LLM inference prices often fails. It breaks total cost into four layers—procurement, equivalence conversion, throughput, and business operations—and provides a vendor-neutral Python skeleton for estimating cost per million tokens. It also ranks the real drivers of price changes, from inference-stack optimization and cache hit rates to pooling, scheduling efficiency, and rigid operating costs, and closes with a practical checklist for technical decision-makers.
1. The Problem: Why “New Hardware Launch Means Prices Must Collapse” Often Fails
A recurring claim in compute industry discussions is that once a new generation of accelerator cards or super-node systems ships in volume, LLM inference API prices will drop by an order of magnitude. The reasoning feels intuitive: more hardware supply, lower cost per unit of compute, intensifying competition, and therefore falling prices. In real engineering and commercial operations, however, inference prices are determined by several chains working together. Hardware is only one link, and often not the one with the greatest short-term elasticity.
The first misconception to clear up is “delayed attribution.” Blaming the release schedule of a model generation on a single hardware supplier usually lacks verifiable evidence. Model iteration is influenced by data mix, training stability, evaluation systems, alignment strategy, and security compliance, among other factors. Hardware is only one constraint. Compressing a complex engineering schedule into a single-point cause is a common logical leap in technical discussions.
The second misconception is “linear extrapolation from single-card unit price.” Comparing platforms with statements like “one new-platform system can replace four old-platform systems” ignores two key facts. First, high-end accelerator cards carry a clear premium in certain regional markets. Second, whole-system prices are strongly correlated with order volume, and quotes for small batches can differ from framework prices for large customers by several tens of percent. Putting retail-state prices and volume procurement prices on the same ruler inevitably distorts the conclusion.
2. Breaking Cost into Four Accountable Layers
To reach a credible conclusion, first separate the cost structure into layers, then plug in data layer by layer.
The first layer is procurement. The price of a whole system is not a scalar but a range that floats with order volume. For small purchases, the price of a single new-generation super-node system typically falls in the range of several million RMB. Internet-scale customers with volume purchasing power can usually obtain 60% to 80% of list price through framework agreements. It must be emphasized that the discount is the result of negotiation, not an inherent product attribute. Any estimate that hard-codes it is not rigorous.
The second layer is equivalence conversion. When converting a new platform into an equivalent number of whole systems based on high-end accelerator cards currently on sale, the correct approach is to unify the basis first: the same volume procurement price, the same inclusion of supporting networking and storage, and the same three-year depreciation. After unifying the basis, one new-platform system is roughly equivalent to 2.5 to 3 high-end accelerator-card systems, not 4. Once the equivalence is calculated incorrectly, all subsequent cost-performance conclusions will shift.
The third layer is throughput. Measured figures matter far more than nominal ones. Taking a certain super-node system running a certain generation of open-source LLM as an example, after enabling common optimizations such as key-value cache reuse, prefill and decode disaggregation, quantized weights, and shared indexes, the system’s peak throughput can reach on the order of 300,000 tokens per second (prefill and decode combined), with time to first token falling in the 15-to-25-second range. The key engineering lesson here is that peak values cannot be used directly for production capacity planning. Production environments should apply a 60% factor to absorb long-tail requests, cache misses, burst concurrency, and operational headroom.
For comparison, a new-generation model running on a single machine, without prefill and decode disaggregation and with caching enabled at roughly 90% hit rate, can reach peak throughput on the order of 360,000 tokens per second. This yields a measured range of “four to five new-platform systems against one high-end accelerator-card system.” The reason it is a range rather than a fixed value is that the super-node form factor brings two gains: more nodes can improve cache hit rates, and larger memory capacity can add a solid-state-drive second-level cache, pushing effective throughput further up.
The fourth layer is the business layer, and the one most easily missed. Cost per token = system amortization + power and cooling + networking and storage + operations labor + failure losses, divided by effective throughput. Effective throughput is not peak throughput but peak throughput multiplied by the production discount factor. Only by plugging in the 60% factor, cache hit rate, and the average input/output length distribution can the result be aligned with API prices.
3. A Reusable Estimation Skeleton
Below is an illustrative, vendor-neutral estimation logic. All values are placeholders; use your own measurements in practice.
def effective_cost_per_mtok(unit_price, # whole-system procurement price (volume basis)years=3,power_kw=120,power_price=0.6, # RMB per kWhops_ratio=0.15, # operations and networking/storage amortization ratiopeak_tps=300_000, # peak throughput tokens/sprod_factor=0.6, # production discount factor):hours = years * 365 * 24amort = unit_price / (hours * 3600)power = power_kw * power_price / 3600total_per_sec = (amort + power) * (1 + ops_ratio)eff_tps = peak_tps * prod_factorreturn total_per_sec / eff_tps * 1_000_000 # RMB per million tokens
The value of this skeleton is that it pulls the debate back from “how many systems equal one” to “how much per million tokens.” As long as the input basis is unified, different hardware generations, different parallelism strategies, and different caching strategies can all be placed in the same table for comparison.
4. The Real Variables That Drive Prices Down
Hardware supply is only a background variable. What truly moves API prices are the following factors, ranked from largest to smallest elasticity.
First, co-optimization of the model and the inference stack. Sparse attention, prefix cache reuse, speculative decoding, continuous batching, and quantization and low-precision computation can each deliver substantial gains in effective throughput. These optimizations iterate on a monthly cycle, far faster than hardware capacity ramps.
Second, workload shape and cache hit rate. Scenarios such as multi-turn dialogue, code completion, and fixed system prompts have highly repetitive prefixes, high hit rates, and extremely low marginal cost. One-off long-document analysis scenarios have low hit rates and high cost. Price tiering is therefore more common than across-the-board price cuts.
Third, resource pooling and scheduling efficiency. Decoupling prefill and decode, pooling by stage, elastic scaling, and mixing offline batch processing with online serving can significantly raise average utilization. Raising utilization from 40% to 70% is equivalent to cutting unit cost by more than 40%.
Fourth, structural gains from cluster scale. Larger super-nodes can expand the memory pool and introduce multi-level caching to push effective throughput away from the theoretical lower bound, which is also why the measured range has elasticity.
Fifth, rigid costs such as power, data-center facilities, and compliance. These are hard to reduce in the short term and form the lower bound of price.
5. An Action Checklist for Technical Decision-Makers
- Unify the basis before comparing: volume price against volume price, with-supporting against with-supporting, three-year depreciation against three-year depreciation.
- Use effective throughput rather than peak throughput for capacity planning, starting from a 60% factor in production and reserving burst headroom.
- Build your own benchmark set covering typical input/output length distributions, cache hit rates, and concurrency curves, forming a regression-capable evaluation pipeline.
- Monitor cache hit rate as a first-class metric, and improve reuse with tiered caching and prompt normalization.
- Adopt prefill and decode disaggregation, elastic scaling, and mixed scheduling to raise average utilization.
- In procurement, use small-batch pilots plus framework agreements, treating the discount as a negotiation variable rather than a constant in estimates.
- Connect the cost dashboard with monitoring and alerting, aggregate cost per million tokens by business line, and hold monthly reviews.
6. Conclusion
“Once a new generation of compute ships in volume, inference prices must fall sharply” is a judgment that is roughly right in direction but seriously distorted in magnitude. A more rigorous statement is that hardware generation turnover raises the upper bound of cost-performance, but the actual price level is jointly determined by inference-stack optimization, workload caching characteristics, cluster scheduling efficiency, and rigid operating costs. Unifying the basis, calculating effective throughput correctly, and managing caching and utilization are the reusable paths to cost reduction. If needed, these capabilities can be built on general-purpose offerings such as the container platform, object storage, log service, and monitoring and alerting provided by Baidu AI Cloud, forming a vendor-neutral, long-term evolvable cost evaluation system.
