Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 33.5% higher average benchmark score. GPT-4.1 nano offers 752.3K more tokens in context window than Claude Sonnet 4. GPT-4.1 nano is $17.50 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 Nano was developed as the smallest and most efficient variant in the GPT-4.1 family, designed for applications requiring minimal latency and resource usage. Built to enable AI capabilities on edge devices and resource-constrained environments, it distills GPT-4.1 capabilities into an ultra-compact form factor.
1 month newer

GPT-4.1 nano
OpenAI
2025-04-14

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

Claude Sonnet 4

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

Claude Sonnet 4

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

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

GPT-4.1 nano

Claude Sonnet 4

GPT-4.1 nano

GPT-4.1 nano
OpenAI