Frontier LLM Selection: Optimize for Cost per Successful Task
Choose frontier language models by measuring strict task success, end-to-end cost, latency, and stability—not benchmark rankings alone. This article explains how to build representative evaluations, account for retries and human rework, test reasoning effort, and implement model routing with clear budgets and switching thresholds.
Around 2026, frontier language models have been evolving faster, with longer context windows, more multimodal inputs, and increasingly specialized optimizations for agents and coding. Yet public benchmark scores may differ by only a few points while operating costs differ severalfold.
Teams that still assume “larger models and more reasoning are always better” can end up paying more and delivering less on tasks with strict acceptance criteria. A more reliable approach is to turn model selection into a measurable engineering problem: under the same tasks, scoring rules, and budget constraints, compare the cost, latency, and rework required for each successful outcome.
Define Success Before Comparing Capability
Coding and knowledge-work tasks are rarely single-turn exchanges. A delivery typically involves reading requirements, planning, implementing, running checks, and revising based on failures. Judging only whether the final answer looks correct overestimates practical usefulness.
Distinguish at least three levels of success:
- Lenient pass: The key steps are correct, but some edge cases, formatting requirements, or hidden tests fail.
- Strict pass: All predefined checkpoints are satisfied without human fixes.
- Production-ready pass: The task passes strictly and also meets latency limits, cost ceilings, traceable logging requirements, and failure-replay requirements.
Multi-stage evaluations reveal where a model drifts during execution. It may perform well initially but lose points when maintaining state, interpreting tool results, or making regression fixes.
Checkpoint-based evaluation often reveals a recurring pattern: leading models cluster within a narrow range of strict pass rates, sometimes separated by only a few checkpoints. Meanwhile, differences in output length, retries, and reasoning settings can produce an order-of-magnitude cost gap.
For procurement, “Which model is strongest overall?” is therefore less useful than “Which model has the lowest cost per successful task on our workload, with acceptable variance?”
Your evaluation set does not need the scale of a public benchmark, but it must represent real demand. Use a fixed workload mix, such as:
- Modifying existing code
- Implementing small modules from scratch
- Diagnosing failures from logs
- Extracting and rewriting information under long-document constraints
- Making consistent changes across multiple files
For each task, record input tokens, output tokens, tool rounds, whether retries occurred, and minutes of human intervention. Start small and expand as needed, but once evaluators have received the scoring rules, do not change them midway to make a candidate look better.
The Cost Profile Matters More Than the Advertised Price
Flagship models typically have separate input and output prices per million tokens. Some also offer fast, long-context, or batch pricing tiers. Comparing input prices alone can be misleading.
In coding workloads, output is often more expensive. If reasoning tokens, including hidden reasoning, are billed as output, increasing reasoning effort can cause costs to rise nonlinearly. Failed attempts add another complication: a retry may require resending the entire context.
Measure cost per success rather than cost per API call:
Call cost C = Pin * Tin + Pout * Tout + C_tool + C_retrySuccess rate p = Strict passes / Valid attemptsCost per success S = C_avg / p
Here, Pin and Pout are input and output prices, with units matched to the token counts. Tin and Tout are input and output token usage. Inspect both median and P90 token counts from evaluation logs so unusually short samples do not distort the picture.
C_tool includes code execution, retrieval, and file access. Even if those expenses are outside the model provider’s bill, include them in end-to-end costs. Otherwise, the comparison may incorrectly favor a workflow that generates less text but makes excessive tool calls. Account for retry costs consistently rather than counting them twice.
Use strict passes to calculate p, not lenient passes. If human recovery is common, also include:
Human recovery cost = Human minutes / 60 * Internal hourly rate
Without this adjustment, a cheap route that frequently fails may appear more economical than it really is.
Consider an illustrative calculation—not actual vendor pricing or performance. Model A costs an average of 0.8 cost units per attempt and has a strict pass rate of 0.16, giving S ≈ 5. Model B costs 0.2 units and passes at a rate of 0.13, giving S ≈ 1.5.
Model A has the higher pass rate but the worse cost per success. However, adding Model B’s P90 latency and human rework could reverse the decision. Selection reviews should examine both average cost per success and tail behavior, not just average call cost.
Pricing windows also matter. Promotional, preview, or committed-usage rates may be substantially lower than later rates. Input and output prices can both rise when that window ends. Treating the current bill as a year-long architectural assumption can fail at renewal.
Evaluation materials should list:
- Published prices
- Discount conditions
- Usage tiers
- Pricing when context thresholds are exceeded
- Whether retries incur repeated input charges
More Reasoning Does Not Always Improve Results
Many models offer low, medium, high, or even higher reasoning settings. The intuitive assumption is that more reasoning makes difficult tasks more reliable.
In strict multi-stage evaluations, however, gains often diminish and may even reverse. Longer intermediate reasoning creates more opportunities for unnecessary elaboration, format drift, overengineering, or unsolicited refactoring of work that already passed. Strict pass counts can fall while costs multiply.
Reasoning effort should therefore be a task-level decision, not a global switch:
- Use medium effort as the baseline. Record strict pass counts, average output length, and cost per success.
- Escalate only selected failures. Focus on tasks whose failures are concentrated in planning or mathematical derivation.
- Stop escalating when the economics worsen. If pass counts do not increase and cost per success rises, retain the original setting. Redirect the budget toward retry strategies, additional tests, or smaller task decomposition.
- Constrain structure for format-sensitive tasks. For rewriting, extraction, and patch generation, prioritize output requirements over additional reasoning.
A short routing sketch is enough. The important point is to make escalation a reversible experiment:
result = run(task, effort=medium)if result.strict_pass:return resultif result.fail_type in {plan_gap, multi_hop} and budget_left:return run(task, effort=high, max_extra_cost=2.0 * result.cost)return fallback_or_human(result)
Keep all controllable variables fixed during escalation tests, aside from unavoidable randomness: the same task statement, tool permissions, and maximum number of rounds. Otherwise, you cannot tell whether reasoning effort helped or whether changes to prompts and tools caused the improvement.
Compare Capabilities, Not Marketing Claims
Replace model-by-model commentary with a capability checklist. Every dimension should include concrete failure examples, not just descriptive adjectives.
Context and state. A long context window does not guarantee reliable long-running tasks. Test multi-file patches longer than routine workloads. Check whether the model forgets earlier constraints in later steps or damages unrelated files.
Input modalities. Determine whether text, images, audio, video, or document layouts actually inform important decisions. If the workload is purely code-based, multimodal premiums should not determine the default route.
Tools and agents. Evaluate whether tool results are correctly incorporated into the next step—not merely whether the model can call tools. A workflow that reaches the required checkpoints within a limited number of rounds has greater production value.
Knowledge work. Test conflicting clauses in long documents, whether citations support the relevant claims, and whether uncertainty is presented as certainty. Strong coding results do not automatically imply reliable review work.
Security and compliance. Evaluate jailbreak success rates, sensitive-data disclosure, and whether logs are persisted by default alongside accuracy. These are not issues to postpone until after deployment.
A new release means it is time to rerun evaluations, not necessarily time to switch. If several new flagships arrive within six weeks, freeze a regression set and replay it weekly. Track whether strict pass rate, cost per success, and tail latency cross your predefined switching thresholds.
A threshold might require either:
- A strict pass-rate improvement above an agreed minimum, with no deterioration in cost per success; or
- A cost-per-success reduction above an agreed percentage, with no decline in strict pass rate.
Treat changes below those thresholds as noise.
A Practical Model Selection Process
1. Map the workload
Classify tasks by request volume rather than topic popularity: interactive coding, batch refactoring, customer-support knowledge queries, offline labeling, and review sampling.
For each category, specify acceptable latency and maximum cost per task.
2. Build a small, rigorous private evaluation set
Start with 30–50 tasks per category. Include hidden checkpoints so the evaluation does not merely reward models that write convincing introductions.
Version the task statements, scoring scripts, and failure taxonomy.
3. Compare candidates in the same evaluation round
Evaluate two or three candidates alongside a low-cost baseline. The baseline answers whether a flagship is worth its premium.
Use the same system prompt, tool sandbox, and retry limit for all candidates. Do not introduce a candidate-specific prompt halfway through the comparison.
4. Measure performance, economics, and stability
Calculate three primary metrics:
- Strict pass rate
- Cost per success,
S - P90 latency
Add a stability metric, such as overlap among the sets of tasks passed across three consecutive replays. A model with low overlap may be unsuitable for unattended operation even when its averages look good.
5. Build routing instead of selecting a single winner
Default to the route with the best cost per success among those that meet stability requirements. Escalate only when the failure type warrants it. If the budget is exhausted or failures repeat, fall back to a smaller model or a human.
Put routing rules in configuration rather than relying on individual habits.
6. Continue measuring after deployment
Sample production requests for offline replay and review cost-per-success drift monthly.
Changes to prompts, tool protocols, or pricing windows should trigger a small regression run. Providers may also change default reasoning behavior without changing the visible API, potentially affecting pass rates.
Common Selection Mistakes
Treating one successful demo as throughput evidence. An impressive patch does not establish reliable checkpoint performance.
Optimizing only input prices. Output and retries can dominate coding costs.
Assuming higher reasoning effort is safer. Higher settings may produce more verbose output and more deviations from the required format.
Replacing private evaluations with public aggregate scores. Public tasks do not match your repository conventions, framework versions, or acceptance criteria.
Switching all traffic over a few checkpoints of improvement. Migration costs include prompts, evaluation sets, permissions, and operational experience. If the improvement in cost per success does not cover those costs, keep the existing route and add the new model only to the failure-escalation path.
Ignoring human time. If pass-rate improvements come with additional review time, internal labor costs can quickly exceed token-price differences.
The Minimum Configuration to Get Started
A team can begin with one table containing:
- Task type
- Candidate route
- Reasoning effort
- Maximum cost
- Strict pass criteria
- Failure destination
Make acceptance criteria as automated as possible, using checks such as test-command exit codes, structural validation, or whether cited excerpts exist.
At minimum, retain request IDs, reasoning settings, token counts, tool rounds, and strict pass outcomes in logs so cost per success can be recalculated later.
The configuration need not depend on a particular platform:
routes:interactive_code:primary: {tier: flagship, effort: medium, max_cost: 1.0}escalate: {tier: flagship, effort: high, max_cost: 3.0}fallback: {tier: economy, effort: low}batch_refactor:primary: {tier: economy, effort: medium, max_cost: 0.4}
Here, tier is only a cost-tier label. Bind it to a specific model service based on evaluation results, and record the evaluation date and task-set version.
When the next flagship arrives, you can update a configuration entry instead of redesigning the development workflow.
Conclusion
Frontier model marketing will continue to emphasize claims such as “most capable yet” and “leading across the board.” Engineering decisions should answer narrower, more measurable questions:
- How much do strict pass rates differ on our multi-stage tasks?
- How much does cost per success differ?
- Does increasing reasoning effort actually increase the number of successful tasks?
When pass rates are close but costs differ severalfold, prioritize cost-effectiveness and stability. Reserve expensive, high-effort routes for subsets with matching failure types and sufficient budgets.
The right time to reevaluate depends less on release frequency than on whether your regression suite is ready. With consistent logs, acceptance criteria, and switching thresholds, each new generation can be measured against the same standard rather than restarting a debate about model reputation.
