Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 21.2% higher average benchmark score. GPT-4.1 mini offers 752.3K more tokens in context window than Claude Sonnet 4. GPT-4.1 mini is $16.00 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-4.1 Mini was created as a smaller, more efficient variant of GPT-4.1, designed to provide strong capabilities with reduced computational requirements. Built to serve applications where speed and cost are priorities while maintaining solid performance, it extends the GPT-4.1 capabilities to resource-conscious deployments.
1 month newer

GPT-4.1 mini
OpenAI
2025-04-14

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

Claude Sonnet 4

GPT-4.1 mini
Context window and performance specifications
Average performance across 7 common benchmarks

Claude Sonnet 4

GPT-4.1 mini
Performance comparison across key benchmark categories

Claude Sonnet 4

GPT-4.1 mini
GPT-4.1 mini
2024-05-31
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

GPT-4.1 mini

Claude Sonnet 4

GPT-4.1 mini

GPT-4.1 mini
OpenAI
ZeroEval