Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs GPT-6 Luna

GPT-6 Luna leads Gemini 3.1 Pro Preview on coding, 57.3 to 32.3 on the Vibe Coding Index, and GPT-6 Luna costs 24.0x less per output token ($0.50 vs $12.00 per million). Updated October 22, 2026; 89 benchmarks have a result for both.

Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
52
GPT-6 LunaOpenAI
Coding
57.3
Overall
59.7
Output $/M
$0.50
37
vs boards won of 89 shared

Gemini 3.1 Pro Preview or GPT-6 Luna: which to pick

Pick GPT-6 Luna for coding: it scores 57.3 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview.

Pick Gemini 3.1 Pro Preview for work measured by SciCode or LMArena Text: coding, where it leads.

Shared results
89
Gemini 3.1 Pro Preview only
44
GPT-6 Luna only
14
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
Gemini 3.1 Pro Preview 32.3 from 4 benchmarks, GPT-6 Luna 57.3 from 5 benchmarks.
Widest category
Math, 18.5 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Gemini 3.1 Pro Preview 32.0% against GPT-6 Luna 81.7%, 49.6 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against GPT-6 Luna $0.50 per million output tokens, 24.0x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, GPT-6 Luna 1.05M.

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 Pro PreviewBarsGPT-6 LunaTies
Coding311
Intelligence01
Agentic work012
Reasoning120
Math24
Knowledge70
Web design35
General254
All shared boards5237
CodingLike-for-likeSix of these boards feed the Vibe Coding Index311
Coding benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
LiveBench codingNot measured84.5%Only GPT-6 Luna measured
LMArena WebDev14471578GPT-6 Luna
AA Coding Index68.8Not measuredOnly Gemini 3.1 Pro Preview measured
LiveCodeBench (Vals AI)88.5%Not measuredOnly Gemini 3.1 Pro Preview measured
SWE-bench Verified (Vals AI)78.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 4 (Vals AI)2.5%13.6%GPT-6 Luna
Vibe Code Bench (Vals AI)32.0%81.7%GPT-6 Luna
Code migration (Vals AI)17.3%42.5%GPT-6 Luna
ProgramBench (Vals AI)0.0%0.5%GPT-6 Luna
IOI (Vals AI)51.8%55.6%GPT-6 Luna
Terminal-Bench 2.1 (Vals AI)70.8%73.0%GPT-6 Luna
SWE-bench Multimodal (Vals AI)Not measured37.5%Only GPT-6 Luna measured
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
CyberBench (Vals AI)Not measured76.3%Only GPT-6 Luna measured
SciCode58.7%54.6%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench80.2%Not measuredOnly Gemini 3.1 Pro Preview measured
FrontierCodeNot measured42.4%Only GPT-6 Luna measured
GSO-Bench22.6%Not measuredOnly Gemini 3.1 Pro Preview measured
WeirdML72.1%Not measuredOnly Gemini 3.1 Pro Preview measured
MirrorCode8.9%Not measuredOnly Gemini 3.1 Pro Preview measured
ALE-Bench1160.61576.9GPT-6 Luna
LMArena Text: coding14841437Gemini 3.1 Pro Preview
LMArena Text: software and IT14871423Gemini 3.1 Pro Preview
LMArena WebDev: React14381573GPT-6 Luna
LMArena WebDev: HTML14901595GPT-6 Luna
LMArena WebDev: from an image14811571GPT-6 Luna
SciCode14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 11 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
AA Intelligence Index29.738.1GPT-6 Luna
Epoch Capabilities IndexNot measured156.8Only GPT-6 Luna measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index012
Agentic work benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
AA Agentic Index8.2Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building web apps11251191GPT-6 Luna
Design Arena: agents building full-stack apps10681158GPT-6 Luna
Design Arena: agents building mobile apps10941134GPT-6 Luna
Design Arena: agents building Android apps1049Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building Godot games1236Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building games1113Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: HTML slides1103Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: PowerPoint slides1041Not measuredOnly Gemini 3.1 Pro Preview measured
LiveBench researchNot measured43.5%Only GPT-6 Luna measured
LiveBench browserNot measured72.0%Only GPT-6 Luna measured
LiveBench long agenticNot measured48.1%Only GPT-6 Luna measured
SREBench (Vals AI)0.0%2.7%GPT-6 Luna
Finance Agent (Vals AI)43.0%49.9%GPT-6 Luna
Tax Agent Bench (Vals AI)9.3%19.9%GPT-6 Luna
Legal Research Bench (Vals AI)20.7%30.3%GPT-6 Luna
Harvey's Legal Agent Benchmark (Vals AI)Not measured4.2%Only GPT-6 Luna measured
Excel Modeling Benchmark (Vals AI)52.6%68.5%GPT-6 Luna
BioMysteryBench (Vals AI)60.0%61.5%GPT-6 Luna
Terminal-Bench-Science (Vals AI)1.4%4.3%GPT-6 Luna
Vals Science Index27.4%28.4%GPT-6 Luna
τ²-Bench Telecom95.6%Not measuredOnly Gemini 3.1 Pro Preview measured
APEX-Agents35.1%44.3%GPT-6 Luna
METR time horizons77.0%Not measuredOnly Gemini 3.1 Pro Preview measured
BALROG57.0%Not measuredOnly Gemini 3.1 Pro Preview measured
DeepResearch Bench47.8%Not measuredOnly Gemini 3.1 Pro Preview measured
PostTrainBench22.0%Not measuredOnly Gemini 3.1 Pro Preview measured
SpireClimbNot measured0.0%Only GPT-6 Luna measured
Vending-Bench 2$911Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 12 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index120
Reasoning benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
GPQA Diamond95.5%Not measuredOnly Gemini 3.1 Pro Preview measured
LiveBench reasoningNot measured81.8%Only GPT-6 Luna measured
MysteryMechanism (Vals AI)20.7%19.4%Gemini 3.1 Pro Preview
MMMU Pro (Vals AI)88.2%Not measuredOnly Gemini 3.1 Pro Preview measured
GPQA Diamond (Artificial Analysis run)94.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Humanity's Last Exam (Artificial Analysis run)47.0%38.5%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%90.5%Gemini 3.1 Pro Preview
ARC-AGI98.0%86.7%Gemini 3.1 Pro Preview
ARC-AGI-277.1%59.3%Gemini 3.1 Pro Preview
SimpleBench79.6%Not measuredOnly Gemini 3.1 Pro Preview measured
Chess puzzles51.0%36.0%Gemini 3.1 Pro Preview
Mystery game puzzles34.0%7.0%Gemini 3.1 Pro Preview
EBR-bench14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts14851410Gemini 3.1 Pro Preview
LMArena Text: expert14831442Gemini 3.1 Pro Preview
LMArena Text: hard prompts in English14801410Gemini 3.1 Pro Preview
LMArena Vision: diagrams13111245Gemini 3.1 Pro Preview
LMArena Vision: homework13161261Gemini 3.1 Pro Preview
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index24
Math benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
AIME98.1%Not measuredOnly Gemini 3.1 Pro Preview measured
OTIS Mock AIME95.6%98.9%GPT-6 Luna
FrontierMath, tiers 1 to 359.6%78.9%GPT-6 Luna
FrontierMath, tier 426.8%56.1%GPT-6 Luna
ProofBench26.0%64.0%GPT-6 Luna
LMArena Text: math14861409Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781427Gemini 3.1 Pro Preview
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index70
Knowledge benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
MMLU Pro91.0%Not measuredOnly Gemini 3.1 Pro Preview measured
LegalBench (Vals AI)87.4%Not measuredOnly Gemini 3.1 Pro Preview measured
CaseLaw (Vals AI)64.8%Not measuredOnly Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)64.5%Not measuredOnly Gemini 3.1 Pro Preview measured
TaxEval (Vals AI)72.9%Not measuredOnly Gemini 3.1 Pro Preview measured
MortgageTax (Vals AI)69.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedQA (Vals AI)96.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedCode (Vals AI)59.1%44.7%Gemini 3.1 Pro Preview
SimpleQA Verified73.5%41.4%Gemini 3.1 Pro Preview
LMArena Text: science14971386Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861352Gemini 3.1 Pro Preview
LMArena Text: legal and government14871400Gemini 3.1 Pro Preview
LMArena Text: business and finance14591388Gemini 3.1 Pro Preview
FACTS Benchmark Suite67.4%63.3%Gemini 3.1 Pro Preview
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 Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
Design Arena: websites12331271GPT-6 Luna
Design Arena: UI components12241295GPT-6 Luna
Design Arena: game dev12021257GPT-6 Luna
Design Arena: data viz12091216GPT-6 Luna
Design Arena: 3D12341218Gemini 3.1 Pro Preview
Design Arena: all code categories12311270GPT-6 Luna
Design Arena: SVG12851252Gemini 3.1 Pro Preview
Design Arena: ASCII art12701153Gemini 3.1 Pro Preview
LiveBench designNot measured82.5%Only GPT-6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index254
General benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
Vals IndexNot measured52.3%Only GPT-6 Luna measured
LiveBench data analysisNot measured73.4%Only GPT-6 Luna measured
Public Benefits Bench (Vals AI)53.8%57.6%GPT-6 Luna
SAGE (Vals AI)48.7%48.1%Gemini 3.1 Pro Preview
MedScribe (Vals AI)76.1%83.7%GPT-6 Luna
Vals Multimodal Index56.1%Not measuredOnly Gemini 3.1 Pro Preview measured
IFBench77.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Long context reasoning (AA-LCR)82.0%83.3%GPT-6 Luna
DTBench97.1%90.1%Gemini 3.1 Pro Preview
LMCA53.8%44.5%Gemini 3.1 Pro Preview
CL-bench20.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Furniture assembly26.7%44.2%GPT-6 Luna
ExploitBench26.1%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench Life16.9%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text14801389Gemini 3.1 Pro Preview
LMArena Text: instruction following14661408Gemini 3.1 Pro Preview
LMArena Text: creative writing14821363Gemini 3.1 Pro Preview
LMArena Vision12961216Gemini 3.1 Pro Preview
LMArena Text: English14781393Gemini 3.1 Pro Preview
LMArena Text: non-English14761381Gemini 3.1 Pro Preview
LMArena Text: Chinese15271427Gemini 3.1 Pro Preview
LMArena Text: German14901376Gemini 3.1 Pro Preview
LMArena Text: Japanese14911369Gemini 3.1 Pro Preview
LMArena Text: Korean14551359Gemini 3.1 Pro Preview
LMArena Text: French14871408Gemini 3.1 Pro Preview
LMArena Text: Spanish14811391Gemini 3.1 Pro Preview
LMArena Text: Russian14971392Gemini 3.1 Pro Preview
LMArena Text: Polish14981383Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871392Gemini 3.1 Pro Preview
LMArena Text: longer queries14821408Gemini 3.1 Pro Preview
LMArena Text: writing and language14811384Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651364Gemini 3.1 Pro Preview
LMArena Vision: English12871204Gemini 3.1 Pro Preview
LMArena Vision: Chinese13641266Gemini 3.1 Pro Preview
LMArena Vision: reading text13041225Gemini 3.1 Pro Preview
LMArena Vision: humor1322Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: captioning1345Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing things1330Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: creative writing13241205Gemini 3.1 Pro Preview
LMArena Document1444Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 6 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3.1 Pro Preview and GPT-6 Luna
BenchmarkGemini 3.1 Pro PreviewGPT-6 LunaLeader
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 Pro Preview$0.0080Fits in one request
GPT-6 Luna$0.0003Fits in one request

GPT-6 Luna costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Pro Preview$0.136Fits in one request
GPT-6 Luna$0.0065Fits in one request

GPT-6 Luna costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Pro Preview$0.520Fits in one request
GPT-6 Luna$0.025Fits in one request

GPT-6 Luna 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 Pro Preview and GPT-6 Luna
SpecificationGoogle Gemini 3.1 Pro PreviewOpenAI GPT-6 Luna
MakerGoogleOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 19, 2026September 22, 2026
Context window1.05M1.05M
Input $/Mtok$2.00$0.10
Output $/Mtok$12.00$0.50
Coding index32.357.3
Independent measurements behind it45
Cost per solved task$0.99Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Pro Preview better than GPT-6 Luna for coding?

Pick GPT-6 Luna for coding: it scores 57.3 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview for work measured by SciCode or LMArena Text: coding, where it leads.

Which is cheaper, Gemini 3.1 Pro Preview or GPT-6 Luna?

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GPT-6 Luna costs $0.10 and $0.50. Cost per solved task is known for Gemini 3.1 Pro Preview only.

Which has the bigger context window, Gemini 3.1 Pro Preview or GPT-6 Luna?

GPT-6 Luna, with 1.05M tokens against 1.05M.

How many benchmarks is the Gemini 3.1 Pro Preview vs GPT-6 Luna comparison based on?

89 benchmarks have a result for both models as of October 22, 2026. Gemini 3.1 Pro Preview's coding index rests on 4 independent benchmarks and GPT-6 Luna's on 5. 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/gemini-3-1-pro-preview-vs-gpt-6-luna" title="Gemini 3.1 Pro Preview vs GPT-6 Luna, 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/gemini-3-1-pro-preview-vs-gpt-6-luna">LLMBenchmark.ai, Gemini 3.1 Pro Preview vs GPT-6 Luna</a></p>