Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 38.1% higher average benchmark score. Claude Sonnet 4 offers 183.6K more tokens in context window than GPT-4o mini. GPT-4o mini is $17.25 cheaper per million tokens. Claude Sonnet 4 is available on 4 providers. Overall, Claude Sonnet 4 is the stronger choice for coding tasks.
Anthropic
Claude Sonnet 4 was created as the balanced offering in the Claude 4 family, designed to provide strong intelligence with practical speed and cost efficiency. Built to serve as a versatile workhorse for diverse applications, it balances advanced capabilities with operational considerations for everyday enterprise and consumer use.
OpenAI
GPT-4o Mini was created as a smaller, more efficient variant of GPT-4o, designed to bring multimodal capabilities to applications requiring faster response times and lower costs. Built to democratize access to advanced vision and text understanding, it enables developers to build sophisticated applications with reduced resource requirements.
10 months newer

GPT-4o mini
OpenAI
2024-07-18

Claude Sonnet 4
Anthropic
2025-05-22
Cost per million tokens (USD)

Claude Sonnet 4

GPT-4o mini
Context window and performance specifications
Average performance across 3 common benchmarks

Claude Sonnet 4

GPT-4o mini
Performance comparison across key benchmark categories

Claude Sonnet 4

GPT-4o mini
GPT-4o mini
2023-10-01
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

GPT-4o mini

Claude Sonnet 4

GPT-4o mini

GPT-4o mini
Azure