Token-Based vs. Task-Based LLM Pricing: The Cost Gap Developers Misread
Token pricing and task-based pricing use different units of measurement, so a lower price per million tokens does not always mean a lower bill. This article breaks down the gap across four layers: how sparse MoE model architecture separates capacity cost from per-token compute cost, how a runtime harness changes request count and context size without touching model weights, the formula for converting unit price into cost per completed task using retry rate and first-pass yield, and a reproducible checklist for model selection. It shows why output-heavy workloads shrink the apparent savings of cheap input tokens, and why runtime optimization can halve the bill at an unchanged unit price.
1. Where the Conflict Comes From: Two Price Tags in Different Units
In November 2026, one cloud provider cut its Flash-tier price list to 1 RMB per million input tokens and 3 RMB per million output tokens. Over the same period, another provider’s same-tier model still charged 2 RMB for input and 8 RMB for output during peak hours. Read as a single line of numbers, the first option is roughly two-thirds cheaper, and an ordinary developer has no reason not to open its documentation first.
A second set of numbers grows from a completely different direction. On the same high-spec inference instance, swapping in a different task runtime (a scheduling layer commonly referred to as a Harness), the total cost of a 60-task real-world suite dropped from $12 to $6, while elapsed time increased by only 4.2% and the unit-cost score rose from 218 points per dollar to 450 points per dollar. Not a single model parameter changed, yet the bill did.
Put side by side, these two sets of numbers form the conflict this article unpacks: the cheap option lands in different places. One price tag is denominated in tokens; the other is settled per task. Anyone who uses the first to compare against the second will draw the wrong conclusion. Each layer below comes with a concrete, checkable example rather than abstract reasoning.
2. Layer One: The Price Tag Is Written into Model Architecture
Sparse MoE splits the “parameter pool” and the “compute per token” into two separate things. The parameter pool determines how much knowledge and style the model can hold; the activation volume determines how much a single inference pass actually computes. Take a representative sparse model: 125B total parameters, only about 6B activated per token, plus roughly 51B of N-gram embeddings attached for fast hits on high-frequency fragments.
Two consequences follow directly:
- Compute cost and capacity cost are decoupled. You pay for “breadth” in memory and concurrency slots; you pay per call in activated parameters and sequence length. A large capacity does not mean every inference is expensive.
- The price advantage is amplified in short-input scenarios. When the input token price is low, workloads that are “input-heavy, output-light” benefit most: long context, retrieval concatenation, and feeding in code repositories.
Illustration: the same call with roughly 8,000 input and 500 output tokens costs 0.008 + 0.0015 ≈ 0.0095 RMB at 1 RMB input / 3 RMB output, versus 0.016 + 0.004 ≈ 0.02 RMB at 2 RMB input / 8 RMB output. The gap is about 2.1x, not the two-thirds saving the price list suggests. The reason is simple: the output unit price is usually higher, and output volume is determined by the task, not by the price tag.
3. Layer Two: The Bill Is Written into the Runtime
The runtime (a Harness-style scheduling layer) does not change model weights. It changes how many requests are actually sent to complete one task, and how much context each request carries. Four common optimization targets:
- Prefix cache reuse: once stable prefixes such as system prompts, tool descriptions, and repository skeletons hit the cache, the repeatedly billed portion drops sharply.
- Context trimming and retrieval instead of long stuffing: replacing “stuff the whole repository into the window” with on-demand retrieval of fragments typically cuts input volume by an order of magnitude.
- Parallelism and batching: making independent subtasks concurrent trades throughput for unit price, and batch discounts for total price.
- Tiered model routing: simple steps run on a lightweight tier, and only hard parts escalate to a high-spec tier.
Illustrative logic (pseudocode):
def run_task(task):plan = planner(task) # lightweight tier, short outputctx = retrieve(task, budget=4000) # retrieval instead of long stuffingif plan.difficulty == "hard":return solver_hq(ctx, plan) # high-spec tierreturn solver_lite(ctx, plan) # lightweight tier
The drop from $12 to $6 with only 4.2% more elapsed time comes from compressing “wasted tokens” and “wasted waiting” at the same time: task completion stays the same while the billing base shrinks.
4. Layer Three: The Conversion Formula Between the Two Settlement Units
A fair comparison requires normalizing everything to the cost of “one qualified task completed”:
task cost = Σ(input tokens × input unit price + output tokens × output unit price) × retry factor ÷ first-pass yieldunit-cost score = quality score ÷ task cost
- Retry factor: when the first-pass yield is low, retries turn a nominally cheap option into an actually expensive one.
- First-pass yield: this is the exchange rate that translates “unit price” into “bill”.
- Quality score: it must be tied to business acceptance criteria, otherwise the score means nothing.
Conclusion: a 2x lower unit price with half the first-pass yield can produce a higher actual task cost. Conversely, runtime optimization that compresses retries and redundant context can halve the bill without changing the unit price.
5. Layer Four: A Reproducible Selection Checklist
- Workload profile: input/output ratio, context length distribution, concurrency peaks.
- Billing model: whether prefix caching, batch discounts, and cache-hit pricing are supported.
- Quality bar: first-pass yield, manual rework rate, acceptance criteria.
- Runtime capability: tiered routing, retrieval budget, concurrency orchestration, retry strategy on failure.
- Total cost: plug the four items above into the formula and compute cost per qualified task, instead of comparing price tags.
6. Conclusion
A cheap price tag comes from architecture; a cheap bill comes from the runtime. The question developers should really ask is not “whose unit price is lower” but “who can raise both first-pass yield and cache hit rate on my task distribution.” Once the unit of measurement is normalized to the task level, the conflict dissolves and selection no longer goes wrong.
