Enter opens the highlighted result. Esc closes.

Grok 4.7 vs Phi 4

Updated October 21, 2026. 33 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Grok 4.7xAI
Coding
66.7
Overall
46.4
Output $/M
$6.00
33
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 33 shared

Decision reading

Only Grok 4.7 has a coding score, 66.7 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.

Phi 4 has the edge where output tokens cost 42.9x less.

Shared results
33
Grok 4.7 only
66
Phi 4 only
12
Like-for-like categories
6 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Grok 4.7 66.7 from 5 benchmarks, Phi 4 not benchmarked.
Widest category
Math, 47.5 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Grok 4.7 98.1% against Phi 4 13.8%, 84.3 points apart on a 0 to 100 scale.
Output price
Grok 4.7 $6.00 against Phi 4 $0.14 per million output tokens, 42.9x apart.
Context window
Grok 4.7 takes 500K tokens, Phi 4 16K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGrok 4.7BarsPhi 4Ties
Coding20
Intelligence20
Reasoning50
Math30
Knowledge40
General170
All shared boards330
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
LiveBench coding84.5%Not measuredOnly Grok 4.7 measured
LMArena WebDev1637Not measuredOnly Grok 4.7 measured
Terminal-Bench 4 (Vals AI)28.8%Not measuredOnly Grok 4.7 measured
Vibe Code Bench (Vals AI)86.2%Not measuredOnly Grok 4.7 measured
Code migration (Vals AI)44.8%Not measuredOnly Grok 4.7 measured
ProgramBench (Vals AI)0.5%Not measuredOnly Grok 4.7 measured
IOI (Vals AI)57.7%Not measuredOnly Grok 4.7 measured
Terminal-Bench 2.1 (Vals AI)73.4%Not measuredOnly Grok 4.7 measured
SWE-bench Multimodal (Vals AI)42.9%Not measuredOnly Grok 4.7 measured
CyberBench (Vals AI)69.5%Not measuredOnly Grok 4.7 measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
SciCode57.8%Not measuredOnly Grok 4.7 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
FrontierCode47.6%Not measuredOnly Grok 4.7 measured
FrontierSWE29.5%Not measuredOnly Grok 4.7 measured
LMArena Text: coding14321231Grok 4.7
LMArena Text: software and IT14211228Grok 4.7
LMArena WebDev: React1663Not measuredOnly Grok 4.7 measured
LMArena WebDev: HTML1627Not measuredOnly Grok 4.7 measured
LMArena WebDev: from an image1586Not measuredOnly Grok 4.7 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
AA Intelligence Index46.45.9Grok 4.7
Epoch Capabilities Index154.4130.5Grok 4.7
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
Agentic work benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
LiveBench research86.4%Not measuredOnly Grok 4.7 measured
LiveBench browser60.0%Not measuredOnly Grok 4.7 measured
LiveBench long agentic50.1%Not measuredOnly Grok 4.7 measured
SREBench (Vals AI)3.8%Not measuredOnly Grok 4.7 measured
Finance Agent (Vals AI)52.3%Not measuredOnly Grok 4.7 measured
Tax Agent Bench (Vals AI)34.2%Not measuredOnly Grok 4.7 measured
Legal Research Bench (Vals AI)47.1%Not measuredOnly Grok 4.7 measured
Harvey's Legal Agent Benchmark (Vals AI)18.3%Not measuredOnly Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)67.0%Not measuredOnly Grok 4.7 measured
BioMysteryBench (Vals AI)69.3%Not measuredOnly Grok 4.7 measured
Terminal-Bench-Science (Vals AI)10.0%Not measuredOnly Grok 4.7 measured
Vals Science Index34.8%Not measuredOnly Grok 4.7 measured
Robo-bench (Vals AI)0.2%Not measuredOnly Grok 4.7 measured
τ²-Bench TelecomNot measured0.0%Only Phi 4 measured
APEX-Agents54.6%Not measuredOnly Grok 4.7 measured
BALROGNot measured11.6%Only Phi 4 measured
Vending-Bench 2$10,537Not measuredOnly Grok 4.7 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index50
Reasoning benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
LiveBench reasoning82.7%Not measuredOnly Grok 4.7 measured
MysteryMechanism (Vals AI)25.2%Not measuredOnly Grok 4.7 measured
GPQA Diamond (Artificial Analysis run)Not measured57.5%Only Phi 4 measured
Humanity's Last Exam (Artificial Analysis run)43.1%3.8%Grok 4.7
GPQA Diamond (Epoch AI run)92.7%56.1%Grok 4.7
ARC-AGI90.2%Not measuredOnly Grok 4.7 measured
ARC-AGI-261.4%Not measuredOnly Grok 4.7 measured
Chess puzzles41.0%Not measuredOnly Grok 4.7 measured
Mystery game puzzles29.0%Not measuredOnly Grok 4.7 measured
LMArena Text: hard prompts14151220Grok 4.7
LMArena Text: expert14391203Grok 4.7
LMArena Text: hard prompts in English14271230Grok 4.7
LMArena Vision: diagrams1254Not measuredOnly Grok 4.7 measured
LMArena Vision: homework1309Not measuredOnly Grok 4.7 measured
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME98.1%13.8%Grok 4.7
FrontierMath, tiers 1 to 353.0%Not measuredOnly Grok 4.7 measured
FrontierMath, tier 417.1%Not measuredOnly Grok 4.7 measured
ProofBench26.0%Not measuredOnly Grok 4.7 measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14141246Grok 4.7
LMArena Text: mathematical work14351254Grok 4.7
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
LegalBench (Vals AI)84.4%Not measuredOnly Grok 4.7 measured
MedCode (Vals AI)49.5%Not measuredOnly Grok 4.7 measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
SimpleQA Verified56.0%Not measuredOnly Grok 4.7 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14191206Grok 4.7
LMArena Text: medicine and healthcare13951202Grok 4.7
LMArena Text: legal and government14231241Grok 4.7
LMArena Text: business and finance13891199Grok 4.7
Neither model has a result on the other 8 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Web design benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
Design Arena: websites1254Not measuredOnly Grok 4.7 measured
Design Arena: UI components1273Not measuredOnly Grok 4.7 measured
Design Arena: game dev1312Not measuredOnly Grok 4.7 measured
Design Arena: data viz1235Not measuredOnly Grok 4.7 measured
Design Arena: 3D1270Not measuredOnly Grok 4.7 measured
Design Arena: all code categories1271Not measuredOnly Grok 4.7 measured
LiveBench design78.0%Not measuredOnly Grok 4.7 measured
Neither model has a result on the other 2 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
Vals Index58.6%Not measuredOnly Grok 4.7 measured
LiveBench data analysis76.9%Not measuredOnly Grok 4.7 measured
Public Benefits Bench (Vals AI)65.6%Not measuredOnly Grok 4.7 measured
SAGE (Vals AI)40.8%Not measuredOnly Grok 4.7 measured
MedScribe (Vals AI)89.4%Not measuredOnly Grok 4.7 measured
IFBenchNot measured23.5%Only Phi 4 measured
Long context reasoning (AA-LCR)80.0%0.0%Grok 4.7
DTBench96.0%Not measuredOnly Grok 4.7 measured
LMCA49.4%Not measuredOnly Grok 4.7 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
Furniture assembly20.8%Not measuredOnly Grok 4.7 measured
LMArena Text13991217Grok 4.7
LMArena Text: instruction following14061201Grok 4.7
LMArena Text: creative writing13811181Grok 4.7
LMArena Vision1231Not measuredOnly Grok 4.7 measured
LMArena Text: English14111231Grok 4.7
LMArena Text: non-English13861197Grok 4.7
LMArena Text: Chinese14491212Grok 4.7
LMArena Text: German13661222Grok 4.7
LMArena Text: Japanese13591158Grok 4.7
LMArena Text: Korean13831151Grok 4.7
LMArena Text: French14311224Grok 4.7
LMArena Text: Spanish14061234Grok 4.7
LMArena Text: Russian13991209Grok 4.7
LMArena Text: Polish1420Not measuredOnly Grok 4.7 measured
LMArena Text: multi-turn13941206Grok 4.7
LMArena Text: longer queries14161217Grok 4.7
LMArena Text: writing and language13941198Grok 4.7
LMArena Text: entertainment and media13761162Grok 4.7
LMArena Vision: English1229Not measuredOnly Grok 4.7 measured
LMArena Vision: Chinese1250Not measuredOnly Grok 4.7 measured
LMArena Vision: reading text1241Not measuredOnly Grok 4.7 measured
LMArena Vision: creative writing1217Not measuredOnly Grok 4.7 measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Grok 4.7 and Phi 4
BenchmarkGrok 4.7Phi 4Leader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Grok 4.7$0.0050Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Grok 4.7$0.118Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Grok 4.7$0.460Fits in one request
Phi 4$0.015Exceeds the context window

Phi 4 costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Grok 4.7 and Phi 4
SpecificationSpaceXAI Grok 4.7Microsoft Phi 4
MakerxAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedSeptember 21, 2026January 10, 2025
Context window500K16K
Input $/Mtok$2.00$0.07
Output $/Mtok$6.00$0.14
Coding index66.7Not benchmarked
Independent measurements behind it50
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Grok 4.7 better than Phi 4 for coding?

Only Grok 4.7 has a coding score, 66.7 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Phi 4 has the edge where output tokens cost 42.9x less.

Which is cheaper, Grok 4.7 or Phi 4?

Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for neither of them.

Which has the bigger context window, Grok 4.7 or Phi 4?

Grok 4.7, with 500K tokens against 16K.

How many benchmarks is the Grok 4.7 vs Phi 4 comparison based on?

33 benchmarks have a result for both models as of October 21, 2026. Grok 4.7's coding index rests on 5 independent benchmarks and Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next