Comprehensive side-by-side LLM comparison
GPT-4.1 leads with 13.3% higher average benchmark score. GPT-4.1 offers 1.0M more tokens in context window than Phi 4. Phi 4 is $9.79 cheaper per million tokens. GPT-4.1 supports multimodal inputs. Overall, GPT-4.1 is the stronger choice for coding 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.
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.
4 months newer

Phi 4
Microsoft
2024-12-12

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

GPT-4.1

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

GPT-4.1

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

GPT-4.1
OpenAI

Phi 4

GPT-4.1

Phi 4

GPT-4.1

Phi 4
DeepInfra