Grok 4.7 vs Phi 4

Price, context window & benchmark comparison

X

Grok 4.7

xAI
$1.60 / $4.80
Input / Output · per 1M tokens
VS
M

Phi 4

Microsoft
$0.07 / $0.14
Input / Output · per 1M tokens
Compare different models
X
M
Verdict: Phi 4 is 27.4× cheaper than Grok 4.7 on a typical 3:1 input/output mix. Grok 4.7 has the larger context window (500K vs 16K).
Grok 4.7Phi 4
Input price / 1M$1.60$0.07
Output price / 1M$4.80$0.14
Blended price (3:1)$2.40$0.0875
Cached input / 1M$0.40
Context window500K16K
Max output450K15K
Intelligence index46.4
Coding index
Providers4
Best provider uptime (30m)99.9%
Vision inputYesNo
ReasoningYesNo
Tool callingYesNo
Released2026-09-212025-01-10
Retirement

Cost calculator

FAQ

Which is cheaper, Grok 4.7 or Phi 4?

Phi 4 is 27.4× cheaper than Grok 4.7 on a typical 3:1 input/output mix.

Grok 4.7 vs Phi 4: which has a bigger context window?

Grok 4.7: 500,000 tokens. Phi 4: 16,384 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Grok 4.7 ≈ $5,600, Phi 4 ≈ $210.00.

More comparisons