Comprehensive side-by-side LLM comparison
Claude Sonnet 4.5 leads with 20.1% higher average benchmark score. GPT-4.1 offers 816.3K more tokens in context window than Claude Sonnet 4.5. GPT-4.1 is $8.00 cheaper per million tokens. Overall, Claude Sonnet 4.5 is the stronger choice for coding tasks.
Anthropic
Claude Sonnet 4.5 was developed to bridge human thinking and machine assistance, allowing people to work with language and tools in a more conversational and natural way. Built with a focus on turning ideas into results, it represents an evolution in making AI feel less mechanical while maintaining strong capabilities across reasoning, coding, and collaborative tasks.
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.
5 months newer

GPT-4.1
OpenAI
2025-04-14

Claude Sonnet 4.5
Anthropic
2025-09-29
Cost per million tokens (USD)

Claude Sonnet 4.5

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

Claude Sonnet 4.5

GPT-4.1
Performance comparison across key benchmark categories

Claude Sonnet 4.5

GPT-4.1
GPT-4.1
2024-06-01
Claude Sonnet 4.5
2025-01-31
Available providers and their performance metrics

Claude Sonnet 4.5
Anthropic
ZeroEval


Claude Sonnet 4.5

GPT-4.1

Claude Sonnet 4.5

GPT-4.1
GPT-4.1
OpenAI