Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
OpenAI
OpenAI

Claude 3.5 Sonnet vs GPT-4o (2024-05-13)

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 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
  • Better at coding

GPT-4o (2024-05-13) wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
  • Higher intelligence benchmark
Price Advantage
GPT-4o (2024-05-13)
Benchmark Advantage
Claude 3.5 Sonnet
Context Window
Claude 3.5 Sonnet
Speed
GPT-4o (2024-05-13)

Pricing Comparison

Price Comparison

MetricClaude 3.5 SonnetGPT-4o (2024-05-13)Winner
Input (per 1M tokens)$6.00$5.00 GPT-4o (2024-05-13)
Output (per 1M tokens)$30.00$15.00 GPT-4o (2024-05-13)
Using a 3:1 input/output ratio, GPT-4o (2024-05-13) is 38% cheaper overall.

Claude 3.5 Sonnet Providers

Vercel $3.00 (Cheapest)
Amazon Bedrock $6.00

GPT-4o (2024-05-13) Providers

OpenAI $5.00 (Cheapest)
Azure $5.00 (Cheapest)

Benchmark Comparison

7
Benchmarks Compared
6
Claude 3.5 Sonnet Wins
0
GPT-4o (2024-05-13) Wins

Benchmark Scores

BenchmarkClaude 3.5 SonnetGPT-4o (2024-05-13)Winner
Intelligence Index
Overall intelligence score
15.916.0-
Coding Index
Code generation & understanding
30.224.2
MMLU Pro
Academic knowledge
77.274.0
GPQA
Graduate-level science
59.952.6
LiveCodeBench
Competitive programming
38.133.4
Aider
Real-world code editing
84.272.9
AIME
Competition math
15.711.0
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 (2024-05-13)
128,000
tokens
Max output: 4,096 tokens
Claude 3.5 Sonnet has a 36% larger context window.

Speed Performance

MetricClaude 3.5 SonnetGPT-4o (2024-05-13)Winner
Tokens/second0.0 tok/s85.1 tok/s
Time to First Token0.00s0.50s
GPT-4o (2024-05-13) responds Infinity% faster on average.

Capabilities

Feature Comparison

FeatureClaude 3.5 SonnetGPT-4o (2024-05-13)
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 (2024-05-13)
LicenseProprietaryProprietary
AuthorAnthropicOpenAI
ReleasedOct 2024May 2024

Claude 3.5 Sonnet Modalities

Input
textimagefile
Output
text

GPT-4o (2024-05-13) Modalities

Input
textimagefile
Output
text

Related Comparisons

Compare Claude 3.5 Sonnet with:

Compare GPT-4o (2024-05-13) with:

Frequently Asked Questions

GPT-4o (2024-05-13) has cheaper input pricing at $5.00/M tokens. GPT-4o (2024-05-13) has cheaper output pricing at $15.00/M tokens.
Claude 3.5 Sonnet scores higher on coding benchmarks with a score of 30.2, compared to GPT-4o (2024-05-13)'s score of 24.2.
Claude 3.5 Sonnet has a 200,000 token context window, while GPT-4o (2024-05-13) has a 128,000 token context window.
Claude 3.5 Sonnet supports vision. GPT-4o (2024-05-13) supports vision.