LLM Task Cost Accounting Guide: Why Unit Price Is Misleading

    A lower price per token does not automatically lower your bill. This article separates three distinct accounting views—parameter count, unit pricing, and actual per-task cost—to explain why vendor cost-reduction claims can differ from independent benchmarks by several times. It covers sparse mixture-of-experts model structure, how reasoning tokens and cache behavior affect real spend, and a reusable six-step method for building your own task cost model, plus a practical checklist for combining all three views into one decision table.

    Start With the Conclusion: Affordable to Buy Is Not the Same as Cheap to Run, and a Price Cut Is Not a Cost Cut

    A reduction in procurement price does not automatically reduce the bill. In one flagship sparse model’s commercial pricing, a cloud vendor cut input and output unit prices by roughly a quarter each, cut cache read pricing by about 70%, and publicly claimed that “average task cost dropped by more than 60%.” Yet an independent evaluation organization, measuring cost per task across a unified task set, found figures several times different from the vendor’s, and within the same batch of tasks, per-task cost across different models could vary by more than 3x.

    The root of the discrepancy is not that someone miscalculated. It is that three different accounts use three different measurement standards:

    • Parameter account: model size and activation size determine the capability ceiling and compute structure, not price directly;
    • Price account: the unit price table determines the settlement price per million tokens and contains no task structure information;
    • Task cost account: the real bill is determined jointly by input, output, reasoning, cache hits, and retries.

    The goal of this article is to calculate these three accounts separately and provide a reusable accounting method. The core conclusion is a single sentence: for model selection, do not look at unit price—look at how much you actually spend per completed task.

    Parameter Account: What Trillion-Scale Total Parameters and Tens of Billions of Activated Parameters Mean

    Flagship models of this type generally use a sparse mixture-of-experts architecture, commonly with total parameters in the trillion range while the parameters actually activated per token are only a few percent of the total. Take one flagship as an example: roughly 2.4 trillion total parameters, about 70 billion activated per token, a context window on the order of one million tokens, a maximum single output on the order of hundreds of thousands of tokens, and native support for multimodal inputs such as images and video, with reasoning enabled by default.

    Three points need to be understood correctly.

    First, total parameters determine the model’s knowledge capacity and potential capability ceiling, while activated parameters determine the compute for a single forward pass. The separation of the two is the fundamental reason sparse architectures can support larger models with relatively low inference compute.

    Second, fewer activated parameters does not necessarily mean cheaper. Compute is only one factor in cost; memory footprint, load balancing in expert routing, batching efficiency, and the attention overhead of long contexts all feed into real cost.

    Third, compared with same-scale models of the previous generation, the new generation typically applies engineering optimizations to the attention structure, residual connections, and embedding layers, reducing activated parameters per token by about a quarter. Such improvements show up in throughput and concurrency, but whether they translate into a lower bill still depends on task structure.

    There is also a frequently overlooked fact: flagship models are often closed-weight and can only be accessed through the vendor’s own cloud platform, model service, or coding assistant tools; whether smaller models in the same series are open-sourced, and when, usually has no fixed timeline. If a solution strongly depends on local, private deployment, closed-weight options should be ruled out early in selection rather than discovered to be unworkable during load testing.

    Price Account: Why a 25% Unit Price Cut Does Not Cut the Bill by 25%

    Take the public price list of a flagship model as an example (deployed in an international region, per million tokens): input about $1.50, output about $4.50, cache read about $0.075; the previous generation’s corresponding prices were about $2.00, $6.00, and $0.25—roughly a 25% cut each for input and output, and about a 70% cut for cache reads.

    Horizontally, output unit prices for models in the same tier can reach as high as $20, so a $1.50-level input price and a $4.50-level output price are indeed price-competitive. But there are three traps to identify in advance.

    Trap one: reasoning tokens are usually billed at the output price. When reasoning is enabled by default, how long the model “thinks” directly determines the bill. A discount on unit price gets partly eaten by reasoning length, and for long-thinking tasks the effective discount rate is often clearly lower than the listed discount.

    Trap two: cache reads are cheap, but cache writes and invalidation policy determine the hit rate. If system prompts change frequently and prefixes are unstable, the cache barely hits, and the $0.075 read price is effectively meaningless.

    Trap three: the unit price table excludes retries, failed requests, rate-limit backoff, and the additional cost of multimodal inputs. The effective unit price in production is usually higher than the listed price.

    A convenient estimate for engineering use:

    1. # Illustrative per-task cost estimate; unit prices are in USD per million tokens
    2. def task_cost(inp, out, reasoning, cache_read, price):
    3. return (
    4. inp * price["in"] / 1e6
    5. + out * price["out"] / 1e6
    6. + reasoning * price["out"] / 1e6 # reasoning tokens are usually billed at the output price
    7. + cache_read * price["cache"] / 1e6
    8. )

    Task Cost Account: Why the 60% Reduction Needs a Discount

    The cost-reduction figure a vendor provides usually comes from its own benchmark: a fixed task set, prompts and system constraints highly tuned to its own model, a high cache hit rate, and controlled reasoning length. Independent evaluations run the same unified task set across multiple vendors, with a task distribution closer to real business and reasoning length not artificially compressed. So the same thing produces two numbers: one side shows per-task cost dropping from $4.40 to $1.70, the other shows $3.30 per task, while a comparison model might be $10 or $1.30.

    The engineering takeaway: vendor data can be used to judge “relative improvement within the same generation,” and independent evaluation data can be used to judge “relative position across models,” but neither can be taken directly as your bill. To get your own numbers, you must build your own task cost account, as follows.

    1. Build a task profile. Group requests by business into five categories—short Q&A, structured extraction, long-form generation, code modification, and multi-turn tool calls—and record each category’s input length, output length, reasoning share, and call frequency.
    2. Fix the measurement standard. Uniformly count all tokens consumed to “complete one business task,” including system prompts, historical context, retries, and failed requests.
    3. Do sensitivity analysis. Vary reasoning length, cache hit rate, and context length separately, observe the elasticity of per-task cost, and identify the dominant factor.
    4. Reduce cost with caching and prefix stabilization. Fix system prompts, tool definitions, and few-shot examples in the prefix, avoid placing volatile content such as timestamps at the front, and cache hits can improve significantly.
    5. Reduce cost with tiered routing. Send simple tasks to smaller models or lower reasoning tiers and complex tasks to the flagship model; overall per-task cost usually sees the largest reduction this way.
    6. Factor quality into cost. Per-task cost must be divided by task success rate; one rework doubles the cost, and looking only at unit price leads to the wrong conclusion.

    An illustrative cost accounting framework:

    1. Effective cost per task = (input + output + reasoning + cache read) cost / task success rate
    2. Selection criterion: with success rate meeting the target, choose the combination with the lowest effective cost per task

    Implementation Checklist: Merge the Three Accounts Into One Table

    • Use the parameter account only to judge capability boundaries and deployment feasibility (closed weights or not, whether context is sufficient, whether required modalities are supported);
    • Use the price account only to establish a unit price baseline, annotated with reasoning billing and cache rules;
    • Use the task cost account for the final decision, producing an effective cost table broken out by task type;
    • Review quarterly, since changes in model versions, regional deployment, and billing rules can invalidate old conclusions.

    Implementing this accounting on the cloud is not complex: use monitoring, alerting, and logging services to collect tokens and latency for each call, use object storage to accumulate evaluation task sets and results, use a container platform to run load tests and replays, and use a message queue to smooth peaks and control retry storms. If you use the relevant general capabilities of Baidu AI Cloud, the same order applies: first define the measurement standard, then test elasticity, and finally compare effective costs.