Enter opens the highlighted result. Esc closes.

Phi 4 vs Qwen3.8 Max (0902)

Qwen3.8 Max (0902) leads Phi 4 on the Artificial Analysis Intelligence Index, 45.4 to 5.9, and Phi 4 costs 42.9x less per output token ($0.14 vs $6.00 per million). Updated October 21, 2026; 34 benchmarks have a result for both.

Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
Qwen3.8 Max (0902)Qwen
Coding
62.4
Overall
45.4
Output $/M
$6.00
34
vs boards won of 34 shared

Phi 4 or Qwen3.8 Max (0902): which to pick

Only Qwen3.8 Max (0902) has a coding score, 62.4 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.

Pick Phi 4 for output tokens 42.9x cheaper ($0.14 vs $6.00 per million).

Shared results
34
Phi 4 only
11
Qwen3.8 Max (0902) only
79
Like-for-like categories
6 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
Phi 4 not benchmarked, Qwen3.8 Max (0902) 62.4 from 5 benchmarks.
Widest category
Math, 56.1 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Phi 4 13.8% against Qwen3.8 Max (0902) 100.0%, 86.3 points apart on a 0 to 100 scale.
Output price
Phi 4 $0.14 against Qwen3.8 Max (0902) $6.00 per million output tokens, 42.9x apart.
Context window
Phi 4 takes 16K tokens, Qwen3.8 Max (0902) 1M.

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
CategoryPhi 4BarsQwen3.8 Max (0902)Ties
Coding02
Intelligence02
Reasoning06
Math03
Knowledge04
General017
All shared boards034
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
LiveBench codingNot measured60.3%Only Qwen3.8 Max (0902) measured
LMArena WebDevNot measured1674Only Qwen3.8 Max (0902) measured
AA Coding IndexNot measured76.2Only Qwen3.8 Max (0902) measured
LiveCodeBench (Vals AI)Not measured87.8%Only Qwen3.8 Max (0902) measured
SWE-bench Verified (Vals AI)Not measured85.6%Only Qwen3.8 Max (0902) measured
Terminal-Bench 4 (Vals AI)Not measured34.3%Only Qwen3.8 Max (0902) measured
Vibe Code Bench (Vals AI)Not measured64.7%Only Qwen3.8 Max (0902) measured
Code migration (Vals AI)Not measured24.0%Only Qwen3.8 Max (0902) measured
ProgramBench (Vals AI)Not measured0.0%Only Qwen3.8 Max (0902) measured
IOI (Vals AI)Not measured68.9%Only Qwen3.8 Max (0902) measured
Terminal-Bench 2.1 (Vals AI)Not measured67.4%Only Qwen3.8 Max (0902) measured
SWE-bench Multimodal (Vals AI)Not measured42.5%Only Qwen3.8 Max (0902) measured
Vibe Code Bench 1-100 (Vals AI)Not measured12.8%Only Qwen3.8 Max (0902) measured
SkillsBench (Vals AI)Not measured42.0%Only Qwen3.8 Max (0902) measured
CyberBench (Vals AI)Not measured28.6%Only Qwen3.8 Max (0902) measured
LiveCodeBench (Artificial Analysis run)23.1%Not measuredOnly Phi 4 measured
SciCodeNot measured53.2%Only Qwen3.8 Max (0902) measured
Terminal-Bench Hard (Artificial Analysis run)3.8%Not measuredOnly Phi 4 measured
FrontierSWENot measured17.8%Only Qwen3.8 Max (0902) measured
LMArena Text: coding12311502Qwen3.8 Max (0902)
LMArena Text: software and IT12281498Qwen3.8 Max (0902)
LMArena WebDev: ReactNot measured1692Only Qwen3.8 Max (0902) measured
LMArena WebDev: HTMLNot measured1649Only Qwen3.8 Max (0902) measured
LMArena WebDev: from an imageNot measured1637Only Qwen3.8 Max (0902) measured
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
AA Intelligence Index5.945.4Qwen3.8 Max (0902)
Epoch Capabilities Index130.5157.4Qwen3.8 Max (0902)
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index20 boards, none shared
Agentic work benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
AA Agentic IndexNot measured56.0Only Qwen3.8 Max (0902) measured
Design Arena: agents building web appsNot measured1300Only Qwen3.8 Max (0902) measured
Design Arena: agents building full-stack appsNot measured1305Only Qwen3.8 Max (0902) measured
Design Arena: agents building mobile appsNot measured1224Only Qwen3.8 Max (0902) measured
Design Arena: agents building Android appsNot measured1202Only Qwen3.8 Max (0902) measured
Design Arena: agents building Godot gamesNot measured1234Only Qwen3.8 Max (0902) measured
Design Arena: PowerPoint slidesNot measured1258Only Qwen3.8 Max (0902) measured
Design Arena: spreadsheetsNot measured937Only Qwen3.8 Max (0902) measured
LiveBench researchNot measured69.9%Only Qwen3.8 Max (0902) measured
LiveBench browserNot measured32.0%Only Qwen3.8 Max (0902) measured
LiveBench long agenticNot measured42.3%Only Qwen3.8 Max (0902) measured
Finance Agent (Vals AI)Not measured50.6%Only Qwen3.8 Max (0902) measured
Tax Agent Bench (Vals AI)Not measured32.1%Only Qwen3.8 Max (0902) measured
Legal Research Bench (Vals AI)Not measured47.6%Only Qwen3.8 Max (0902) measured
Excel Modeling Benchmark (Vals AI)Not measured60.1%Only Qwen3.8 Max (0902) measured
Terminal-Bench-Science (Vals AI)Not measured12.9%Only Qwen3.8 Max (0902) measured
τ²-Bench Telecom0.0%Not measuredOnly Phi 4 measured
APEX-AgentsNot measured63.3%Only Qwen3.8 Max (0902) measured
BALROG11.6%Not measuredOnly Phi 4 measured
LMArena SearchNot measured1261Only Qwen3.8 Max (0902) measured
Neither model has a result on the other 19 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
GPQA DiamondNot measured93.7%Only Qwen3.8 Max (0902) measured
LiveBench reasoningNot measured88.2%Only Qwen3.8 Max (0902) measured
MysteryMechanism (Vals AI)Not measured23.9%Only Qwen3.8 Max (0902) measured
MMMU Pro (Vals AI)Not measured88.0%Only Qwen3.8 Max (0902) measured
GPQA Diamond (Artificial Analysis run)57.5%92.8%Qwen3.8 Max (0902)
Humanity's Last Exam (Artificial Analysis run)3.8%43.1%Qwen3.8 Max (0902)
GPQA Diamond (Epoch AI run)56.1%92.7%Qwen3.8 Max (0902)
Chess puzzlesNot measured46.0%Only Qwen3.8 Max (0902) measured
Mystery game puzzlesNot measured38.0%Only Qwen3.8 Max (0902) measured
LMArena Text: hard prompts12201496Qwen3.8 Max (0902)
LMArena Text: expert12031507Qwen3.8 Max (0902)
LMArena Text: hard prompts in English12301503Qwen3.8 Max (0902)
LMArena Vision: diagramsNot measured1323Only Qwen3.8 Max (0902) measured
LMArena Vision: homeworkNot measured1336Only Qwen3.8 Max (0902) measured
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
AA Math Index18.0Not measuredOnly Phi 4 measured
AIME 2025 (Artificial Analysis run)18.0%Not measuredOnly Phi 4 measured
OTIS Mock AIME13.8%100.0%Qwen3.8 Max (0902)
FrontierMath, tiers 1 to 3Not measured74.7%Only Qwen3.8 Max (0902) measured
FrontierMath, tier 4Not measured46.3%Only Qwen3.8 Max (0902) measured
ProofBenchNot measured58.0%Only Qwen3.8 Max (0902) measured
MATH level 564.9%Not measuredOnly Phi 4 measured
LMArena Text: math12461501Qwen3.8 Max (0902)
LMArena Text: mathematical work12541491Qwen3.8 Max (0902)
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
Knowledge benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
MMLU ProNot measured88.6%Only Qwen3.8 Max (0902) measured
LegalBench (Vals AI)Not measured83.6%Only Qwen3.8 Max (0902) measured
CorpFin (Vals AI)Not measured65.8%Only Qwen3.8 Max (0902) measured
TaxEval (Vals AI)Not measured75.5%Only Qwen3.8 Max (0902) measured
MortgageTax (Vals AI)Not measured64.0%Only Qwen3.8 Max (0902) measured
MedCode (Vals AI)Not measured40.7%Only Qwen3.8 Max (0902) measured
MMLU Pro (Artificial Analysis run)71.4%Not measuredOnly Phi 4 measured
SimpleQA VerifiedNot measured47.3%Only Qwen3.8 Max (0902) measured
MMLU84.8%Not measuredOnly Phi 4 measured
LMArena Text: science12061512Qwen3.8 Max (0902)
LMArena Text: medicine and healthcare12021503Qwen3.8 Max (0902)
LMArena Text: legal and government12411492Qwen3.8 Max (0902)
LMArena Text: business and finance11991480Qwen3.8 Max (0902)
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
Design Arena: websitesNot measured1275Only Qwen3.8 Max (0902) measured
Design Arena: UI componentsNot measured1340Only Qwen3.8 Max (0902) measured
Design Arena: game devNot measured1313Only Qwen3.8 Max (0902) measured
Design Arena: data vizNot measured1282Only Qwen3.8 Max (0902) measured
Design Arena: 3DNot measured1337Only Qwen3.8 Max (0902) measured
Design Arena: all code categoriesNot measured1293Only Qwen3.8 Max (0902) measured
Design Arena: ASCII artNot measured1200Only Qwen3.8 Max (0902) measured
LiveBench designNot measured78.6%Only Qwen3.8 Max (0902) measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index017
General benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
LiveBench data analysisNot measured78.4%Only Qwen3.8 Max (0902) measured
Public Benefits Bench (Vals AI)Not measured67.1%Only Qwen3.8 Max (0902) measured
SAGE (Vals AI)Not measured51.2%Only Qwen3.8 Max (0902) measured
MedScribe (Vals AI)Not measured85.0%Only Qwen3.8 Max (0902) measured
Vals Multimodal IndexNot measured65.4%Only Qwen3.8 Max (0902) measured
IFBench23.5%Not measuredOnly Phi 4 measured
Long context reasoning (AA-LCR)0.0%80.3%Qwen3.8 Max (0902)
DTBenchNot measured92.0%Only Qwen3.8 Max (0902) measured
LMCANot measured46.2%Only Qwen3.8 Max (0902) measured
Creative writing (Lech Mazur)62.6%Not measuredOnly Phi 4 measured
Furniture assemblyNot measured20.0%Only Qwen3.8 Max (0902) measured
LMArena Text12171483Qwen3.8 Max (0902)
LMArena Text: instruction following12011481Qwen3.8 Max (0902)
LMArena Text: creative writing11811477Qwen3.8 Max (0902)
LMArena VisionNot measured1313Only Qwen3.8 Max (0902) measured
LMArena Text: English12311491Qwen3.8 Max (0902)
LMArena Text: non-English11971473Qwen3.8 Max (0902)
LMArena Text: Chinese12121539Qwen3.8 Max (0902)
LMArena Text: German12221478Qwen3.8 Max (0902)
LMArena Text: Japanese11581473Qwen3.8 Max (0902)
LMArena Text: Korean11511460Qwen3.8 Max (0902)
LMArena Text: French12241498Qwen3.8 Max (0902)
LMArena Text: Spanish12341489Qwen3.8 Max (0902)
LMArena Text: Russian12091482Qwen3.8 Max (0902)
LMArena Text: PolishNot measured1471Only Qwen3.8 Max (0902) measured
LMArena Text: multi-turn12061489Qwen3.8 Max (0902)
LMArena Text: longer queries12171488Qwen3.8 Max (0902)
LMArena Text: writing and language11981477Qwen3.8 Max (0902)
LMArena Text: entertainment and media11621464Qwen3.8 Max (0902)
LMArena Vision: EnglishNot measured1311Only Qwen3.8 Max (0902) measured
LMArena Vision: ChineseNot measured1358Only Qwen3.8 Max (0902) measured
LMArena Vision: reading textNot measured1322Only Qwen3.8 Max (0902) measured
LMArena Vision: humorNot measured1304Only Qwen3.8 Max (0902) measured
LMArena Vision: creative writingNot measured1312Only Qwen3.8 Max (0902) measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Phi 4 and Qwen3.8 Max (0902)
BenchmarkPhi 4Qwen3.8 Max (0902)Leader
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

Phi 4$0.0001Fits in one request
Qwen3.8 Max (0902)$0.0050Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Phi 4$0.0039Exceeds the context window
Qwen3.8 Max (0902)$0.118Fits in one request

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Phi 4$0.015Exceeds the context window
Qwen3.8 Max (0902)$0.460Fits in one request

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 Phi 4 and Qwen3.8 Max (0902)
SpecificationMicrosoft Phi 4Qwen3.8 Max (0902)
MakerMicrosoftQwen
WeightsOpen weightsNo public weights listed
ReleasedJanuary 10, 2025September 3, 2026
Context window16K1M
Input $/Mtok$0.07$2.00
Output $/Mtok$0.14$6.00
Coding indexNot benchmarked62.4
Independent measurements behind it05
Cost per solved taskNot computable$1.32
SourceOpenRouter listingOpenRouter listing

Questions

Is Phi 4 better than Qwen3.8 Max (0902) for coding?

Only Qwen3.8 Max (0902) has a coding score, 62.4 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Pick Phi 4 for output tokens 42.9x cheaper ($0.14 vs $6.00 per million).

Which is cheaper, Phi 4 or Qwen3.8 Max (0902)?

Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens; Qwen3.8 Max (0902) costs $2.00 and $6.00. Cost per solved task is known for Qwen3.8 Max (0902) only.

Which has the bigger context window, Phi 4 or Qwen3.8 Max (0902)?

Qwen3.8 Max (0902), with 1M tokens against 16K.

How many benchmarks is the Phi 4 vs Qwen3.8 Max (0902) comparison based on?

34 benchmarks have a result for both models as of October 21, 2026. Phi 4's coding index rests on 0 independent benchmarks and Qwen3.8 Max (0902)'s on 5. Where only one model has a result, the page says so instead of naming a winner.

Compare next