Head to head
GPT-5 vs Claude Sonnet 4
GPT-5 is legacy; Claude Sonnet 4 is retired.
For tasks, about a month.
Verdict · stale basis
GPT-5 costs $0.74 per solved task against
Claude Sonnet 4 at $1.96 — ▼ 2.7x cheaper.
Over 200 tasks that is $244 a month.
On output token price alone GPT-5 looks 1.5x cheaper. The ranking holds, but the margin changes.
Verified pricing, pass rate and cost per solved task for GPT-5 and Claude Sonnet 4| Figure | GPT-5 | Claude Sonnet 4 |
|---|
| Input $/Mtok | $1.25 | $3 |
|---|
| Output $/Mtok | $10 | $15 |
|---|
| Cached input $/Mtok | $0.125 | $0.3 |
|---|
| Pass rate | 88% | 61% |
|---|
| Cost per solved task | $0.74stale | $1.96stale |
|---|
| Cost per month | $148 | $392 |
|---|
Cost per month against tasks per month · drag the marker
Solid measured · dashed modelled · dotted stale. The gap is the verdict.
Source: Aider polyglot benchmark · verified 2026-08-21 · prices from each provider's pricing page; measured rows ignore the tier · Methodology · All models at these settings