PriceIndex

Models, measured side by side

Grok 4.7 vs Phi-4

Compare Grok 4.7, Phi-4 by token pricing, context length, benchmark results, speed and tool support.

Monthly workload

Monthly cost breakdown

InputOutput

Grok 4.7

$70 / mo

Phi-4

$2.10 / mo

Performance comparison

Grok 4.7

46.4

Phi-4

5.9

Overview

Released
Grok 4.7
2026-09-21
Phi-4
2024-12
Status
Grok 4.7
Active
Phi-4
Active
Input formats
Grok 4.7
textimagefile
Phi-4
text
Output formats
Grok 4.7
text
Phi-4
text

Pricing & capacity

Input / 1M tokens
Grok 4.7
$2.00
Phi-4
$0.07
Output / 1M tokens
Grok 4.7
$6.00
Phi-4
$0.14
Cached input / 1M
Grok 4.7
$0.50
Phi-4
Not listed
Monthly cost
Grok 4.7
$70
Phi-4
$2.10
Context window
Grok 4.7
500K
Phi-4
16K
Maximum output
Grok 4.7
450K
Phi-4
15K

Benchmarks & performance

Arena Elo
Grok 4.7
Not listed
Phi-4
1,123
MMLU-Pro
Grok 4.7
Not listed
Phi-4
60.7%
Intelligence Index
Grok 4.7
46.4
Phi-4
5.9
GPQA
Grok 4.7
Not listed
Phi-4
57.5%
Humanity’s Last Exam
Grok 4.7
43.1%
Phi-4
3.8%
SciCode
Grok 4.7
57.4%
Phi-4
Not listed
Output speed
Grok 4.7
83 tokens/s
Phi-4
39 tokens/s
Time to first token
Grok 4.7
43.17 s
Phi-4
2.59 s
DesignArena rating
Grok 4.7
1,269
Phi-4
Not listed
DesignArena win rate
Grok 4.7
47.6%
Phi-4
Not listed

Tools & features

Function calling
Grok 4.7
Supported
Phi-4
Not listed
Structured outputs
Grok 4.7
Supported
Phi-4
Supported
JSON mode
Grok 4.7
Supported
Phi-4
Supported
Reasoning
Grok 4.7
Supported
Phi-4
Not listed
Log probabilities
Grok 4.7
Supported
Phi-4
Not listed
Deterministic seed
Grok 4.7
Supported
Phi-4
Supported
Prompt caching
Grok 4.7
Supported
Phi-4
Not listed

API & availability

API identifier
Grok 4.7
grok-4.7
Phi-4
phi-4
API providers
Grok 4.7
xAI, xAI, xAI, xAI, xAI
Phi-4
DeepInfra
Knowledge cutoff
Grok 4.7
Not listed
Phi-4
2024-06-30
Prices checked
Grok 4.7
Oct 8, 2026
Phi-4
Oct 8, 2026

About the models

Grok 4.7

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...

Full pricing & details

Phi-4

14B small language model, great for edge and cheap tasks.

Full pricing & details

Comparison FAQ

Grok 4.7: $2.00 input and $6.00 output per million tokens. Phi-4: $0.07 input and $0.14 output per million tokens. The cheaper choice depends on your input-to-output ratio; a model can have a lower input rate but a higher output rate.

Popular model comparisons