Claude Sonnet 4 vs GPT-4o (Aug 2024): Pricing, Benchmarks & Verdict (2026)

Pricing verified Apr 8, 2026

⚡ Quick Answer

Compare Claude Sonnet 4 and GPT-4o (Aug 2024) across pricing, benchmarks, and capabilities.

Updated: April 8, 2026 · ✓ Pricing verified

Side-by-Side Comparison

FeatureClaude Sonnet 4GPT-4o (Aug 2024)
ProviderAnthropicOpenAI
Input Price / 1M tokens$3.00$2.50
Output Price / 1M tokens$15.00$10.00
Context Window
200K
128K
Max Output Tokens
64,000
16,384
Arena ELO
1,280
1,255
Coding ELO
1,305
1,265
TTFT (ms)
320
150
Tokens/sec
78
100
MultimodalYesYes
JSON ModeYesYes
Function CallingYesYes
VisionYesNo
When to Use Claude Sonnet 4

Claude Sonnet 4 excels at coding, analysis, long-context, agents tasks.

Strengths:

  • Best-in-class coding performance
  • 200K context window
  • Excellent instruction following

Best for:

codinganalysislong-contextagents
When to Use GPT-4o (Aug 2024)

GPT-4o (Aug 2024) excels at general-purpose, multimodal, function-calling tasks.

Strengths:

  • Fast response times
  • Strong multimodal
  • Code execution

Best for:

general-purposemultimodalfunction-calling

Related Comparisons