Explore WhatLLM

Search WhatLLM

Highest intelligence scores

No matching model variants. Try a shorter name.

Cost analysis

The cheapest coding model is not always the cheapest.

The price of tokens is only the start. Compare what you spend to produce a change that passes your tests and review.

Article summary
Unit that matters: an accepted change
1
Cost categories to record
4
Tasks, harness, budget and acceptance rules
Same
Methodology reviewed
Nov 2026
On this page

A cheap failed patch is not necessarily a cheap accepted patch. A coding agent reads files, calls tools, may retry, and still needs its output checked. Price the workflow, not just the model call.

Calculate cost per accepted change

Sum the actual costs for all attempts in the evaluation, including failed attempts and retries, then divide by the number of changes that satisfy a pre-agreed acceptance rule.

cost per accepted change = total workflow cost ÷ accepted changes

Include model and cache charges, tools and infrastructure, human review and correction, and any escalation. Measure elapsed time separately; it is not automatically a monetary cost.

If no changes are accepted, the ratio is undefined. Report the spend and zero successes rather than showing a zero or infinite value as a normal price. Set the same policy for every candidate.

A hypothetical worked example

Suppose two setups each receive 20 comparable issues under the same rules. Setup A costs $40 in model, tool and review time and produces 10 accepted changes: $4 per accepted change. Setup B costs $60 and produces 15: also $4 per accepted change. Their success rates differ, and neither small sample establishes a reliable winner.

This example is arithmetic, not a benchmark result or a claim about any model. Compare task categories and uncertainty as well as the overall ratio; one difficult or expensive task can change the result.

Do not combine unrelated benchmark numbers

Artificial Analysis reports costs for particular evaluation suites and configurations. A cost per Intelligence Index task is not the measured cost of a Terminal-Bench attempt. Dividing one by a success rate from another benchmark does not produce observed cost per solved coding task. We removed the earlier cross-benchmark ranking for that reason.

Compare cost and success from the same task set, benchmark version, harness, model variant, provider and retry policy. Terminal-Bench 2.1, Hard and 4.0 are different measurements; do not rank them as if they used one identical test. The Terminal-Bench 4.0 release notes describe why changes to tasks and resources require reruns.

The separate Artificial Analysis Coding Agent Index methodology describes its own task-level runs and pooled efficiency measures. Its agent results should not be relabeled as a model-only score or as your production cost.

Measure your own workflow

  1. Choose representative issues from your repositories, including straightforward, multi-file and high-risk work. Keep a held-out set separate from prompt and workflow tuning.
  2. Freeze the starting commit, agent harness, model configuration, tools, time and spending limits, retry policy and acceptance criteria.
  3. Randomize task assignment or run each candidate on the same independent starting state. Avoid exposing later candidates to previous solutions.
  4. Record all attempts, token and cache usage, infrastructure, review minutes, elapsed time, failures and accepted results.
  5. Review security and correctness as well as tests. Report results by task type and include uncertainty; inspect failure traces before deciding.

Sources and limits

Public results are useful for a shortlist; your codebase, tool permissions, review standards and provider terms determine whether the same system works for you. Continue with the repository evaluation guide, the coding benchmark guide or the coding model ranking.