Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
OpenAI
OpenAI

Claude 3.5 Sonnet vs GPT-4o

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

114 out of our 303 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Claude 3.5 Sonnet wins:

  • Larger context window
  • Higher intelligence benchmark
  • Better at coding

GPT-4o wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
Price Advantage
GPT-4o
Benchmark Advantage
Claude 3.5 Sonnet
Context Window
Claude 3.5 Sonnet
Speed
GPT-4o

Pricing Comparison

Price Comparison

MetricClaude 3.5 SonnetGPT-4oWinner
Input (per 1M tokens)$6.00$2.50 GPT-4o
Output (per 1M tokens)$30.00$10.00 GPT-4o
Cache Read (per 1M)$0.60$1.25 Claude 3.5 Sonnet
Cache Write (per 1M)$7.50N/A Claude 3.5 Sonnet
Using a 3:1 input/output ratio, GPT-4o is 64% cheaper overall.

Claude 3.5 Sonnet Providers

Vercel $3.00 (Cheapest)
Amazon Bedrock $6.00

GPT-4o Providers

OpenAI $2.50 (Cheapest)
Vercel $2.50 (Cheapest)
Azure $2.50 (Cheapest)

Benchmark Comparison

7
Benchmarks Compared
5
Claude 3.5 Sonnet Wins
0
GPT-4o Wins

Benchmark Scores

BenchmarkClaude 3.5 SonnetGPT-4oWinner
Intelligence Index
Overall intelligence score
15.915.6-
Coding Index
Code generation & understanding
30.216.6
MMLU Pro
Academic knowledge
77.2--
GPQA
Graduate-level science
59.952.1
LiveCodeBench
Competitive programming
38.131.7
Aider
Real-world code editing
84.274.4
AIME
Competition math
15.711.7
Claude 3.5 Sonnet significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Claude 3.5 Sonnet
Other models

Context & Performance

Context Window

Claude 3.5 Sonnet
200,000
tokens
Max output: 8,192 tokens
GPT-4o
128,000
tokens
Max output: 16,384 tokens
Claude 3.5 Sonnet has a 36% larger context window.

Speed Performance

MetricClaude 3.5 SonnetGPT-4oWinner
Tokens/second0.0 tok/s86.1 tok/s
Time to First Token0.00s0.58s
GPT-4o responds Infinity% faster on average.

Capabilities

Feature Comparison

FeatureClaude 3.5 SonnetGPT-4o
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyClaude 3.5 SonnetGPT-4o
LicenseProprietaryProprietary
AuthorAnthropicOpenAI
ReleasedOct 2024May 2024

Claude 3.5 Sonnet Modalities

Input
textimagefile
Output
text

GPT-4o Modalities

Input
textimagefile
Output
text

Related Comparisons

Compare Claude 3.5 Sonnet with:

Compare GPT-4o with:

Frequently Asked Questions

GPT-4o has cheaper input pricing at $2.50/M tokens. GPT-4o has cheaper output pricing at $10.00/M tokens.
Claude 3.5 Sonnet scores higher on coding benchmarks with a score of 30.2, compared to GPT-4o's score of 16.6.
Claude 3.5 Sonnet has a 200,000 token context window, while GPT-4o has a 128,000 token context window.
Claude 3.5 Sonnet supports vision. GPT-4o supports vision.