Methodology · Free calculator

Cheap model + low success rate = expensive outcome.

Most "AI cost" pages quote the per-call price. That number is wrong for production agents. The real bill is cost per successful task — what you actually pay for an outcome, not a request. Estimate yours above, and learn why the metric matters below.

Cost per successful task

Estimate your AI bill, model by model.

Cheap model + low success rate = expensive outcome. Estimate cost per task that actually shipped — not per API call.

Estimated % of calls that ship a usable answer. Calibrate from your own data.
Current monthly cost$3,000
Cheapest alternative$108−96%
Cost per successful task$0.03at 92% success
Model$ / M input$ / M outputMonthlyvs. current
Llama 3.1 8BMeta · Together$0.18$0.18$108−96%
GPT-4o miniOpenAI$0.15$0.60$135−96%
Qwen 2.5 72BAlibaba · OpenRouter$0.40$0.40$240−92%
DeepSeek V3DeepSeek$0.27$1.10$245−92%
Gemini 2.5 FlashGoogle$0.30$2.50$400−87%
Llama 3.1 70BMeta · Together$0.88$0.88$528−82%
Claude Haiku 4Anthropic$0.80$4.00$800−73%
Mistral Large 2Mistral$2.00$6.00$1,600−47%
Gemini 2.5 ProGoogle$1.25$10.00$1,625−46%
GPT-4.1OpenAI$2.00$8.00$1,800−40%
Claude Sonnet 4Anthropic$3.00$15.00$3,000current
GPT-5OpenAI$5.00$20.00$4,500+50%
Claude Opus 4Anthropic$15.00$75.00$15,000+400%

Prices reflect typical 2026 list pricing and may change. Verify with each provider before you commit to a budget.

Price alone doesn't tell you if a cheaper model can safely replace yours.

See the live benchmark data →
Why this metric

Three numbers to keep separate.

A

Cost per call

What every pricing page quotes. Useful for capacity planning; almost useless for budgeting an agent. A $0.001 call that fails 30% of the time and triggers a $0.05 retry is not a $0.001 call.

B

Cost per attempt

Cost per call × average attempts per successful task. Captures retries. Still missing the real cost of partial answers that need human review.

C

Cost per successful task

What every production system should budget against. The full spend, divided by the count of tasks that actually shipped a usable answer. The flagship metric for Harpd ModelSwitch.

Worked example

Two models, same workload, very different bill.

Claude Sonnet 4DeepSeek V3
List price (5k in / 1k out)$450 / month$57 / month
Success rate on 200 real tasks94%78%
Retries needed (avg)1.061.28
Effective cost per successful task$5.06$5.84
VerdictWins on qualityCheaper per call, more expensive per outcome

Hypothetical example. Your success rate, retry pattern and prompt shape will be different. ModelSwitch measures these numbers on your real tasks.

Cost per successful task, answered

What is "cost per successful task"?
It is the metric that matters when you are running an agent or a production LLM pipeline: monthly spend ÷ number of tasks that actually shipped a usable result. Two models can have the same per-call cost and wildly different cost per successful task because their success rates differ.
Why is cost per successful task different from cost per call?
A $0.001 call that fails 40% of the time is effectively $0.00167 per call that ships, before you account for retries. Add retries, and the real cost multiplies again. Cost per successful task folds success rate and retry cost into one number.
What is a good success rate?
For production agents: 90%+ on the tasks you actually ship. For one-off chat: not really applicable. For RAG extraction: 95%+ is the bar. The default 92% in the calculator is a reasonable planning estimate; calibrate from your own data.
How do I measure cost per successful task on my real workload?
Harpd ModelSwitch runs your real tasks against 5–10 models and reports cost per successful task for each, given your own success definition. The free AI Cost Calculator above gives you the same shape using your assumed success rate.
Is the cheapest model always the best cost per successful task?
No. A 10× cheaper model that succeeds on 50% of tasks is the same cost per successful task as the flagship, before you account for retries and downstream rework. The methodology page explains why.
How does ModelSwitch measure success?
You upload 20–200 of your real tasks with a reference answer (or a judge prompt), and ModelSwitch runs them against every candidate model. Pass/fail is decided by your reference or your judge; cost per successful task is computed from your measured pass rate and the model list price.