Comprehensive side-by-side LLM comparison
GPT-4.1 leads with 2.5% higher average benchmark score. GPT-4.1 offers 680.3K more tokens in context window than Claude 3.5 Sonnet. GPT-4.1 is $8.00 cheaper per million tokens. Claude 3.5 Sonnet is available on 3 providers. Both models have their strengths depending on your specific coding needs.
Anthropic
This upgraded version of Claude 3.5 Sonnet was released with significant improvements in coding and agentic tool use. Built to deliver enhanced performance in software engineering tasks, it brought substantial gains in reasoning and problem-solving while introducing the groundbreaking computer use capability in public beta, allowing it to interact with computer interfaces like a human.
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

Claude 3.5 Sonnet
Anthropic
2024-10-22

GPT-4.1
OpenAI
2025-04-14
Cost per million tokens (USD)

Claude 3.5 Sonnet

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

Claude 3.5 Sonnet

GPT-4.1
Performance comparison across key benchmark categories

Claude 3.5 Sonnet

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

Claude 3.5 Sonnet
Anthropic
Bedrock

Claude 3.5 Sonnet

GPT-4.1

Claude 3.5 Sonnet

GPT-4.1

GPT-4.1
OpenAI