Comprehensive side-by-side LLM comparison
Grok-4 leads with 31.4% higher average benchmark score. Grok-4 offers 232.0K more tokens in context window than Phi 4. Phi 4 is $17.79 cheaper per million tokens. Grok-4 supports multimodal inputs. Overall, Grok-4 is the stronger choice for coding tasks.
xAI
Grok 4 represents the fourth generation of xAI's language models, developed to continue advancing the frontier of AI reasoning and knowledge. Built to handle increasingly complex tasks with enhanced reliability, it demonstrates xAI's commitment to pushing AI capabilities forward.
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.
6 months newer

Phi 4
Microsoft
2024-12-12

Grok-4
xAI
2025-07-09
Cost per million tokens (USD)

Grok-4

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

Grok-4

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

Grok-4
xAI
ZeroEval


Grok-4

Phi 4

Grok-4

Phi 4
Phi 4
DeepInfra