Model Comparison

Comprehensive side-by-side analysis of model capabilities and performance

xAI

Grok-4

xAI

Grok-4 is a multimodal language model developed by xAI. It achieves strong performance with an average score of 63.1% across 7 benchmarks. It excels particularly in AIME 2025 (91.7%), HMMT25 (90.0%), GPQA (87.5%). It supports a 264K token context window for handling large documents. The model is available through 2 API providers. As a multimodal model, it can process and understand text, images, and other input formats seamlessly. Released in 2025, it represents xAI's latest advancement in AI technology.

Microsoft

Phi 4

Microsoft

Phi 4 is a language model developed by Microsoft. It achieves strong performance with an average score of 66.0% across 13 benchmarks. It excels particularly in MMLU (84.8%), HumanEval+ (82.8%), HumanEval (82.6%). The model shows particular specialization in math tasks with an average performance of 80.5%. The model is available through 1 API provider. It's licensed for commercial use, making it suitable for enterprise applications. Released in 2024, it represents Microsoft's latest advancement in AI technology.

Microsoft

Phi 4

Microsoft

2024-12-12

xAI

Grok-4

xAI

2025-07-09

6 months newer

Pricing Comparison

Cost per million tokens (USD)

xAI

Grok-4

Input:$3.00
Output:$15.00
Microsoft

Phi 4

$17.79 cheaper
Input:$0.07
Output:$0.14

Performance Metrics

Context window and performance specifications

xAI

Grok-4

Larger context
Max Context:264.0K
Microsoft

Phi 4

Max Context:32.0K
Parameters:14.7B

Average performance across 1 common benchmarks

xAI

Grok-4

+31.4%
Average Score:87.5%
Microsoft

Phi 4

Average Score:56.1%

Performance comparison across key benchmark categories

xAI

Grok-4

code
+2.9%
79.0%
general
+9.1%
69.3%
Microsoft

Phi 4

code
76.1%
general
60.2%
Benchmark Scores - Detailed View
Side-by-side comparison of all benchmark scores
Knowledge Cutoff
Training data recency comparison

Phi 4

2024-06-01

Grok-4

2024-12-31

More recent knowledge cutoff means awareness of newer technologies and frameworks

Provider Availability & Performance

Available providers and their performance metrics

xAI

Grok-4

2 providers

xAI

Throughput: 100 tok/s
Latency: 0.7ms

ZeroEval

Throughput: 100 tok/s
Latency: 0.7ms
Microsoft

Phi 4

1 providers

DeepInfra

Throughput: 33 tok/s
Latency: 0.2ms
xAI

Grok-4

+31.4%
Avg Score:87.5%
Providers:2
Microsoft

Phi 4

Avg Score:56.1%
Providers:1