Claude Sonnet 4vsGPT-4o
Claude Sonnet 4 | GPT-4o | |
|---|---|---|
| Specifications | ||
Context window | — | 128k |
| Benchmarks | ||
Nonsense detection BullshitBench v2Given a confidently-worded but nonsensical prompt, does the AI spot that it makes no sense and push back — instead of playing along and inventing an answer? The score is how often it clearly called out the nonsense. Higher is better. | 30%Best | 12% |
Coding SWE-Bench VerifiedReal coding tasks pulled from open-source projects — the AI has to find and fix actual bugs. A human-checked version of the original SWE-Bench. Higher is better. | 72.7% | — |
Science GPQA DiamondGraduate-level science questions in biology, physics, and chemistry — hard enough that subject-matter PhDs score around 65%. Higher is better. | 75.4%Best | 49.9% |
| Overview | ||
| Company | Anthropic | OpenAI |
| Release date | May 22 2025 | May 13 2024 |
| Access | Proprietary | Proprietary |
Which is better: Claude Sonnet 4 or GPT-4o?
Claude Sonnet 4 leads GPT-4o on 2 of the 2 benchmarks they both report (BullshitBench v2, GPQA Diamond). GPT-4o shipped 374 days before Claude Sonnet 4, so benchmark comparisons should account for the intervening progress.
Published specifications for these two models are limited — see each model page for the latest details.
On BullshitBench v2, Claude Sonnet 4 leads at 30% vs GPT-4o at 12%. On GPQA Diamond, Claude Sonnet 4 leads at 75.4% vs GPT-4o at 49.9%.
Frequently asked questions
Claude Sonnet 4 was released by Anthropic on May 22 2025.
GPT-4o was released by OpenAI on May 13 2024.
Claude Sonnet 4 leads on GPQA Diamond — Claude Sonnet 4 75.4% vs GPT-4o 49.9%.
Other comparisons
Claude Sonnet 4vsGemini 3.7 FlashGPT-4ovsGemini 3.7 FlashClaude Sonnet 4vsMuse GlimmerGPT-4ovsMuse GlimmerClaude Sonnet 4vsGrok 4.6GPT-4ovsGrok 4.6Claude Sonnet 4vsDeepSeek-V4-Pro-0813GPT-4ovsDeepSeek-V4-Pro-0813Claude Sonnet 4vsMistral Medium 3.5GPT-4ovsMistral Medium 3.5Claude Sonnet 4vsKimi K3GPT-4ovsKimi K3