Enter opens the highlighted result. Esc closes.

Granite 4.2 8B vs Phi 4

Granite 4.2 8B leads Phi 4 on the Artificial Analysis Intelligence Index, 11.1 to 5.9, and Phi 4 costs 1.4x less per output token ($0.14 vs $0.20 per million). Updated October 22, 2026; 24 benchmarks have a result for both.

Granite 4.2 8BIBM Granite
Coding
No data
Overall
No data
Output $/M
$0.20
24
Phi 4Microsoft
Coding
No data
Overall
24.7
Output $/M
$0.14
0
vs boards won of 24 shared

Granite 4.2 8B or Phi 4: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick Granite 4.2 8B for a larger context window (131K against 16K tokens).

Shared results
24
Granite 4.2 8B only
3
Phi 4 only
22
Like-for-like categories
5 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

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
Granite 4.2 8B not benchmarked, Phi 4 not benchmarked.
Widest category
Coding, 23.9 points apart on average over 2 shared benchmarks.
Widest single gap
Long context reasoning (AA-LCR): Granite 4.2 8B 45.0% against Phi 4 0.0%, 45.0 points apart on a 0 to 100 scale.
Output price
Granite 4.2 8B $0.20 against Phi 4 $0.14 per million output tokens, 1.4x apart.
Context window
Granite 4.2 8B takes 131K 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
CategoryGranite 4.2 8BBarsPhi 4Ties
Coding20
Intelligence10
Reasoning50
Knowledge40
General120
All shared boards240
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
AA Coding Index22.4Not measuredOnly Granite 4.2 8B measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
SciCode31.5%Not measuredOnly Granite 4.2 8B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
LMArena Text: coding13781231Granite 4.2 8B
LMArena Text: software and IT13671228Granite 4.2 8B
Neither model has a result on the other 33 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
AA Intelligence Index11.15.9Granite 4.2 8B
Epoch Capabilities IndexNot measured130.5Only Phi 4 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index4 boards, none shared
Agentic work benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
AA Agentic Index1.3Not measuredOnly Granite 4.2 8B measured
τ²-Bench TelecomNot measured0.0%Only Phi 4 measured
BALROGNot measured11.6%Only Phi 4 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured28.8%Only Phi 4 measured
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index50
Reasoning benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
GPQA Diamond (Artificial Analysis run)63.1%57.5%Granite 4.2 8B
Humanity's Last Exam (Artificial Analysis run)9.7%3.8%Granite 4.2 8B
GPQA Diamond (Epoch AI run)Not measured56.1%Only Phi 4 measured
LMArena Text: hard prompts13271220Granite 4.2 8B
LMArena Text: expert13861203Granite 4.2 8B
LMArena Text: hard prompts in English13451230Granite 4.2 8B
Neither model has a result on the other 16 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Math benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIMENot measured13.8%Only Phi 4 measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: mathNot measured1246Only Phi 4 measured
LMArena Text: mathematical workNot measured1254Only Phi 4 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science13361206Granite 4.2 8B
LMArena Text: medicine and healthcare13361202Granite 4.2 8B
LMArena Text: legal and government13271241Granite 4.2 8B
LMArena Text: business and finance13221199Granite 4.2 8B
Neither model has a result on the other 12 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index120
General benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 4Leader
IFBenchNot measured23.5%Only Phi 4 measured
Long context reasoning (AA-LCR)45.0%0.0%Granite 4.2 8B
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text13191217Granite 4.2 8B
LMArena Text: instruction following13001201Granite 4.2 8B
LMArena Text: creative writing12361181Granite 4.2 8B
LMArena Text: English13371231Granite 4.2 8B
LMArena Text: non-English13011197Granite 4.2 8B
LMArena Text: Chinese13671212Granite 4.2 8B
LMArena Text: GermanNot measured1222Only Phi 4 measured
LMArena Text: JapaneseNot measured1158Only Phi 4 measured
LMArena Text: KoreanNot measured1151Only Phi 4 measured
LMArena Text: FrenchNot measured1224Only Phi 4 measured
LMArena Text: SpanishNot measured1234Only Phi 4 measured
LMArena Text: Russian12821209Granite 4.2 8B
LMArena Text: multi-turn13011206Granite 4.2 8B
LMArena Text: longer queries13251217Granite 4.2 8B
LMArena Text: writing and language12691198Granite 4.2 8B
LMArena Text: entertainment and media12711162Granite 4.2 8B
Neither model has a result on the other 27 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Granite 4.2 8B and Phi 4
BenchmarkGranite 4.2 8BPhi 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

Granite 4.2 8B$0.0002Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Granite 4.2 8B$0.0046Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Granite 4.2 8B$0.018Exceeds the context window
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 Granite 4.2 8B and Phi 4
SpecificationIBM Granite 4.2 8BMicrosoft Phi 4
MakerIBM GraniteMicrosoft
WeightsOpen weightsOpen weights
ReleasedAugust 31, 2026January 10, 2025
Context window131K16K
Input $/Mtok$0.08$0.07
Output $/Mtok$0.20$0.14
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Granite 4.2 8B better than Phi 4 for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Granite 4.2 8B for a larger context window (131K against 16K tokens).

Which is cheaper, Granite 4.2 8B or Phi 4?

Granite 4.2 8B costs $0.08 per million input tokens and $0.20 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, Granite 4.2 8B or Phi 4?

Granite 4.2 8B, with 131K tokens against 16K.

How many benchmarks is the Granite 4.2 8B vs Phi 4 comparison based on?

24 benchmarks have a result for both models as of October 22, 2026. Granite 4.2 8B's coding index rests on 0 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