Model Selection Goes Beyond Unit Price: Token Efficiency Drives Real Cost
When two large language models score the same on a comprehensive benchmark, unit price alone does not settle the choice. This article explains why output token usage often determines the real cost of a task, compares three metrics that are commonly confused, shows how to calculate per-task and quality-adjusted costs with a Python example, and lists what to monitor after deployment.
1. Once Scores Are Tied, the Selection Problem Really Begins
When two large language models earn the same score on a comprehensive evaluation, many teams turn straight to price. This reasoning has some merit. When capabilities are similar, cost often decides the final choice. However, comparing only the price per million tokens can miss a key variable: how many tokens each model actually consumes to complete the same task.
A composite score measures average performance on a set of standardized tasks. It shows how close two models are in capability ceiling, but it does not show the cost of each call. Two models with the same score may behave very differently. One may answer concisely and directly, while the other tends to produce lengthy reasoning. The first may have a higher unit price, but its total cost is not necessarily higher.
2. Three Metrics That Are Often Confused
1. Composite Score
A composite score is a weighted result across multiple tasks, typically covering coding, reasoning, and knowledge question answering. It works well for rough screening but should not be used directly to predict business results. When the task distribution of the benchmark does not match your business data, the score’s reference value drops noticeably. Before selecting a model, confirm how closely the benchmark tasks overlap with your own scenarios.
2. Parameter Count
Parameter count includes total parameters and active parameters. Models with a mixture-of-experts (MoE) architecture activate only a subset of expert networks in each forward pass. Active parameter count therefore relates to the computation per step, while total parameter count determines the memory and storage needed for the weights. Both affect deployment cost, but neither converts directly into call pricing or answer quality. Treating parameter count as a proxy for “smaller is cheaper, larger is stronger” is a common mistake.
3. Token Unit Price
Token prices usually have two parts, input and output, and output prices are generally much higher than input prices. For the same length of text, generation costs far more than reading. When selecting a model, record input and output usage separately to get a bill estimate close to actual costs.
3. Why Output Token Volume Is the Key Variable
Reasoning models may generate a large amount of intermediate content before giving the final answer. This content counts as output tokens and is billed at the output rate. As a result, a model with a lower unit price can still cost about as much as, or more than, a model with a higher price and shorter output, if its average output length per task is significantly longer.
You can estimate the relative cost of the output portion with a simple relationship:
Effective cost multiple ≈ unit price multiple ÷ output token usage multiple
Suppose Model A’s output price is three times Model B’s, but its average output token count is 1.5 times Model B’s. For the output portion, Model A’s actual cost is then about twice that of Model B. These figures only illustrate the calculation method. Actual bills also include input charges and other billing items, so output alone should not decide the choice.
4. How to Calculate the Cost per Task
Cost per task depends on input, output, and retries together. The example function below can be reused directly:
from dataclasses import dataclass@dataclassclass Pricing:input_per_million: float # Input price per million tokensoutput_per_million: float # Output price per million tokensdef cost_per_task(pricing: Pricing,input_tokens: float,output_tokens: float,retry_rate: float = 0.0) -> float:"""Estimate the average cost of a single task.retry_rate is the share of calls that must be retried after a failure,for example 0.05 for 5%."""base = (input_tokens * pricing.input_per_million+ output_tokens * pricing.output_per_million) / 1_000_000return base * (1 + retry_rate)# The figures below are illustrative only. All prices are in US dollars.model_a = Pricing(input_per_million=1.0, output_per_million=4.0)model_b = Pricing(input_per_million=3.0, output_per_million=12.0)cost_a = cost_per_task(model_a, input_tokens=50_000, output_tokens=40_000, retry_rate=0.05)cost_b = cost_per_task(model_b, input_tokens=50_000, output_tokens=25_000, retry_rate=0.02)print(f"Model A cost per task: {cost_a:.4f}")print(f"Model B cost per task: {cost_b:.4f}")
In the illustrative data above, Model A’s unit price is one-third of Model B’s, but its average output is longer. Its cost per task is therefore about half of Model B’s. Whether a unit price advantage holds depends on the input and output structure of the task.
Different workloads weigh these factors differently. Long-document question answering is input-heavy, so unit price has a larger effect. For output-heavy tasks such as code generation and long reasoning chains, output token efficiency matters more. Before selecting a model, determine which category your workload falls into.
5. Quality-Adjusted Cost: Don’t Let Cheap Results Turn Into Rework
A low cost per task does not mean every result is usable. If a model has a low task pass rate, manual rework or repeated calls raise the actual cost. For this reason, we recommend a quality-adjusted cost:
Cost per qualified result = cost per task ÷ task pass rate
Using the illustrative data from the previous section, if Model A’s cost per task is 0.21 and its pass rate is 90%, the cost per qualified result is about 0.23. Pass rates must be measured on real business samples with clearly defined acceptance criteria. Otherwise, the numbers cannot be compared.
6. Metrics to Monitor After Selection
After launch, track at least the following metrics:
- Output token distribution: Record the mean, median, and 90th percentile. Long-tail tasks often drive up total cost, and looking only at averages can hide this.
- Task pass rate: Combine manual review with automated checks to measure the share of qualified results.
- End-to-end latency: Longer reasoning chains mean longer user wait times, which affects interactive experiences.
- Retry and failure rate: Timeouts, format errors, and API exceptions all generate extra calls.
- Input length changes: Bloated prompt templates or overly long context concatenation can quietly raise input costs.
- Cache and reuse: If the platform offers relevant mechanisms, verify their hit rate and actual billing effect.
7. Building a Closed-Loop Evaluation
Follow these steps to build a long-term evaluation process:
- Sample real traffic: Draw stratified samples from business logs by task type, covering both common and long-tail requests.
- Fix the evaluation protocol: Standardize prompts, judging criteria, and evaluation scripts so that models can be compared directly.
- Record three data types together: For each call, log the quality result, token usage, and latency.
- Plot a quality-cost curve: Put cost per task on the x-axis and pass rate on the y-axis. Choose options on the frontier, and eliminate options that other options beat on every dimension.
- Retest regularly: Model version updates, billing rule changes, or prompt changes can all alter the conclusion.
In step 4, teams often reduce token consumption by limiting output length or adjusting reasoning intensity. These methods usually work, but their effect on quality must be verified at the same time. Specific control parameters should follow the official documentation for the API you use, not assumptions based on experience.
8. Conclusion
Model comparison is shifting from a single score toward a combined trade-off among quality, cost, and latency. Unit price is the starting point for cost calculation, while output token efficiency determines the size of the final bill. Teams should include cost per task and cost per qualified result in their regular metrics, and validate conclusions with real business data. Only then will selection decisions hold up over long-term operation.
