Enter opens the highlighted result. Esc closes.

DeepSeek V4 Flash 0731 vs Gemini 3.1 Pro Preview

DeepSeek V4 Flash 0731 leads Gemini 3.1 Pro Preview on coding, 51.8 to 32.3 on the Vibe Coding Index, and DeepSeek V4 Flash 0731 costs 42.9x less per output token ($0.28 vs $12.00 per million). Updated October 21, 2026; 51 benchmarks have a result for both.

DeepSeek V4 Flash 0731DeepSeek
Coding
51.8
Overall
55.2
Output $/M
$0.28
19
Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
30
vs boards won of 51 shared, 2 tied

DeepSeek V4 Flash 0731 or Gemini 3.1 Pro Preview: which to pick

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview.

Pick Gemini 3.1 Pro Preview for work measured by LiveCodeBench (Vals AI) or IOI (Vals AI), where it leads.

Shared results
51
DeepSeek V4 Flash 0731 only
4
Gemini 3.1 Pro Preview only
82
Like-for-like categories
8 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
DeepSeek V4 Flash 0731 51.8 from 4 benchmarks, Gemini 3.1 Pro Preview 32.3 from 4 benchmarks.
Widest category
Knowledge, 12.8 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): DeepSeek V4 Flash 0731 74.7% against Gemini 3.1 Pro Preview 32.0%, 42.7 points apart on a 0 to 100 scale.
Output price
DeepSeek V4 Flash 0731 $0.28 against Gemini 3.1 Pro Preview $12.00 per million output tokens, 42.9x apart.
Context window
Both take 1.05M tokens.

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
CategoryDeepSeek V4 Flash 0731BarsGemini 3.1 Pro PreviewTies
Coding651 tie
Intelligence10
Agentic work70
Reasoning081 tie
Math13
Knowledge06
Web design35
General13
All shared boards19302 ties
CodingLike-for-likeSix of these boards feed the Vibe Coding Index65
Coding benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
LMArena WebDevNot measured1447Only Gemini 3.1 Pro Preview measured
AA Coding Index69.168.8DeepSeek V4 Flash 0731
LiveCodeBench (Vals AI)87.3%88.5%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)88.8%78.8%DeepSeek V4 Flash 0731
Terminal-Bench 4 (Vals AI)18.7%2.5%DeepSeek V4 Flash 0731
Vibe Code Bench (Vals AI)74.7%32.0%DeepSeek V4 Flash 0731
Code migration (Vals AI)38.6%17.3%DeepSeek V4 Flash 0731
ProgramBench (Vals AI)0.0%0.0%Tie
IOI (Vals AI)32.7%51.8%Gemini 3.1 Pro Preview
Terminal-Bench 2.1 (Vals AI)67.0%70.8%Gemini 3.1 Pro Preview
Vibe Code Bench 1-100 (Vals AI)Not measured6.7%Only Gemini 3.1 Pro Preview measured
SkillsBench (Vals AI)50.7%Not measuredOnly DeepSeek V4 Flash 0731 measured
CyberBench (Vals AI)72.1%Not measuredOnly DeepSeek V4 Flash 0731 measured
SciCode50.3%58.7%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)Not measured53.8%Only Gemini 3.1 Pro Preview measured
Terminal-BenchNot measured80.2%Only Gemini 3.1 Pro Preview measured
FrontierCode18.8%Not measuredOnly DeepSeek V4 Flash 0731 measured
GSO-BenchNot measured22.6%Only Gemini 3.1 Pro Preview measured
WeirdML63.0%72.1%Gemini 3.1 Pro Preview
MirrorCodeNot measured8.9%Only Gemini 3.1 Pro Preview measured
ALE-Bench1306.11160.6DeepSeek V4 Flash 0731
LMArena Text: codingNot measured1484Only Gemini 3.1 Pro Preview measured
LMArena Text: software and ITNot measured1487Only Gemini 3.1 Pro Preview measured
LMArena WebDev: ReactNot measured1438Only Gemini 3.1 Pro Preview measured
LMArena WebDev: HTMLNot measured1490Only Gemini 3.1 Pro Preview measured
LMArena WebDev: from an imageNot measured1481Only Gemini 3.1 Pro Preview measured
SciCodeNot measured14.3%Only Gemini 3.1 Pro Preview measured
Neither model has a result on the other 12 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
AA Intelligence Index34.329.7DeepSeek V4 Flash 0731
Epoch Capabilities Index154.8Not measuredOnly DeepSeek V4 Flash 0731 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index70
Agentic work benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
AA Agentic Index41.08.2DeepSeek V4 Flash 0731
Design Arena: agents building web appsNot measured1125Only Gemini 3.1 Pro Preview measured
Design Arena: agents building full-stack appsNot measured1068Only Gemini 3.1 Pro Preview measured
Design Arena: agents building mobile appsNot measured1093Only Gemini 3.1 Pro Preview measured
Design Arena: agents building Android appsNot measured1048Only Gemini 3.1 Pro Preview measured
Design Arena: agents building Godot gamesNot measured1236Only Gemini 3.1 Pro Preview measured
Design Arena: agents building gamesNot measured1114Only Gemini 3.1 Pro Preview measured
Design Arena: HTML slidesNot measured1153Only Gemini 3.1 Pro Preview measured
Design Arena: PowerPoint slidesNot measured1066Only Gemini 3.1 Pro Preview measured
SREBench (Vals AI)Not measured0.0%Only Gemini 3.1 Pro Preview measured
Finance Agent (Vals AI)49.5%43.0%DeepSeek V4 Flash 0731
Tax Agent Bench (Vals AI)28.1%9.3%DeepSeek V4 Flash 0731
Legal Research Bench (Vals AI)30.3%20.7%DeepSeek V4 Flash 0731
Excel Modeling Benchmark (Vals AI)57.0%52.6%DeepSeek V4 Flash 0731
BioMysteryBench (Vals AI)64.4%60.0%DeepSeek V4 Flash 0731
Terminal-Bench-Science (Vals AI)4.3%1.4%DeepSeek V4 Flash 0731
Vals Science IndexNot measured27.4%Only Gemini 3.1 Pro Preview measured
τ²-Bench TelecomNot measured95.6%Only Gemini 3.1 Pro Preview measured
APEX-AgentsNot measured35.1%Only Gemini 3.1 Pro Preview measured
METR time horizonsNot measured77.0%Only Gemini 3.1 Pro Preview measured
BALROGNot measured57.0%Only Gemini 3.1 Pro Preview measured
DeepResearch BenchNot measured47.8%Only Gemini 3.1 Pro Preview measured
PostTrainBenchNot measured22.0%Only Gemini 3.1 Pro Preview measured
Vending-Bench 2Not measured$911Only Gemini 3.1 Pro Preview measured
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index08
Reasoning benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
GPQA Diamond89.9%95.5%Gemini 3.1 Pro Preview
MysteryMechanism (Vals AI)Not measured20.7%Only Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)Not measured88.2%Only Gemini 3.1 Pro Preview measured
GPQA Diamond (Artificial Analysis run)90.8%94.1%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)38.6%47.0%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)91.0%94.4%Gemini 3.1 Pro Preview
ARC-AGI89.0%98.0%Gemini 3.1 Pro Preview
ARC-AGI-261.4%77.1%Gemini 3.1 Pro Preview
SimpleBench61.1%79.6%Gemini 3.1 Pro Preview
Chess puzzles32.0%51.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%34.0%Tie
EBR-benchNot measured14.3%Only Gemini 3.1 Pro Preview measured
LMArena Text: hard promptsNot measured1485Only Gemini 3.1 Pro Preview measured
LMArena Text: expertNot measured1483Only Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts in EnglishNot measured1480Only Gemini 3.1 Pro Preview measured
LMArena Vision: diagramsNot measured1311Only Gemini 3.1 Pro Preview measured
LMArena Vision: homeworkNot measured1316Only Gemini 3.1 Pro Preview measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index13
Math benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
AIMENot measured98.1%Only Gemini 3.1 Pro Preview measured
OTIS Mock AIME94.4%95.6%Gemini 3.1 Pro Preview
FrontierMath, tiers 1 to 357.5%59.6%Gemini 3.1 Pro Preview
FrontierMath, tier 424.4%26.8%Gemini 3.1 Pro Preview
ProofBench56.0%26.0%DeepSeek V4 Flash 0731
LMArena Text: mathNot measured1486Only Gemini 3.1 Pro Preview measured
LMArena Text: mathematical workNot measured1478Only Gemini 3.1 Pro Preview measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index06
Knowledge benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
MMLU Pro86.2%91.0%Gemini 3.1 Pro Preview
LegalBench (Vals AI)77.7%87.4%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)Not measured64.8%Only Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)61.9%64.5%Gemini 3.1 Pro Preview
TaxEval (Vals AI)70.7%72.9%Gemini 3.1 Pro Preview
MortgageTax (Vals AI)Not measured69.4%Only Gemini 3.1 Pro Preview measured
MedQA (Vals AI)Not measured96.4%Only Gemini 3.1 Pro Preview measured
MedCode (Vals AI)41.4%59.1%Gemini 3.1 Pro Preview
SimpleQA Verified33.6%73.5%Gemini 3.1 Pro Preview
LMArena Text: scienceNot measured1497Only Gemini 3.1 Pro Preview measured
LMArena Text: medicine and healthcareNot measured1486Only Gemini 3.1 Pro Preview measured
LMArena Text: legal and governmentNot measured1487Only Gemini 3.1 Pro Preview measured
LMArena Text: business and financeNot measured1459Only Gemini 3.1 Pro Preview measured
FACTS Benchmark SuiteNot measured67.4%Only Gemini 3.1 Pro Preview measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index35
Web design benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
Design Arena: websites12381234DeepSeek V4 Flash 0731
Design Arena: UI components12351227DeepSeek V4 Flash 0731
Design Arena: game dev12081203DeepSeek V4 Flash 0731
Design Arena: data viz11801209Gemini 3.1 Pro Preview
Design Arena: 3D12091234Gemini 3.1 Pro Preview
Design Arena: all code categories12301231Gemini 3.1 Pro Preview
Design Arena: SVG11851285Gemini 3.1 Pro Preview
Design Arena: ASCII art10901270Gemini 3.1 Pro Preview
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index13
General benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
Public Benefits Bench (Vals AI)Not measured53.8%Only Gemini 3.1 Pro Preview measured
SAGE (Vals AI)Not measured48.7%Only Gemini 3.1 Pro Preview measured
MedScribe (Vals AI)80.4%76.1%DeepSeek V4 Flash 0731
Vals Multimodal IndexNot measured56.1%Only Gemini 3.1 Pro Preview measured
IFBenchNot measured77.1%Only Gemini 3.1 Pro Preview measured
Long context reasoning (AA-LCR)79.7%82.0%Gemini 3.1 Pro Preview
DTBench90.9%97.1%Gemini 3.1 Pro Preview
LMCA41.7%53.8%Gemini 3.1 Pro Preview
CL-benchNot measured20.8%Only Gemini 3.1 Pro Preview measured
Furniture assemblyNot measured26.7%Only Gemini 3.1 Pro Preview measured
ExploitBenchNot measured26.1%Only Gemini 3.1 Pro Preview measured
CL-bench LifeNot measured16.9%Only Gemini 3.1 Pro Preview measured
LMArena TextNot measured1480Only Gemini 3.1 Pro Preview measured
LMArena Text: instruction followingNot measured1466Only Gemini 3.1 Pro Preview measured
LMArena Text: creative writingNot measured1482Only Gemini 3.1 Pro Preview measured
LMArena VisionNot measured1296Only Gemini 3.1 Pro Preview measured
LMArena Text: EnglishNot measured1478Only Gemini 3.1 Pro Preview measured
LMArena Text: non-EnglishNot measured1476Only Gemini 3.1 Pro Preview measured
LMArena Text: ChineseNot measured1527Only Gemini 3.1 Pro Preview measured
LMArena Text: GermanNot measured1490Only Gemini 3.1 Pro Preview measured
LMArena Text: JapaneseNot measured1491Only Gemini 3.1 Pro Preview measured
LMArena Text: KoreanNot measured1455Only Gemini 3.1 Pro Preview measured
LMArena Text: FrenchNot measured1487Only Gemini 3.1 Pro Preview measured
LMArena Text: SpanishNot measured1481Only Gemini 3.1 Pro Preview measured
LMArena Text: RussianNot measured1497Only Gemini 3.1 Pro Preview measured
LMArena Text: PolishNot measured1498Only Gemini 3.1 Pro Preview measured
LMArena Text: multi-turnNot measured1487Only Gemini 3.1 Pro Preview measured
LMArena Text: longer queriesNot measured1482Only Gemini 3.1 Pro Preview measured
LMArena Text: writing and languageNot measured1481Only Gemini 3.1 Pro Preview measured
LMArena Text: entertainment and mediaNot measured1465Only Gemini 3.1 Pro Preview measured
LMArena Vision: EnglishNot measured1287Only Gemini 3.1 Pro Preview measured
LMArena Vision: ChineseNot measured1364Only Gemini 3.1 Pro Preview measured
LMArena Vision: reading textNot measured1304Only Gemini 3.1 Pro Preview measured
LMArena Vision: humorNot measured1322Only Gemini 3.1 Pro Preview measured
LMArena Vision: captioningNot measured1345Only Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing thingsNot measured1330Only Gemini 3.1 Pro Preview measured
LMArena Vision: creative writingNot measured1324Only Gemini 3.1 Pro Preview measured
LMArena DocumentNot measured1444Only Gemini 3.1 Pro Preview measured
Neither model has a result on the other 8 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
BenchmarkDeepSeek V4 Flash 0731Gemini 3.1 Pro PreviewLeader
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

DeepSeek V4 Flash 0731$0.0003Fits in one request
Gemini 3.1 Pro Preview$0.0080Fits in one request

DeepSeek V4 Flash 0731 costs less

Repository review

50K input + 3K output tokens

DeepSeek V4 Flash 0731$0.0078Fits in one request
Gemini 3.1 Pro Preview$0.136Fits in one request

DeepSeek V4 Flash 0731 costs less

Agent loop

200K input + 10K output tokens

DeepSeek V4 Flash 0731$0.031Fits in one request
Gemini 3.1 Pro Preview$0.520Fits in one request

DeepSeek V4 Flash 0731 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 DeepSeek V4 Flash 0731 and Gemini 3.1 Pro Preview
SpecificationDeepSeek V4 Flash 0731Google Gemini 3.1 Pro Preview
MakerDeepSeekGoogle
WeightsOpen weightsNo public weights listed
ReleasedJuly 31, 2026February 19, 2026
Context window1.05M1.05M
Input $/Mtok$0.14$2.00
Output $/Mtok$0.28$12.00
Coding index51.832.3
Independent measurements behind it44
Cost per solved task$0.01$0.99
SourceOpenRouter listingOpenRouter listing

Questions

Is DeepSeek V4 Flash 0731 better than Gemini 3.1 Pro Preview for coding?

Pick DeepSeek V4 Flash 0731 for coding: it scores 51.8 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview for work measured by LiveCodeBench (Vals AI) or IOI (Vals AI), where it leads.

Which is cheaper, DeepSeek V4 Flash 0731 or Gemini 3.1 Pro Preview?

DeepSeek V4 Flash 0731 costs $0.14 per million input tokens and $0.28 per million output tokens; Gemini 3.1 Pro Preview costs $2.00 and $12.00. Per solved SWE-bench Verified task, DeepSeek V4 Flash 0731 costs $0.01 and Gemini 3.1 Pro Preview $0.99.

Which has the bigger context window, DeepSeek V4 Flash 0731 or Gemini 3.1 Pro Preview?

Neither: both take 1.05M tokens.

How many benchmarks is the DeepSeek V4 Flash 0731 vs Gemini 3.1 Pro Preview comparison based on?

51 benchmarks have a result for both models as of October 21, 2026. DeepSeek V4 Flash 0731's coding index rests on 4 independent benchmarks and Gemini 3.1 Pro Preview's on 4. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/deepseek-v4-flash-0731-vs-gemini-3-1-pro-preview" title="DeepSeek V4 Flash 0731 vs Gemini 3.1 Pro Preview, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/deepseek-v4-flash-0731-vs-gemini-3-1-pro-preview">LLMBenchmark.ai, DeepSeek V4 Flash 0731 vs Gemini 3.1 Pro Preview</a></p>