Enter opens the highlighted result. Esc closes.

Gemini 3.5 Flash vs Phi 4

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

Gemini 3.5 FlashGoogle
Coding
39.8
Overall
33.6
Output $/M
$9.00
37
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 37 shared

Decision reading

Only Gemini 3.5 Flash has a coding score, 39.8 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 64.3x less.

Shared results
37
Gemini 3.5 Flash only
73
Phi 4 only
8
Like-for-like categories
7 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
Gemini 3.5 Flash 39.8 from 4 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 95.6 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: Gemini 3.5 Flash 95.6% against Phi 4 0.0%, 95.6 points apart on a 0 to 100 scale.
Output price
Gemini 3.5 Flash $9.00 against Phi 4 $0.14 per million output tokens, 64.3x apart.
Context window
Gemini 3.5 Flash takes 1.05M 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
CategoryGemini 3.5 FlashBarsPhi 4Ties
Coding30
Intelligence20
Agentic work10
Reasoning60
Math30
Knowledge40
General180
All shared boards370
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
Coding benchmarks for Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
LMArena WebDev1499Not measuredOnly Gemini 3.5 Flash measured
LiveCodeBench (Vals AI)87.6%Not measuredOnly Gemini 3.5 Flash measured
SWE-bench Verified (Vals AI)78.8%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench 4 (Vals AI)6.1%Not measuredOnly Gemini 3.5 Flash measured
Vibe Code Bench (Vals AI)48.7%Not measuredOnly Gemini 3.5 Flash measured
Code migration (Vals AI)26.8%Not measuredOnly Gemini 3.5 Flash measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench 2.1 (Vals AI)74.2%Not measuredOnly Gemini 3.5 Flash measured
SkillsBench (Vals AI)52.7%Not measuredOnly Gemini 3.5 Flash measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
SciCode53.9%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench Hard (Artificial Analysis run)46.2%3.8%Gemini 3.5 Flash
WeirdML62.6%Not measuredOnly Gemini 3.5 Flash measured
ALE-Bench911.0Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: coding14931231Gemini 3.5 Flash
LMArena Text: software and IT14941228Gemini 3.5 Flash
LMArena WebDev: React1495Not measuredOnly Gemini 3.5 Flash measured
LMArena WebDev: HTML1522Not measuredOnly Gemini 3.5 Flash measured
LMArena WebDev: from an image1504Not measuredOnly Gemini 3.5 Flash measured
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
AA Intelligence Index33.65.9Gemini 3.5 Flash
Epoch Capabilities Index154.9130.5Gemini 3.5 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
Design Arena: agents building web apps1202Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building full-stack apps1197Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building mobile apps1175Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building Android apps1190Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building Godot games1098Not measuredOnly Gemini 3.5 Flash measured
Design Arena: agents building games1180Not measuredOnly Gemini 3.5 Flash measured
Design Arena: HTML slides1142Not measuredOnly Gemini 3.5 Flash measured
Design Arena: PowerPoint slides1179Not measuredOnly Gemini 3.5 Flash measured
Finance Agent (Vals AI)57.9%Not measuredOnly Gemini 3.5 Flash measured
Tax Agent Bench (Vals AI)21.6%Not measuredOnly Gemini 3.5 Flash measured
Legal Research Bench (Vals AI)30.8%Not measuredOnly Gemini 3.5 Flash measured
Excel Modeling Benchmark (Vals AI)63.5%Not measuredOnly Gemini 3.5 Flash measured
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Gemini 3.5 Flash measured
τ²-Bench Telecom95.6%0.0%Gemini 3.5 Flash
APEX-Agents27.5%Not measuredOnly Gemini 3.5 Flash measured
BALROGNot measured11.6%Only Phi 4 measured
Vending-Bench 2$5,396Not measuredOnly Gemini 3.5 Flash measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
GPQA Diamond92.7%Not measuredOnly Gemini 3.5 Flash measured
MMMU Pro (Vals AI)88.3%Not measuredOnly Gemini 3.5 Flash measured
GPQA Diamond (Artificial Analysis run)92.2%57.5%Gemini 3.5 Flash
Humanity's Last Exam (Artificial Analysis run)42.7%3.8%Gemini 3.5 Flash
GPQA Diamond (Epoch AI run)92.8%56.1%Gemini 3.5 Flash
ARC-AGI92.5%Not measuredOnly Gemini 3.5 Flash measured
ARC-AGI-272.1%Not measuredOnly Gemini 3.5 Flash measured
SimpleBench76.7%Not measuredOnly Gemini 3.5 Flash measured
Chess puzzles45.0%Not measuredOnly Gemini 3.5 Flash measured
Mystery game puzzles32.0%Not measuredOnly Gemini 3.5 Flash measured
EBR-bench4.8%Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: hard prompts14881220Gemini 3.5 Flash
LMArena Text: expert14951203Gemini 3.5 Flash
LMArena Text: hard prompts in English14831230Gemini 3.5 Flash
LMArena Vision: diagrams1323Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: homework1330Not measuredOnly Gemini 3.5 Flash measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME95.6%13.8%Gemini 3.5 Flash
FrontierMath, tiers 1 to 362.8%Not measuredOnly Gemini 3.5 Flash measured
FrontierMath, tier 426.8%Not measuredOnly Gemini 3.5 Flash measured
ProofBench31.0%Not measuredOnly Gemini 3.5 Flash measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math15041246Gemini 3.5 Flash
LMArena Text: mathematical work14951254Gemini 3.5 Flash
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 Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
MMLU Pro89.5%Not measuredOnly Gemini 3.5 Flash measured
LegalBench (Vals AI)83.6%Not measuredOnly Gemini 3.5 Flash measured
CorpFin (Vals AI)64.7%Not measuredOnly Gemini 3.5 Flash measured
TaxEval (Vals AI)74.4%Not measuredOnly Gemini 3.5 Flash measured
MortgageTax (Vals AI)68.1%Not measuredOnly Gemini 3.5 Flash measured
MedCode (Vals AI)55.8%Not measuredOnly Gemini 3.5 Flash measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
SimpleQA Verified66.2%Not measuredOnly Gemini 3.5 Flash measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14951206Gemini 3.5 Flash
LMArena Text: medicine and healthcare14831202Gemini 3.5 Flash
LMArena Text: legal and government14881241Gemini 3.5 Flash
LMArena Text: business and finance14671199Gemini 3.5 Flash
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 Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
Design Arena: websites1268Not measuredOnly Gemini 3.5 Flash measured
Design Arena: UI components1273Not measuredOnly Gemini 3.5 Flash measured
Design Arena: game dev1263Not measuredOnly Gemini 3.5 Flash measured
Design Arena: data viz1236Not measuredOnly Gemini 3.5 Flash measured
Design Arena: 3D1244Not measuredOnly Gemini 3.5 Flash measured
Design Arena: all code categories1266Not measuredOnly Gemini 3.5 Flash measured
Design Arena: SVG1254Not measuredOnly Gemini 3.5 Flash measured
Design Arena: ASCII art1254Not measuredOnly Gemini 3.5 Flash measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
General benchmarks for Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 4Leader
Public Benefits Bench (Vals AI)59.5%Not measuredOnly Gemini 3.5 Flash measured
SAGE (Vals AI)49.9%Not measuredOnly Gemini 3.5 Flash measured
MedScribe (Vals AI)76.6%Not measuredOnly Gemini 3.5 Flash measured
Vals Multimodal Index62.9%Not measuredOnly Gemini 3.5 Flash measured
IFBench76.3%23.5%Gemini 3.5 Flash
Long context reasoning (AA-LCR)74.3%0.0%Gemini 3.5 Flash
DTBench94.7%Not measuredOnly Gemini 3.5 Flash measured
LMCA47.1%Not measuredOnly Gemini 3.5 Flash measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
Surface Evolver Bench58.1%Not measuredOnly Gemini 3.5 Flash measured
LMArena Text14821217Gemini 3.5 Flash
LMArena Text: instruction following14671201Gemini 3.5 Flash
LMArena Text: creative writing14701181Gemini 3.5 Flash
LMArena Vision1308Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: English14811231Gemini 3.5 Flash
LMArena Text: non-English14751197Gemini 3.5 Flash
LMArena Text: Chinese15271212Gemini 3.5 Flash
LMArena Text: German14941222Gemini 3.5 Flash
LMArena Text: Japanese14861158Gemini 3.5 Flash
LMArena Text: Korean14481151Gemini 3.5 Flash
LMArena Text: French14901224Gemini 3.5 Flash
LMArena Text: Spanish14801234Gemini 3.5 Flash
LMArena Text: Russian14931209Gemini 3.5 Flash
LMArena Text: Polish1516Not measuredOnly Gemini 3.5 Flash measured
LMArena Text: multi-turn14811206Gemini 3.5 Flash
LMArena Text: longer queries14831217Gemini 3.5 Flash
LMArena Text: writing and language14781198Gemini 3.5 Flash
LMArena Text: entertainment and media14591162Gemini 3.5 Flash
LMArena Vision: English1305Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: Chinese1377Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: reading text1317Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: humor1321Not measuredOnly Gemini 3.5 Flash measured
LMArena Vision: creative writing1301Not measuredOnly Gemini 3.5 Flash measured
LMArena Document1463Not measuredOnly Gemini 3.5 Flash 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 Gemini 3.5 Flash and Phi 4
BenchmarkGemini 3.5 FlashPhi 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

Gemini 3.5 Flash$0.0060Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Gemini 3.5 Flash$0.102Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Gemini 3.5 Flash$0.390Fits 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 Gemini 3.5 Flash and Phi 4
SpecificationGoogle Gemini 3.5 FlashMicrosoft Phi 4
MakerGoogleMicrosoft
WeightsNo public weights listedOpen weights
ReleasedMay 19, 2026January 10, 2025
Context window1.05M16K
Input $/Mtok$1.50$0.07
Output $/Mtok$9.00$0.14
Coding index39.8Not benchmarked
Independent measurements behind it40
Cost per solved task$1.21Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.5 Flash better than Phi 4 for coding?

Only Gemini 3.5 Flash has a coding score, 39.8 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 64.3x less.

Which is cheaper, Gemini 3.5 Flash or Phi 4?

Gemini 3.5 Flash costs $1.50 per million input tokens and $9.00 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for Gemini 3.5 Flash only.

Which has the bigger context window, Gemini 3.5 Flash or Phi 4?

Gemini 3.5 Flash, with 1.05M tokens against 16K.

How many benchmarks is the Gemini 3.5 Flash vs Phi 4 comparison based on?

37 benchmarks have a result for both models as of October 21, 2026. Gemini 3.5 Flash's coding index rests on 4 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