LLM API Pricing: Why Unchanged Per-Token Prices Don't Guarantee Lower Task Costs
This article explains why a new LLM version with unchanged API pricing can still raise the cost of each task. It covers the four billing dimensions, how prompt caching affects multi-turn and agent workloads, the limits of intelligence scores, and a framework that compares per-task cost against output quality. It also offers practical ways to control output length and track token usage across model upgrades.
1. The Trend: Higher Capability, Unchanged Unit Price, but Bills Not Necessarily Lower
Recently, the industry has seen a development that technical decision-makers should watch closely. After a new-generation large language model opened its API service, its benchmark scores rose noticeably over the previous generation. It now sits in the same tier as leading industry models, yet its API pricing stayed at the previous generation’s level.
At first glance, this looks like pure good news: the model is stronger, and the price has not changed. However, a closer look at the data published by evaluation organizations reveals a detail that is easy to miss. The new model consumes about 20% more output tokens than the previous generation to complete the same task. Even though the unit price is unchanged, the actual cost of each task may go up instead of down.
This case highlights a core issue: in LLM selection, “per-token price” and “task cost” are two entirely different concepts. Confusing them can lead to inaccurate cost estimates and poor selection decisions. This article breaks down how to evaluate LLM API costs systematically.
2. Understanding API Pricing: Four Billing Dimensions
Most mainstream LLM APIs currently use the following four billing dimensions. The pricing published for this release serves as the example:
- Input: about $1.40 per 1M tokens. Context that the user sends to the model is billed at this rate.
- Output: about $4.40 per 1M tokens. Output prices are typically about three times the input price. This has become an industry convention because the compute cost of the decoding stage is much higher than that of the prefill stage.
- Cached input: about $0.26 per 1M tokens.
- Cache discount: a cache hit is equivalent to a discount of about 81%.
2.1 Why Caching Matters
In agent applications and multi-turn conversations, the system prompt, tool definitions, and conversation history often repeat across requests. If the provider supports prefix caching (Prompt Caching), the repeated portion is billed at the cached rate, which can substantially reduce actual cost.
A simple estimation logic looks like this:
# Simplified multi-turn conversation cost estimatedef estimate_cost(rounds, system_tokens, per_round_new_tokens,input_price=1.40, output_price=4.40, cache_price=0.26):total = 0.0for i in range(rounds):cached = system_tokens + i * per_round_new_tokens # history context can be cachednew_out = per_round_new_tokenstotal += (cached / 1e6 * cache_price) + (new_out / 1e6 * output_price)return total
In long conversations, the effect of the cache price accumulates across rounds. When you evaluate the real cost of a model, include the cache hit rate in the calculation. Otherwise, the estimate will be significantly too high.
3. Intelligence Scores: Equal Scores Do Not Mean Equal Experience
Composite intelligence scores from third-party evaluation organizations, such as Intelligence Index-type metrics, are a common tool for horizontal comparison. In this case, the new model’s score rose from 53 to 60, which matches another model in the same tier.
3.1 Correct and Incorrect Uses of Scores
Appropriate uses:
- As a first-pass screening tool to group models by capability tier, such as the 50-point tier and the 60-point tier;
- To track how the same model’s capability changes across versions;
- Combined with sub-scores, such as coding, math, and agent tasks, to judge how well a model fits your scenario.
Common mistakes:
- Assuming identical scores mean full equivalence. A composite score is a weighted aggregate of several sub-scores. Two models scoring 60 can differ widely in coding and long-context understanding.
- Ignoring the composition of the test set. Whether a benchmark emphasizes reasoning, knowledge, or code significantly affects rankings.
- Treating scores as direct proxies for business results. A high benchmark score does not guarantee good performance on your own prompts.
3.2 Three Areas This Update Emphasized
According to public information, this model upgrade focused on the following areas, which also reflect a broader direction in the industry:
- Coding: code generation, multi-file code understanding, and debugging and repair. Coding has become a core measure of practical model value because it tests logical reasoning, format compliance, and long-context handling at the same time.
- Defensive cybersecurity: defensive use cases such as vulnerability analysis and security audit assistance. These reflect reliability in high-risk specialized domains.
- Long-horizon agent tasks: models must keep their goals consistent across multi-step tool calls, handle intermediate results correctly, and correct themselves after errors. These tasks consume far more output tokens than single-turn Q&A, which is one of the deeper reasons behind the 20% increase in output tokens.
4. Per-Task Cost: A More Realistic Metric Than Unit Price
The per-task cost comparison in the evaluation data is instructive:
- New model: about $0.68 per task
- Comparable model in the same tier: about $0.84 per task
- Leading closed-source model: about $1.23 per task
With intelligence scores in the same tier (around 60), the new model’s per-task cost is about 19% lower than its tier peer.
4.1 How Per-Task Cost Is Calculated
Per-task cost can be roughly expressed as:
Per-task cost = (input tokens × input price + output tokens × output price - cache discount) × average retry count
Pay attention to the average retry count. If a model’s output quality is unstable and needs multiple retries to pass validation, the actual cost multiplies. A model with slightly lower scores but stable output that needs no retries may actually cost less.
4.2 Why Output Tokens Grow
The new model’s output tokens increased by about 20% over the previous generation. Possible causes include:
- Longer reasoning chains: To improve reasoning quality, the model generates more detailed intermediate reasoning.
- More complex agent tasks: With stronger capabilities, the model tends to complete fuller multi-step workflows instead of stopping early.
- More detailed output: Responses cover more ground and explain in greater depth.
This raises an important engineering question: can output length be controlled through prompt engineering and inference parameters? Some options include:
- Explicitly asking for concise output on simple tasks, such as “Give the conclusion directly without showing the derivation”;
- Limiting the maximum number of reasoning steps and tool-call rounds in an agent framework;
- Using lower reasoning intensity for non-critical scenarios, such as the “fast mode / deep mode” switching common in the industry.
In practice, reasonable output length control typically saves 15% to 30% of output costs, with limited impact on task quality.
5. Practical Recommendations for Enterprise Model Selection
Based on the analysis above, here is an actionable evaluation framework.
5.1 Build Your Own Benchmark
Do not rely only on public scores. Build an internal test set of 20 to 50 real business prompts that cover typical input lengths, expected output formats, and edge cases. Record two dimensions at the same time: quality metrics and token consumption.
5.2 Use Cost per Unit of Quality Instead of Unit Price
Define a simple decision metric:
Cost per unit of quality = actual cost per task / business quality score
The model with the lower value is the better choice for the current scenario. In this case, the lower-cost model among those in the same tier came out ahead, which illustrates this logic.
5.3 Track Cost Drift Across Version Upgrades
When a model is upgraded, rerun your internal benchmark. Capability gains often come with output growth, so comparing bills before and after an upgrade should become a routine step. Record token consumption for each call at the gateway layer, and aggregate it by task type:
```json
{
“tasktype”: “code_review”,
“model_version”: “v5.3”,
“avg_input_tokens”: 12400,
“avg_output_tokens”: 3100,
“cache_hit_rate”: 0.72,
“avg
