Same Task, Multiple LLMs: Equal Capability, Very Different Costs
When multiple mainstream LLMs all achieve full marks on the same structured spreadsheet task, capability is no longer the differentiator—cost is. This article explains how to evaluate models across three independent dimensions (capability, quality, and cost), breaks down the key factors that drive your bill (input/output token ratios, context length, reasoning depth, retries, and billing rules), shows how to compute cost per passed task with sample code, and provides a reusable evaluation workflow and selection guidelines for engineering teams.
1. Background: Once Capability Is Sufficient, Cost Becomes the Deciding Factor
In an office-oriented test, several large language models were given the same prompt to generate a structured spreadsheet. Every model under test fully met the requirements and received a perfect score. This shows that for this class of tasks, the baseline capability of mainstream models is already good enough. What actually separates them is the bill.
This has practical implications for engineering teams. As model capabilities converge, model selection shifts from “which model can do the job” to “what does it cost to get the job done.” Quotas, unit prices, call counts, and failed retries together determine the true cost of a task.
2. Separate the Dimensions: Capability, Quality, and Cost
Many teams evaluate models with a single overall score, which tends to hide problems. A better approach is to break the evaluation into three independent dimensions:
- Capability: Was the task completed? Does the output satisfy the required format, logic, and constraints?
- Quality: The finer details of the output—for example, whether formulas are correct, whether any data is missing, and whether the structure is easy to read.
- Cost: The input tokens, output tokens, number of calls, and latency consumed per task, along with the corresponding billed amount.
These dimensions are not always positively correlated. One model may score full marks on capability but produce verbose output, driving up output tokens. Another may reason more briefly, cost less, and still meet the format requirements. Looking at only one dimension easily leads to biased decisions.
3. Key Factors That Shape the Bill
3.1 The Ratio of Input to Output Tokens
Most pricing schemes charge separately for input and output, with output typically priced higher. For tasks that ask the model to “return only the table,” output volume is relatively fixed. For tasks that ask it to “explain the reasoning first, then give the result,” output volume grows noticeably. Evaluations should track input and output separately rather than looking only at the total.
3.2 Context Length
Every call carries the system prompt, conversation history, and reference material. In multi-turn conversations or long-document scenarios, repeatedly transmitted context is often the largest cost component. Trimming irrelevant context and summarizing conversation history is usually more effective than switching models.
3.3 Reasoning Depth and Thinking Modes
Some models offer adjustable reasoning effort or thinking modes. Turning them on may improve accuracy, but the hidden reasoning tokens are also billed. Whether to enable them should depend on task difficulty. For simple tasks like format conversion or field extraction, lower reasoning effort is usually sufficient.
3.4 Retry and Failure Costs
Regeneration after an unacceptable output is a frequently overlooked cost. If a model’s first-pass rate is only 60%, the average cost per acceptable result will be significantly higher than its unit price suggests. Cost should therefore be calculated per passed task, not per API call.
3.5 Billing Rules and Quota Mechanics
How quotas are converted, the order in which plan credits are deducted, whether cache hits are billed, and whether pricing varies by time of day—all of these affect the final bill. These rules are service-specific details. Always refer to the provider’s official billing documentation, and note the test date and billing methodology in your evaluation report.
4. How to Interpret Claims Like “X% Savings”
Public benchmarks often claim savings of a certain percentage of quota or credits. When reading such figures, ask four questions:
- Is the task representative? Can conclusions from a single task generalize to other scenarios?
- What is the baseline? A default model, a fixed model, or manual work?
- How large is the sample? Were multiple runs averaged?
- Is the billing methodology consistent? Does it include retries, caching, and plan deductions?
A setup that saves substantially in one test may yield completely different results on long-document analysis or code generation. The most reliable approach is to evaluate with your own business data.
5. Auto Mode and Routing Trade-offs
An “auto mode” is essentially a routing strategy: selecting a model based on task characteristics. Common routing criteria include:
- Task type: Classification, extraction, generation, and reasoning tasks are matched to different models.
- Input length: Short tasks go to low-cost models; long-context tasks go to models with large context windows.
- Quality fallback: A low-cost model generates first; rules or a scoring model validate the output, and failures are escalated to a stronger model.
Routing lowers average cost but introduces new uncertainty. When routing goes wrong, users may receive inconsistent quality—and such problems are hard to notice. Routing strategies therefore need proper logging and periodic spot checks.
The following example shows how to compute cost per passed task:
from dataclasses import dataclass@dataclassclass UsageRecord:input_tokens: intoutput_tokens: intpassed: booldef cost_per_passed_task(records, input_price_per_m, output_price_per_m):"""Compute cost per passed task. Prices are in currency per million tokens."""total_cost = 0.0passed_count = 0for r in records:total_cost += (r.input_tokens * input_price_per_m+ r.output_tokens * output_price_per_m) / 1_000_000if r.passed:passed_count += 1if passed_count == 0:return float("inf")return total_cost / passed_count
The key point is that the denominator is the number of passed tasks, not the number of calls. Failed calls still cost money, so they must all be counted in the numerator.
6. Building a Reusable Cost Evaluation Workflow
A recommended workflow:
- Define the task set: Sample from real business workloads, covering simple, medium, and complex difficulty levels. Avoid relying on demo examples.
- Fix the scoring criteria: Automate whatever can be checked by rules (format, fields, computed results), supplemented by manual spot checks. Avoid scoring by impression.
- Record usage: For every call, save input tokens, output tokens, latency, and error information. If you use a cloud model service, reconcile the platform bill against call logs to ensure a consistent methodology.
- Unify the billing basis: Convert all options to the same currency and unit of measurement before comparing.
- Run multiple times: Run each task several times to observe the variance in pass rates.
- Report properly: Report average cost per passed task, pass rate, and tail latency—not just unit prices.
7. Selection Guidelines
- Capability is a prerequisite: filter first, then compare prices.
- For formatting and extraction tasks, prefer low-cost models with automated validation.
- For complex reasoning tasks, keep stronger models in the mix—saving money at the cost of repeated rework is a false economy.
- Add observability to routing strategies: log every routing decision and its outcome.
- Re-test regularly. Model versions and billing rules change, and old conclusions expire.
8. Conclusion
Multiple models can produce identical capability results on the same task while their bills differ by a factor of several. The key to sound model selection is breaking cost down into measurable factors—input/output ratios, context length, reasoning depth, failed retries, and billing rules—and validating every conclusion with your own task data.
