Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 10.5% higher average benchmark score. GPT-4.1 offers 752.3K more tokens in context window than Claude Sonnet 4. GPT-4.1 is $8.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 represents an iterative improvement in the GPT-4 series, developed to refine the foundational capabilities established by GPT-4. Built to incorporate learnings and optimizations from the deployment of previous versions, it continues the evolution of OpenAI's flagship model line with enhanced reliability and performance.
1 month newer

GPT-4.1
OpenAI
2025-04-14

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

Claude Sonnet 4

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

Claude Sonnet 4

GPT-4.1
Performance comparison across key benchmark categories

Claude Sonnet 4

GPT-4.1
GPT-4.1
2024-06-01
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

GPT-4.1

Claude Sonnet 4

GPT-4.1

GPT-4.1
OpenAI