Claude 3.5 Sonnet vs GPT 4o
Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.
$2.50 vs $3.00 / 1M
$10.00 vs $15.00 / 1M
—
Max Output: 32K vs 32K
Capability Benchmarks & Third-Party Evaluations
Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.
| Metric | Claude 3.5 Sonnet | GPT 4o |
|---|---|---|
| Reasoning | Yes | Yes |
| Input Modalities | text, image | text, image |
| Tools & JSON | Tools | Tools |
| Prompt Caching | $0.30/1M | $1.25/1M |
| Open-Weight | Proprietary | Proprietary |
Compare independent Intelligence Index, Engineering/Coding scores, tokens/sec throughput, and TTFT latency for Claude 3.5 Sonnet and GPT 4o.
Blind pairwise human preference Elo ratings across Overall, Coding, Hard Prompts, and Instruction Following.
Measures autonomous GitHub repository issue resolution rates in sandboxed software engineering evaluations.
Monthly refreshed objective tests spanning Math, Coding, Reasoning, Data Analysis, and Language.
Evaluates practical diff editing pass rates and API cost per benchmark run across Python, C++, Go, Java, JS, and Rust.
Side-by-side specification matrix
USD ·| Metric | Compare | ||
|---|---|---|---|
| Input / 1M | $3.00 | $2.50 | GPT 4o -17% |
| Output / 1M | $15.00 | $10.00 | GPT 4o -33% |
| 5m Cache Write / 1M | $3.75 | $2.50 | GPT 4o -33% |
| 1h Cache Write / 1M | — | — | — |
| Cache Read | $0.30 | $1.25 | Claude 3.5 Sonnet -76% |
| Web Search / Call | — | — | — |
| Context | 200K (200,000) | 200K (200,000) | Equal |
| Max Output | 32K (32,000) | 32K (32,000) | Equal |
| AA Intelligence(Artificial Analysis) | — | — | — |
| AA Engineering | — | — | — |
| Capabilities | text, image | text, image | Equal |
| Reasoning | Supported | Supported | Equal |
| Structured Outputs(JSON Schema) | Not listed | Not listed | Equal |
| Open-Weight | Proprietary API | Proprietary API | Equal |
30-day production cost estimator
Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.
Frequently Asked Questions
Is Claude 3.5 Sonnet or GPT 4o cheaper per API token?
GPT 4o is 17% cheaper on input tokens ($2.50 vs $3.00 per 1M). For output tokens, GPT 4o costs 33% less ($10.00 vs $15.00 per 1M).
How do Claude 3.5 Sonnet and GPT 4o prompt caching discounts compare?
Claude 3.5 Sonnet offers 76% cheaper cache reads at $0.30/1M compared to $1.25/1M for GPT 4o. Claude 3.5 Sonnet 5m write: $3.75/1M; GPT 4o 5m write: $2.50/1M.
Which model has a larger context window: Claude 3.5 Sonnet or GPT 4o?
Both Claude 3.5 Sonnet and GPT 4o support a 200K (200,000 tokens) context window. Max output completion limits are 32K for Claude 3.5 Sonnet and 32K for GPT 4o.
How do Claude 3.5 Sonnet and GPT 4o compare on benchmarks and capabilities?
Compare Claude 3.5 Sonnet (Anthropic) and GPT 4o (OpenAI) across tool calling (yes vs yes) and reasoning support above.
Related Head-to-Head Matchups
ComparisonsClaude 3.5 Sonnet vs Claude 3.7 Sonnet
In: $3.00 vs $3.00 · Out: $15.00 vs $15.00
Claude 3.5 Sonnet vs Claude 3 5 Haiku
In: $3.00 vs $0.80 · Out: $15.00 vs $4.00
Claude 3.5 Sonnet vs DeepSeek V3
In: $3.00 vs $0.27 · Out: $15.00 vs $1.10
GPT 4o vs GPT 5
In: $2.50 vs $1.25 · Out: $10.00 vs $10.00
GPT 4o vs GPT-4o Mini
In: $2.50 vs $0.15 · Out: $10.00 vs $0.60
GPT 4o vs Claude 3.7 Sonnet
In: $2.50 vs $3.00 · Out: $10.00 vs $15.00