How to Evaluate Whether LLM Inference Pricing Is Reasonable

    LLM API pricing looks like a simple "cost per million tokens" figure, but the real cost structure is determined by total parameter count, activated parameters, the attention window and sparsity strategy, and how the cluster is scheduled. When choosing a model or building a budget, comparing only the sticker price makes it easy to assume a linear relationship—bigger parameters must cost more, smaller ones must cost less—and to over- or underestimate the true gross margin. This article breaks inference cost into verifiable line items and lays out a neutral framework for evaluation.

    1. Separate the three kinds of “scale” before talking about price

    Inference cost should be split into at least three parts, none of which can substitute for another.

    The first is total parameters. This mainly affects how many machines and cards the weights occupy, and the communication topology under Expert Parallelism. Larger total parameters mean a higher static weight footprint, but with large-scale expert parallelism and a batch kept as full as possible, the per-card weight cost does not necessarily rise linearly with total parameters.

    The second is activated parameters. In a Mixture-of-Experts structure, only the activated experts—not all experts—actually participate in a single forward pass. Activated parameters are closer to the throughput ceiling in memory-bound scenarios: memory bandwidth and the movement of KV cache and intermediate activations are often governed by the activated size rather than the total size. If production keeps the batch saturated over time, the real bottleneck may fall on compute or communication, not on the memory wall that activated parameters seem to imply.

    The third is the attention mechanism. Standard attention grows roughly quadratically with sequence length. Halving the number of tokens actually included in attention cuts the attention compute to about a quarter. Compressed sparse attention, hyper-sparse attention, and fixed-length sliding-window attention are all essentially trading “computing fewer token pairs” for lower latency and cost. When evaluating pricing, you must ask: what is the effective included length, what is the compression ratio, and is the sliding window fixed-length. Looking only at “supports very long context” without checking the effective compute length will badly overestimate compute usage.

    Collapsing these three into one line—“the model is bigger, so it costs more”—distorts the discussion.

    2. How attention strategy rewrites the compute bill

    Attention cost can be roughly divided into: a full or near-full window, a compressed effective window, and a hyper-compressed branch that is nearly negligible.

    If compressed sparse attention reduces the tokens actually included to a quarter of the original, the quadratic relationship drops attention compute to about one-sixteenth. After extreme compression (for example, on the order of a hundred times), even with a nominal context of a million tokens, the effective length landing on the attention kernel may be only a few thousand, and this portion can often be treated as a remainder. A fixed-length sliding window (for example, a hundred-plus tokens) is a fixed overhead that does not explode quadratically as requests get longer.

    So when comparing two generations of APIs, the right question is not “did context go from 2K to 128K, and is that expensive,” but rather: how much did the effective CSA included length change, is the HSA-type branch negligible, and is SWA still fixed-length. If a new version halves total parameters, cuts activated parameters to about a third, and reduces effective attention length to a quarter again, compute usage may drop by an order of magnitude; in that case, if the input price falls only half and the output price only thirty percent, the gross margin is often improving rather than the vendor giving ground.

    Conversely, if total and activated parameters rise to just under three times, effective attention length halves (attention compute to about a quarter), and expert parallelism spreads the total-parameter growth across a larger fleet so per-card unit cost does not rise proportionally—yet the input price rises sixfold and the output price eightfold—the premium is very pronounced. Any later price cut is closer to returning excess premium to the market than to “suddenly becoming cheap.”

    These multipliers only illustrate the evaluation logic: real commercial negotiation should rely on the vendor’s disclosed effective window, compression ratio, and measured throughput, and illustrative ratios must not be treated as the billing rules of a specific product.

    3. Total parameters, expert parallelism, and prices that “seem like they should rise”

    Many people assume that doubling total parameters means doubling the machines. Under large-scale expert parallelism, experts are sharded across different cards, and the fleet size is determined jointly by the number of experts, the parallelism degree, and the deployment topology—it is not a simple multiple of total parameters. The weight and communication cost averaged per card may barely rise with total parameters.

    At the same time, production usually keeps the batch as full as possible. Once you leave the purely memory-bound regime, the “speed ceiling” implied by activated parameters is not necessarily the real bottleneck. When evaluating a quote, it is worth confirming with the provider: peak batch size, whether it stays saturated over time, and whether communication has become the main factor. If the answer is “saturated over the long run, communication is acceptable,” then linearly extrapolating unit price from activated parameters will overestimate cost.

    4. Why input and output prices are often asymmetric

    The generation phase repeatedly reads KV cache and repeatedly performs attention and sampling, so the marginal cost of output tokens is usually higher than that of input. Output priced above input is therefore a common structure, not proof of profiteering. What needs checking is whether the output-to-input multiple is on the same order as the extra attention and bandwidth overhead of the decode phase. If effective attention has already been heavily compressed and decoding should be cheaper, yet the output price rose harder than the input price relative to the previous generation, the premium is concentrated on the generation side.

    On the enterprise side, you can also convert price into “cost per unit of effective compute”: divide the output price by the square of the effective included length (or by the vendor’s attention FLOPs model), and see whether that ratio rises or falls across generations. A rising ratio without a proportional capability gain is a premium; only a falling ratio is a genuine cost-efficiency improvement.

    5. A practical checklist

    To assess whether a given generation of inference API is overpriced, check the following in order rather than starting from the marketing message.

    1. Total parameters and deployment: is there large-scale expert parallelism; does the fleet expand roughly linearly with total parameters; is the per-card amortized weight cost measured.
    2. Activated parameters and throughput: is the production batch saturated; is the bottleneck memory bandwidth, compute, or communication.
    3. Attention: effective included length, compression ratio, whether the sliding window is fixed-length; is there a nearly negligible hyper-sparse branch.
    4. Input/output split: does the output multiple match the extra decode overhead.
    5. Generational comparison: place the increases or decreases of the above items next to the sticker-price changes, and read the direction of gross margin.

    For cloud deployment, you can also use logs and monitoring alerts in object storage to measure the real input/output ratio, tail latency, and queuing, weighting them with your own traffic profile rather than the vendor’s average token mix. Container and monitoring capabilities on cloud platforms such as Baidu AI Cloud are suitable for this kind of observation, but the cost conclusion still depends on the model-side effective compute, not on the platform brand.

    6. Two common misjudgments to avoid

    One is looking only at total parameters: accepting a several-fold price increase because the model is “bigger,” while ignoring shorter attention and the dilution from expert parallelism. The other is looking only at a falling sticker price: parameters and effective attention have already been cut by an order of magnitude, the price drops only thirty to fifty percent, yet it is treated as a large concession.

    Technical capability gains (stronger reasoning, more stable instruction following) can support some premium, but that premium should be argued separately and not folded into a narrative of “costs must rise.” Only after the cost account is settled does a discussion of capability premium hold up.

    Conclusion

    The core of reasonable pricing evaluation is this: total parameters govern cluster occupancy, activated parameters govern speed near the memory wall, and effective attention length governs quadratic compute. Compressed sparse, hyper-sparse, and fixed-length sliding-window attention dramatically rewrite the third item; expert parallelism and a saturated batch rewrite the linear intuition behind the first two. Write these three things down as verifiable line items, then compare the generational changes in input and output unit prices, and only then can you judge whether gross margin is improving, whether excess premium is being returned, or whether a complexity narrative is covering the quote. For enterprises, this framework is more durable than chasing the slogan of any single product generation, and it aligns more easily with internal budgeting and capacity planning.