AI Cost per Successful Task: Is Cheap Really Cheaper?

A lower price per token can still mean a higher cost to finish the job. Count retries, failed runs, and review time before choosing an AI model.

A charcoal clay balance scale holds a pile of dark discs on one side and a single yellow-green tile on the other.
Count what you spent to reach an accepted result. The Engineer Desk, AI-generated illustration
In this piece

Why it matters

The lowest initial charge can hide the cost of retries and rejected work. A fair comparison needs the same tasks and the same quality bar.

The cheapest AI model is the one that meets your quality bar at the lowest total cost. AI cost per successful task measures spending across a set of jobs, including failures and retries, divided by accepted results. Compare it alongside completion rate and review time.

How AI cost per successful task works

Start with a finished batch of jobs. Add every model and tool charge for that batch. Divide by the number of jobs that passed your check. Keep the cost of failed jobs in the total, as [1].

For example, your job might be turning an invoice into a row of data. The acceptance rule could require the right invoice number, currency, and total. A neat answer with the wrong total fails.

A retry belongs to the same job. If the first answer fails and the second passes, you have one accepted result. Both attempts add to its cost.

A model call leads to a check, then an accepted result or a retry. A retry loops back to the call. All attempt costs enter the total.
A workflow diagram, not a model benchmark. Retry costs stay in the total. The Engineer Desk

Write down the boundary of your calculation. Model and tool fees give you a direct usage cost. Adding human review gives you a broader work cost. Label each figure so readers can compare like with like.

An example: the smaller bill loses

Take ten invoices and two imaginary setups, A and B. These dollar amounts are made up to show the calculation. They are not vendor prices or measured results.

Setup A charges $0.02 for each first attempt. Six invoices pass immediately. Four need another attempt, costing $0.04 each. Two of those retries pass, leaving eight accepted invoices and two final failures.

Setup B charges $0.04 for each first attempt. All ten invoices pass without a retry.

Measure Setup A Setup B
First-attempt charges $0.20 $0.40
Retry charges $0.16 $0.00
Total charges $0.36 $0.40
Accepted invoices 8 of 10 10 of 10
Completion rate 80% 100%
Cost per accepted invoice $0.045 $0.040

A has the smaller bill. B costs less per accepted invoice and finishes more of the work. The table excludes human review time, which you would record separately.

That reversal is possible, not guaranteed. A less expensive model that passes the same checks may be the better choice. This example establishes no winner among real products.

Set the quality bar before choosing a model

Choose what counts as a pass before you see the outputs. Apply that rule to both setups.

For a coding task, use a defined change plus tests that check the requested behavior. Our Claude Code beginners guide gives you a starting workflow. A model saying “done” does not establish that the change works.

For a research task, check that each important claim has a source that supports it. Use the checks in AI research without fake facts. Fluent prose alone cannot pass that rule.

Set a time limit and retry allowance too. When the allowance runs out, record a final failure. Keep unfinished or unscored jobs visible, with their spend. Finish judging the same batch before declaring a winner.

Use a worksheet to compare your own tasks

Copy this header into a file called tasks.csv and open it in a spreadsheet. Each row represents one job, in one trial, with one setup. Keep the same task IDs when comparing setups.

task_id,trial_id,setup,outcome,attempts,api_usd,tools_usd,review_minutes,elapsed_seconds

The sheet starts blank. Fill it from your own records. Use pass or fail for a final outcome, and pending while a job remains unscored.

In each row, include all attempts in api_usd and tools_usd. Include a fallback model if one was used. Record human corrections as review minutes, even when the corrected result eventually passes.

For each setup, calculate:

  • Direct cost per success: total API and tool charges divided by passed jobs.
  • Completion rate: passed jobs divided by all jobs in the finished batch.
  • Review time: total minutes spent checking and correcting that batch.

If you want to price the review work, choose an hourly rate. Multiply review minutes by that rate, then divide by 60. Add this amount to direct charges before dividing by passed jobs. State the rate you chose; it is an assumption.

Use identical inputs, acceptance rules, and retry limits across setups. Record model identifiers, settings, and dates in your notes. Repeat the comparison before treating a small difference as a buying decision.

What the bill can hide

An API is the interface your software uses to call a model. Its token prices charge for units of input or output. Record actual billed usage rather than estimating cost from the answer's visible length.

For example, [3] says response pricing includes thinking tokens as well as output tokens. Check how your provider reports them. Avoid adding a reasoning charge twice if it is already included in your cost total.

Retries can also repeat an action outside the model. If your workflow submits records or sends messages, use the protections in our webhook retry guide. An accepted answer does not undo a duplicate action.

When this comparison helps

Use it when choosing a model or changing a workflow you can judge consistently. Start by comparing simple setups on work you actually need done.

In its [2], Google reports a low-thinking Gemini setup that solved all 50 prompts. The study used one run per setup. It is a reason to check a simpler baseline before adding routing, not proof of universal savings.

Keep a minimum completion rate and a deadline beside your cost target. A setup that abandons difficult jobs might have a low cost per success. It still fails your needs if too much work remains undone.

Frequently asked questions

Does a shorter output limit reduce reasoning costs?

It can cut a response short without reducing the model's thinking setting. Google's [3] says its output limit includes thought tokens. A response can stop before producing a usable answer, while generated thinking tokens remain billable. Check the controls for your chosen model and API.

What if no tasks succeed?

Report “no successful completions,” the total spend, and a zero completion rate. Cost per success has no finite value when its denominator is zero. A spreadsheet should display a clear message rather than a misleading $0.

Can I use a monthly chat subscription in this calculation?

You can allocate your own subscription payment across accepted jobs, but label it as an allocation. It is not an API charge per request. If the subscription covers other work too, explain how you split the payment.

Pick one repeatable job, write its pass rule, and start the blank worksheet. Compare accepted work, completion rate, and review time before switching models.

Sources

  1. Cost per successful task, The Inference Company (theinferencecompany.si)
  2. Cost per task: Using cheap classifiers to route across Gemini models and thinking levels, Google Developers Blog (developers.googleblog.com)
  3. Gemini thinking, Google (aistudio.google.com)
  • AI costs
  • Model selection
  • Evaluation

Spot an error? Tell us. See how we handle sources and corrections in our editorial standards.

Found this useful? Get The Weekly Desk, one concise email a week.