Model Comparison

GPT-4o vs Claude Sonnet 4

Claude Sonnet 4 significantly outperforms across most benchmarks. GPT-4o is 1.4x cheaper per token.

Performance Benchmarks

Comparative analysis across standard metrics

6 benchmarks

GPT-4o outperforms in 0 benchmarks, while Claude Sonnet 4 is better at 6 benchmarks (GPQA, MMMLU, MMMU, SWE-Bench Verified, TAU-bench Airline, TAU-bench Retail).

Claude Sonnet 4 significantly outperforms across most benchmarks.

Tue May 05 2026 • llm-stats.com

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

GPT-4o costs less

For input processing, GPT-4o ($2.50/1M tokens) is 1.2x cheaper than Claude Sonnet 4 ($3.00/1M tokens).

For output processing, GPT-4o ($10.00/1M tokens) is 1.5x cheaper than Claude Sonnet 4 ($15.00/1M tokens).

In conclusion, Claude Sonnet 4 is more expensive than GPT-4o.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Tue May 05 2026 • llm-stats.com
OpenAI
GPT-4o
Input tokens$2.50
Output tokens$10.00
Best providerAzure
Anthropic
Claude Sonnet 4
Input tokens$3.00
Output tokens$15.00
Best providerAnthropic
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Claude Sonnet 4 accepts 200,000 input tokens compared to GPT-4o's 128,000 tokens. Claude Sonnet 4 can generate longer responses up to 64,000 tokens, while GPT-4o is limited to 16,384 tokens.

OpenAI
GPT-4o
Input128,000 tokens
Output16,384 tokens
Anthropic
Claude Sonnet 4
Input200,000 tokens
Output64,000 tokens
Tue May 05 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both GPT-4o and Claude Sonnet 4 support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

GPT-4o

Text
Images
Audio
Video

Claude Sonnet 4

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

GPT-4o

Proprietary

Closed source

Claude Sonnet 4

Proprietary

Closed source

Release Timeline

When each model was launched

GPT-4o was released on 2024-08-06, while Claude Sonnet 4 was released on 2025-05-22.

Claude Sonnet 4 is 10 months newer than GPT-4o.

GPT-4o

Aug 6, 2024

1.7 years ago

Claude Sonnet 4

May 22, 2025

11 months ago

9mo newer

Knowledge Cutoff

When training data ends

Neither model specifies a knowledge cutoff date.

Unable to compare the recency of their training data.

No cutoff dates available

Provider Availability

GPT-4o is available from Azure, OpenAI. Claude Sonnet 4 is available from Anthropic, Bedrock, Google.

GPT-4o

azure logo
Azure
Input Price:Input: $2.50/1MOutput Price:Output: $10.00/1M
openai logo
OpenAI
Input Price:Input: $2.50/1MOutput Price:Output: $10.00/1M

Claude Sonnet 4

anthropic logo
Anthropic
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
bedrock logo
AWS Bedrock
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
google logo
Google
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

Less expensive input tokens
Less expensive output tokens
Larger context window (200,000 tokens)
Higher GPQA score (75.4% vs 70.1%)
Higher MMMLU score (86.5% vs 81.4%)
Higher MMMU score (74.4% vs 72.2%)
Higher SWE-Bench Verified score (72.7% vs 33.2%)
Higher TAU-bench Airline score (60.0% vs 42.8%)
Higher TAU-bench Retail score (80.5% vs 60.3%)
OpenAIGPT-4o
AnthropicClaude Sonnet 4

Detailed Comparison

AI Model Comparison Table
Feature
OpenAI
GPT-4o
Anthropic
Claude Sonnet 4

FAQ

Common questions about GPT-4o vs Claude Sonnet 4.

Which is better, GPT-4o or Claude Sonnet 4?

Claude Sonnet 4 significantly outperforms across most benchmarks. GPT-4o is made by OpenAI and Claude Sonnet 4 is made by Anthropic. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.

How does GPT-4o compare to Claude Sonnet 4 in benchmarks?

GPT-4o scores AI2D: 94.2%, DocVQA: 92.8%, ChartQA: 85.7%, MMLU: 85.7%, CharXiv-D: 85.3%. Claude Sonnet 4 scores MMMLU: 86.5%, TAU-bench Retail: 80.5%, GPQA: 75.4%, MMMU: 74.4%, SWE-Bench Verified: 72.7%.

Is GPT-4o cheaper than Claude Sonnet 4?

GPT-4o is 1.2x cheaper for input tokens. GPT-4o costs $2.50/M input and $10.00/M output via azure. Claude Sonnet 4 costs $3.00/M input and $15.00/M output via anthropic.

What are the context window sizes for GPT-4o and Claude Sonnet 4?

GPT-4o supports 128K tokens and Claude Sonnet 4 supports 200K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between GPT-4o and Claude Sonnet 4?

Key differences include context window (128K vs 200K), input pricing ($2.50 vs $3.00/M). See the full comparison above for benchmark-by-benchmark results.

Who makes GPT-4o and Claude Sonnet 4?

GPT-4o is developed by OpenAI and Claude Sonnet 4 is developed by Anthropic.