Enter opens the highlighted result. Esc closes.

Gemini 3.1 Flash Lite Preview vs Phi 4

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

Gemini 3.1 Flash Lite PreviewGoogle
Coding
22.7
Overall
15.6
Output $/M
$1.50
28
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 28 shared

Decision reading

Only Gemini 3.1 Flash Lite Preview has a coding score, 22.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 10.7x less.

Shared results
28
Gemini 3.1 Flash Lite Preview only
49
Phi 4 only
17
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
Gemini 3.1 Flash Lite Preview 22.7 from 3 benchmarks, Phi 4 not benchmarked.
Widest category
General, 35.0 points apart on average over 16 shared benchmarks.
Widest single gap
LMArena Text: Japanese: Gemini 3.1 Flash Lite Preview 1413 against Phi 4 1158, 42.5 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Flash Lite Preview $1.50 against Phi 4 $0.14 per million output tokens, 10.7x apart.
Context window
Gemini 3.1 Flash Lite Preview 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.1 Flash Lite PreviewBarsPhi 4Ties
Coding20
Intelligence10
Reasoning30
Math20
Knowledge40
General160
All shared boards280
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
LMArena WebDev1257Not measuredOnly Gemini 3.1 Flash Lite Preview measured
AA Coding Index34.7Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LiveCodeBench (Vals AI)80.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
SWE-bench Verified (Vals AI)62.8%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Vibe Code Bench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Code migration (Vals AI)4.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Terminal-Bench 2.1 (Vals AI)34.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
ALE-Bench797.7Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: coding14001231Gemini 3.1 Flash Lite Preview
LMArena Text: software and IT14131228Gemini 3.1 Flash Lite Preview
LMArena WebDev: React1245Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena WebDev: HTML1276Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena WebDev: from an image1336Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
AA Intelligence Index15.65.9Gemini 3.1 Flash Lite Preview
Epoch Capabilities IndexNot measured130.5Only Phi 4 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Agentic work benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
AA Agentic Index1.6Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Finance Agent (Vals AI)30.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Tax Agent Bench (Vals AI)3.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Legal Research Bench (Vals AI)3.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Excel Modeling Benchmark (Vals AI)8.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
τ²-Bench TelecomNot measured0.0%Only Phi 4 measured
BALROGNot measured11.6%Only Phi 4 measured
Neither model has a result on the other 32 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
Reasoning benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
GPQA Diamond81.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MMMU Pro (Vals AI)82.5%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
GPQA Diamond (Artificial Analysis run)Not measured57.5%Only Phi 4 measured
Humanity's Last Exam (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
GPQA Diamond (Epoch AI run)Not measured56.1%Only Phi 4 measured
LMArena Text: hard prompts14071220Gemini 3.1 Flash Lite Preview
LMArena Text: expert13981203Gemini 3.1 Flash Lite Preview
LMArena Text: hard prompts in English14031230Gemini 3.1 Flash Lite Preview
LMArena Vision: diagrams1242Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: homework1271Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 11 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
AIME83.3%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
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: math14281246Gemini 3.1 Flash Lite Preview
LMArena Text: mathematical work14171254Gemini 3.1 Flash Lite Preview
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
MMLU Pro86.2%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LegalBench (Vals AI)83.8%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
CaseLaw (Vals AI)55.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
CorpFin (Vals AI)59.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
TaxEval (Vals AI)71.8%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MortgageTax (Vals AI)68.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MedCode (Vals AI)47.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14251206Gemini 3.1 Flash Lite Preview
LMArena Text: medicine and healthcare14281202Gemini 3.1 Flash Lite Preview
LMArena Text: legal and government14181241Gemini 3.1 Flash Lite Preview
LMArena Text: business and finance13891199Gemini 3.1 Flash Lite Preview
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.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
Design Arena: websites1083Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: UI components1071Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: game dev1029Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: data viz1044Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: 3D1048Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: all code categories1072Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: SVG1052Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: ASCII art1166Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index160
General benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 4Leader
SAGE (Vals AI)49.5%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MedScribe (Vals AI)63.9%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Vals Multimodal Index41.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
IFBenchNot measured23.5%Only Phi 4 measured
Long context reasoning (AA-LCR)Not measured0.0%Only Phi 4 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text14161217Gemini 3.1 Flash Lite Preview
LMArena Text: instruction following13771201Gemini 3.1 Flash Lite Preview
LMArena Text: creative writing14011181Gemini 3.1 Flash Lite Preview
LMArena Vision1240Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: English14141231Gemini 3.1 Flash Lite Preview
LMArena Text: non-English14101197Gemini 3.1 Flash Lite Preview
LMArena Text: Chinese14601212Gemini 3.1 Flash Lite Preview
LMArena Text: German14301222Gemini 3.1 Flash Lite Preview
LMArena Text: Japanese14131158Gemini 3.1 Flash Lite Preview
LMArena Text: Korean13921151Gemini 3.1 Flash Lite Preview
LMArena Text: French14241224Gemini 3.1 Flash Lite Preview
LMArena Text: Spanish14211234Gemini 3.1 Flash Lite Preview
LMArena Text: Russian14201209Gemini 3.1 Flash Lite Preview
LMArena Text: Polish1443Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: multi-turn14171206Gemini 3.1 Flash Lite Preview
LMArena Text: longer queries13941217Gemini 3.1 Flash Lite Preview
LMArena Text: writing and language14081198Gemini 3.1 Flash Lite Preview
LMArena Text: entertainment and media13861162Gemini 3.1 Flash Lite Preview
LMArena Vision: English1232Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: Chinese1278Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: reading text1246Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: humor1266Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: captioning1259Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: recognizing things1308Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: creative writing1248Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3.1 Flash Lite Preview and Phi 4
BenchmarkGemini 3.1 Flash Lite PreviewPhi 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.1 Flash Lite Preview$0.0010Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Flash Lite Preview$0.017Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Flash Lite Preview$0.065Fits 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.1 Flash Lite Preview and Phi 4
SpecificationGoogle Gemini 3.1 Flash Lite PreviewMicrosoft Phi 4
MakerGoogleMicrosoft
WeightsNo public weights listedOpen weights
ReleasedMarch 3, 2026January 10, 2025
Context window1.05M16K
Input $/Mtok$0.25$0.07
Output $/Mtok$1.50$0.14
Coding index22.7Not benchmarked
Independent measurements behind it30
Cost per solved task$0.18Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Flash Lite Preview better than Phi 4 for coding?

Only Gemini 3.1 Flash Lite Preview has a coding score, 22.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 10.7x less.

Which is cheaper, Gemini 3.1 Flash Lite Preview or Phi 4?

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

Which has the bigger context window, Gemini 3.1 Flash Lite Preview or Phi 4?

Gemini 3.1 Flash Lite Preview, with 1.05M tokens against 16K.

How many benchmarks is the Gemini 3.1 Flash Lite Preview vs Phi 4 comparison based on?

28 benchmarks have a result for both models as of October 21, 2026. Gemini 3.1 Flash Lite Preview's coding index rests on 3 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