Head to head
GPT-4.1 vs Claude Sonnet 4
GPT-4.1 is legacy; Claude Sonnet 4 is retired.
For tasks, about a month.
Verdict · stale basis
GPT-4.1 costs $1.37 per solved task against
Claude Sonnet 4 at $1.96 — ▼ 1.4x cheaper.
Over 200 tasks that is $117 a month.
On output token price alone GPT-4.1 looks 1.9x cheaper. The ranking holds, but the margin changes.
Verified pricing, pass rate and cost per solved task for GPT-4.1 and Claude Sonnet 4| Figure | GPT-4.1 | Claude Sonnet 4 |
|---|
| Input $/Mtok | $2 | $3 |
|---|
| Output $/Mtok | $8 | $15 |
|---|
| Cached input $/Mtok | $0.5 | $0.3 |
|---|
| Pass rate | 52% | 61% |
|---|
| Cost per solved task | $1.37stale | $1.96stale |
|---|
| Cost per month | $275 | $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