---
title: Model A costs $3 per million input tokens and $15 per million output tokens; model B costs $1 and $5. On your agentic…
url: https://gurkanozkan.ai/learn/questions/recent-a-cost-01/
markdown: https://gurkanozkan.ai/learn/questions/recent-a-cost-01.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/recent-a-cost-01.json
robots: noindex
---

# Model A costs $3 per million input tokens and $15 per million output tokens; model B costs $1 and $5. On your agentic task, A at medium reasoning effort averages 40k input and 6k output tokens with an 85% success rate; B averages 60k input and 14k output tokens with a 70% success rate. Each failure costs $2 of human handling. Which is cheaper per resolved task, and what else would you test?

Applied LLM · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- A is cheaper per task: A $0.21/attempt + 0.15 x $2 = $0.51; B $0.13/attempt + 0.30 x $2 = $0.73
- Break-even: B becomes cheaper only if a failure costs less than about $0.53 (0.08 / 0.15)
- If failures were retried by the model with no human cost, B would win ($0.13/0.70 ≈ $0.19 vs $0.21/0.85 ≈ $0.25), so confirm the failure model
- List price per token is the wrong unit; agentic token counts and success rates make cost per resolved task the right unit
- Test reasoning effort on A, prompt caching of the shared prefix, batch/async pricing, and routing easy cases to B
- Check variance and tails: repeated-run reliability, p95 tokens, latency, and a validated grader

### In full

Model A is cheaper per task on these numbers once failures are priced in.

```calc
A per attempt: 40,000 x $3/1M + 6,000 x $15/1M = $0.12 + $0.09 = $0.21
B per attempt: 60,000 x $1/1M + 14,000 x $5/1M = $0.06 + $0.07 = $0.13
A expected:    $0.21 + (1 - 0.85) x $2 = $0.21 + $0.30 = $0.51 per task
B expected:    $0.13 + (1 - 0.70) x $2 = $0.13 + $0.60 = $0.73 per task
Break-even failure cost h: 0.21 + 0.15h = 0.13 + 0.30h  ->  h = 0.08 / 0.15 = about $0.53
If failures were retried by the model until success, with no human cost:
A: $0.21 / 0.85 = about $0.25;  B: $0.13 / 0.70 = about $0.19  ->  B would be cheaper
```

So A wins at $0.51 versus $0.73 despite three times the per-token list price, and it stays cheaper as long as handling a failure costs more than about $0.53. The key point is that list price per token is the wrong unit for an agentic loop: reasoning effort and tool use change both token counts and success rate, so cost per resolved outcome, including what a failure costs, is the right comparison. The answer also depends on the failure model: if failures were simply retried by the model with no human involvement, B would be cheaper, so I would confirm how failures are actually handled before deciding.

I would also test lower and higher reasoning effort on A, prompt caching of the shared prefix (cached input reads change the input term), batch pricing for asynchronous work, and routing easy cases to B while keeping hard cases on A. Finally, I would not trust the result without checking repeated-run reliability, p95 token use, latency, and whether the success metric is a validated grader rather than a self-reported or noisy signal.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Per-attempt model cost: A = 40k × $3/M + 6k × $15/M = $0.12 + $0.09 = $0.21; B = 60k × $1/M + 14k × $5/M = $0.06 + $0.07 = $0.13
- Expected cost per task including failures: A = $0.21 + 0.15 × $2 = $0.51; B = $0.13 + 0.30 × $2 = $0.73, so A is cheaper per resolved outcome despite triple the list price
- Explains why: reasoning and agent loops make token counts model-dependent, so list price per token is the wrong unit; cost per successful task (plus error cost) is the right one
- Tests effort settings and caching: lower or higher reasoning effort on A, prompt caching of the shared prefix (cheap cached reads change the input term), batch pricing for asynchronous work, routing easy cases to B
- Checks variance and tails: reliability over repeated runs, p95 token use, latency, and whether success is measured by a validated grader

## Common mistakes

- Choosing B because its per-token price is a third of A's
- Ignoring the cost of failures and human handling

## Follow-ups

- At what failure-handling cost would B become the cheaper option?

## Topic guides

- [Agents and tool use](https://gurkanozkan.ai/learn/topics/agents.md)
- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
- [LLM cost and unit economics](https://gurkanozkan.ai/learn/topics/cost.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
