Comprehensive side-by-side LLM comparison
Claude 3.7 Sonnet leads with 29.4% higher average benchmark score. Claude 3.7 Sonnet offers 296.0K more tokens in context window than Phi 4. Phi 4 is $17.79 cheaper per million tokens. Claude 3.7 Sonnet supports multimodal inputs. Claude 3.7 Sonnet is available on 4 providers. Overall, Claude 3.7 Sonnet is the stronger choice for coding tasks.
Anthropic
Claude 3.7 Sonnet represents Anthropic's first hybrid reasoning model, capable of producing near-instant responses or extended step-by-step thinking that is visible to users. Developed with particularly strong improvements in coding and front-end web development, it allows users to control thinking budgets and balances real-world task performance with reasoning capabilities for enterprise applications.
Microsoft
Phi-4 was introduced as the fourth generation of Microsoft's small language model series, designed to push the boundaries of what compact models can achieve. Built with advanced training techniques and architectural improvements, it demonstrates continued progress in efficient, high-quality language models.
2 months newer

Phi 4
Microsoft
2024-12-12

Claude 3.7 Sonnet
Anthropic
2025-02-24
Cost per million tokens (USD)

Claude 3.7 Sonnet

Phi 4
Context window and performance specifications
Average performance across 2 common benchmarks

Claude 3.7 Sonnet

Phi 4
Phi 4
2024-06-01
Available providers and their performance metrics

Claude 3.7 Sonnet
Anthropic
Bedrock
ZeroEval

Claude 3.7 Sonnet

Phi 4

Claude 3.7 Sonnet

Phi 4

Phi 4
DeepInfra