Claude Fable 5$22.000/MClaude Opus 5$11.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.6 Sol$12.500/MGPT-5.6 Terra$5.000/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/MClaude Fable 5$22.000/MClaude Opus 5$11.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.6 Sol$12.500/MGPT-5.6 Terra$5.000/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/M

Claude Sonnet 4.5 vs GPT-4o

Anthropic vs OpenAI · Prices checked 12 August 2026

GPT-4o is 28 per cent cheaper on blended cost, $4.75 per million tokens against $6.60. A single 100K-input, 10K-output job costs $0.350 on GPT-4o against $0.450 on Claude Sonnet 4.5.

Claude Sonnet 4.5 leads on 5 of the 6 benchmarks both models report. The widest gap is on SWE-bench Verified, where Claude Sonnet 4.5 leads by 29 points. Claude Sonnet 4.5 takes a 200,000-token context window against 128,000, giving a modest edge for long documents or whole-codebase work. Claude Sonnet 4.5 was released Sep 2025; GPT-4o May 2024.

Pricing and capacity

Published token pricing and context window for Claude Sonnet 4.5 and GPT-4o
MetricClaude Sonnet 4.5GPT-4oDifference
Input / 1M tokens$3.00$2.5017%
Output / 1M tokens$15.00$10.0033%
Blended · 70/30calculated$6.60$4.7528%
Blended · 50/50calculated$9.00$6.2531%
Blended · 80/20calculated$5.40$4.0026%
Blended · 20/80calculated$12.60$8.5033%
Job cost · 100K + 10Kcalculated$0.450$0.35022%
Job cost · 1M + 100Kcalculated$4.50$3.5022%
Context window200,000128,00036%

Input and output rates are as published by each provider. Blended and job-cost rows are calculated comparison metrics, not published prices — how they are derived.

Benchmarks

Benchmark scores both Claude Sonnet 4.5 and GPT-4o report
BenchmarkClaude Sonnet 4.5GPT-4oLeader
MMLU85%88%GPT-4o
GPQA Diamond73%53%Claude Sonnet 4.5
MATH86%76%Claude Sonnet 4.5
HumanEval91%90%Claude Sonnet 4.5
SWE-bench Verified62%33%Claude Sonnet 4.5
LMArena Elo1340 Elo1316 EloClaude Sonnet 4.5

Only suites both models report are listed, so a missing score is never shown as a loss. Figures are provider-published or from public leaderboards and are not independently re-run.

What each model is for

Claude Sonnet 4.5

Anthropic · Balanced

The Sonnet that established the Claude 4 line as the default mid-tier choice. Still widely deployed where 4.6 hasn't been re-validated.

  • Strong coding for the price
  • 1M context
  • Solid vision
  • Wide ecosystem support

GPT-4o

OpenAI · Flagship

The "omni" multimodal GPT-4. Native text, vision and audio. Retired from ChatGPT in April 2026 but remains available via the API.

  • Native audio + vision
  • Fast
  • Wide ecosystem support

Frequently asked questions

Which is cheaper, Claude Sonnet 4.5 or GPT-4o?

GPT-4o is 28 per cent cheaper on blended cost, $4.75 per million tokens against $6.60. A single 100K-input, 10K-output job costs $0.350 on GPT-4o against $0.450 on Claude Sonnet 4.5. Blended cost weights input at 70% and output at 30%; price your own token split for an exact answer, since the cheaper model on a blended basis is not always cheaper for your workload.

Which performs better, Claude Sonnet 4.5 or GPT-4o?

Claude Sonnet 4.5 leads on 5 of the 6 benchmarks both models report. The widest gap is on SWE-bench Verified, where Claude Sonnet 4.5 leads by 29 points. These are the figures each provider or public leaderboard publishes, not results we re-run, and a benchmark average can hide the specific behaviour your workload depends on.

Which has the larger context window, Claude Sonnet 4.5 or GPT-4o?

Claude Sonnet 4.5 takes a 200,000-token context window against 128,000, giving a modest edge for long documents or whole-codebase work. The context window caps everything in a single request: prompt, retrieved documents, conversation history and the model’s own output all share it.

Can I compare Claude Sonnet 4.5 and GPT-4o on my own numbers?

Yes. Open both in the side-by-side comparison tool to see every field at once, or use the token calculator to price your actual prompt and monthly request volume against each model. Both are free and need no sign-up.

Price it for your own workload

Related matchups

Terms used on this page

Prices and scores are recomputed on every deploy from the catalogue. Prices checked 12 August 2026.