Enter opens the highlighted result. Esc closes.

Gemini 3.1 Pro Preview vs GLM 4.6

Gemini 3.1 Pro Preview leads GLM 4.6 on coding, 32.3 to 8.8 on the Vibe Coding Index, and GLM 4.6 costs 5.5x less per output token ($2.20 vs $12.00 per million). Updated October 22, 2026; 60 benchmarks have a result for both.

Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
58
GLM 4.6Z.ai
Coding
8.8
Overall
33.4
Output $/M
$2.20
2
vs boards won of 60 shared

Gemini 3.1 Pro Preview or GLM 4.6: which to pick

Pick Gemini 3.1 Pro Preview for coding: it scores 32.3 on the Vibe Coding Index against 8.8 for GLM 4.6.

Pick GLM 4.6 for output tokens 5.5x cheaper ($2.20 vs $12.00 per million) and work measured by Design Arena: agents building mobile apps or Design Arena: agents building Android apps, where it leads.

Shared results
60
Gemini 3.1 Pro Preview only
73
GLM 4.6 only
9
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, GLM 4.6 8.8 from 2 benchmarks.
Widest category
Coding, 21.7 points apart on average over 10 shared benchmarks.
Widest single gap
Terminal-Bench: Gemini 3.1 Pro Preview 80.2% against GLM 4.6 24.5%, 55.7 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Pro Preview $12.00 against GLM 4.6 $2.20 per million output tokens, 5.5x apart.
Context window
Gemini 3.1 Pro Preview takes 1.05M tokens, GLM 4.6 205K.

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 PreviewBarsGLM 4.6Ties
Coding100
Intelligence10
Agentic work32
Reasoning60
Math30
Knowledge90
Web design70
General190
All shared boards582
CodingLike-for-likeSix of these boards feed the Vibe Coding Index100
Coding benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
SWE-bench VerifiedNot measured68.2%Only GLM 4.6 measured
LMArena WebDev14471341Gemini 3.1 Pro Preview
AA Coding Index68.845.8Gemini 3.1 Pro Preview
LiveCodeBench (Vals AI)88.5%81.0%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)78.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 4 (Vals AI)2.5%Not measuredOnly Gemini 3.1 Pro Preview measured
Vibe Code Bench (Vals AI)32.0%3.1%Gemini 3.1 Pro Preview
Code migration (Vals AI)17.3%Not measuredOnly Gemini 3.1 Pro Preview measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Pro Preview measured
IOI (Vals AI)51.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench 2.1 (Vals AI)70.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Vibe Code Bench 1-100 (Vals AI)6.7%Not measuredOnly Gemini 3.1 Pro Preview measured
LiveCodeBench (Artificial Analysis run)Not measured69.5%Only GLM 4.6 measured
SciCode58.7%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench Hard (Artificial Analysis run)53.8%28.8%Gemini 3.1 Pro Preview
Terminal-Bench80.2%24.5%Gemini 3.1 Pro Preview
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.6340.8Gemini 3.1 Pro Preview
LMArena Text: coding14841449Gemini 3.1 Pro Preview
LMArena Text: software and IT14871455Gemini 3.1 Pro Preview
LMArena WebDev: React1438Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena WebDev: HTML14901350Gemini 3.1 Pro Preview
LMArena WebDev: from an image1481Not measuredOnly Gemini 3.1 Pro Preview measured
SciCode14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
AA Intelligence Index29.718.5Gemini 3.1 Pro Preview
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index32
Agentic work benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
AA Agentic Index8.2Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building web apps1125Not measuredOnly Gemini 3.1 Pro Preview measured
Design Arena: agents building full-stack apps10681029Gemini 3.1 Pro Preview
Design Arena: agents building mobile apps10941096GLM 4.6
Design Arena: agents building Android apps10491084GLM 4.6
Design Arena: agents building Godot games12361180Gemini 3.1 Pro Preview
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
SREBench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Finance Agent (Vals AI)43.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Tax Agent Bench (Vals AI)9.3%Not measuredOnly Gemini 3.1 Pro Preview measured
Legal Research Bench (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
Excel Modeling Benchmark (Vals AI)52.6%Not measuredOnly Gemini 3.1 Pro Preview measured
BioMysteryBench (Vals AI)60.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Terminal-Bench-Science (Vals AI)1.4%Not measuredOnly Gemini 3.1 Pro Preview measured
Vals Science Index27.4%Not measuredOnly Gemini 3.1 Pro Preview measured
τ²-Bench Telecom95.6%76.9%Gemini 3.1 Pro Preview
APEX-Agents35.1%Not measuredOnly Gemini 3.1 Pro Preview measured
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
Vending-Bench 2$911Not measuredOnly Gemini 3.1 Pro Preview measured
Berkeley Function Calling Leaderboard (BFCL)Not measured72.4%Only GLM 4.6 measured
BrowseComp-PlusNot measured48.2%Only GLM 4.6 measured
Neither model has a result on the other 15 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
GPQA Diamond95.5%74.5%Gemini 3.1 Pro Preview
MysteryMechanism (Vals AI)20.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)88.2%Not measuredOnly Gemini 3.1 Pro Preview measured
GPQA Diamond (Artificial Analysis run)94.1%78.0%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)47.0%14.5%Gemini 3.1 Pro Preview
GPQA Diamond (Epoch AI run)94.4%Not measuredOnly Gemini 3.1 Pro Preview measured
ARC-AGI98.0%Not measuredOnly Gemini 3.1 Pro Preview measured
ARC-AGI-277.1%Not measuredOnly Gemini 3.1 Pro Preview measured
SimpleBench79.6%Not measuredOnly Gemini 3.1 Pro Preview measured
Chess puzzles51.0%Not measuredOnly Gemini 3.1 Pro Preview measured
Mystery game puzzles34.0%Not measuredOnly Gemini 3.1 Pro Preview measured
EBR-bench14.3%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: hard prompts14851440Gemini 3.1 Pro Preview
LMArena Text: expert14831432Gemini 3.1 Pro Preview
LMArena Text: hard prompts in English14801445Gemini 3.1 Pro Preview
LMArena Vision: diagrams1311Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: homework1316Not measuredOnly Gemini 3.1 Pro Preview measured
Kagi LLM BenchmarkNot measured45.7%Only GLM 4.6 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
AIME98.1%92.7%Gemini 3.1 Pro Preview
MGSM (Vals AI)Not measured89.8%Only GLM 4.6 measured
AA Math IndexNot measured86.0Only GLM 4.6 measured
AIME 2025 (Artificial Analysis run)Not measured86.0%Only GLM 4.6 measured
OTIS Mock AIME95.6%Not measuredOnly Gemini 3.1 Pro Preview measured
FrontierMath, tiers 1 to 359.6%Not measuredOnly Gemini 3.1 Pro Preview measured
FrontierMath, tier 426.8%Not measuredOnly Gemini 3.1 Pro Preview measured
ProofBench26.0%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: math14861432Gemini 3.1 Pro Preview
LMArena Text: mathematical work14781447Gemini 3.1 Pro Preview
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index90
Knowledge benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
MMLU Pro91.0%82.2%Gemini 3.1 Pro Preview
LegalBench (Vals AI)87.4%79.6%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)64.8%Not measuredOnly Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)64.5%56.8%Gemini 3.1 Pro Preview
TaxEval (Vals AI)72.9%66.2%Gemini 3.1 Pro Preview
MortgageTax (Vals AI)69.4%Not measuredOnly Gemini 3.1 Pro Preview measured
MedQA (Vals AI)96.4%92.2%Gemini 3.1 Pro Preview
MedCode (Vals AI)59.1%Not measuredOnly Gemini 3.1 Pro Preview measured
MMLU Pro (Artificial Analysis run)Not measured82.9%Only GLM 4.6 measured
SimpleQA Verified73.5%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: science14971456Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14861455Gemini 3.1 Pro Preview
LMArena Text: legal and government14871448Gemini 3.1 Pro Preview
LMArena Text: business and finance14591416Gemini 3.1 Pro Preview
FACTS Benchmark Suite67.4%Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index70
Web design benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
Design Arena: websites12331174Gemini 3.1 Pro Preview
Design Arena: UI components12241145Gemini 3.1 Pro Preview
Design Arena: game dev12021150Gemini 3.1 Pro Preview
Design Arena: data viz12091161Gemini 3.1 Pro Preview
Design Arena: 3D12341128Gemini 3.1 Pro Preview
Design Arena: all code categories12311165Gemini 3.1 Pro Preview
Design Arena: SVG12851108Gemini 3.1 Pro Preview
Design Arena: ASCII art1270Not measuredOnly Gemini 3.1 Pro Preview measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
General benchmarks for Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
Public Benefits Bench (Vals AI)53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
SAGE (Vals AI)48.7%Not measuredOnly Gemini 3.1 Pro Preview measured
MedScribe (Vals AI)76.1%Not measuredOnly Gemini 3.1 Pro Preview measured
Vals Multimodal Index56.1%Not measuredOnly Gemini 3.1 Pro Preview measured
IFBench77.1%43.4%Gemini 3.1 Pro Preview
Long context reasoning (AA-LCR)82.0%54.0%Gemini 3.1 Pro Preview
DTBench97.1%Not measuredOnly Gemini 3.1 Pro Preview measured
LMCA53.8%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench20.8%Not measuredOnly Gemini 3.1 Pro Preview measured
Furniture assembly26.7%Not measuredOnly Gemini 3.1 Pro Preview measured
ExploitBench26.1%Not measuredOnly Gemini 3.1 Pro Preview measured
CL-bench Life16.9%Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text14801440Gemini 3.1 Pro Preview
LMArena Text: instruction following14661410Gemini 3.1 Pro Preview
LMArena Text: creative writing14821412Gemini 3.1 Pro Preview
LMArena Vision1296Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Text: English14781449Gemini 3.1 Pro Preview
LMArena Text: non-English14761426Gemini 3.1 Pro Preview
LMArena Text: Chinese15271499Gemini 3.1 Pro Preview
LMArena Text: German14901447Gemini 3.1 Pro Preview
LMArena Text: Japanese14911393Gemini 3.1 Pro Preview
LMArena Text: Korean14551400Gemini 3.1 Pro Preview
LMArena Text: French14871459Gemini 3.1 Pro Preview
LMArena Text: Spanish14811436Gemini 3.1 Pro Preview
LMArena Text: Russian14971418Gemini 3.1 Pro Preview
LMArena Text: Polish14981447Gemini 3.1 Pro Preview
LMArena Text: multi-turn14871427Gemini 3.1 Pro Preview
LMArena Text: longer queries14821422Gemini 3.1 Pro Preview
LMArena Text: writing and language14811415Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14651409Gemini 3.1 Pro Preview
LMArena Vision: English1287Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: Chinese1364Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Vision: reading text1304Not measuredOnly Gemini 3.1 Pro Preview measured
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 writing1324Not measuredOnly Gemini 3.1 Pro Preview measured
LMArena Document1444Not measuredOnly 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 Gemini 3.1 Pro Preview and GLM 4.6
BenchmarkGemini 3.1 Pro PreviewGLM 4.6Leader
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
GLM 4.6$0.0017Fits in one request

GLM 4.6 costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Pro Preview$0.136Fits in one request
GLM 4.6$0.037Fits in one request

GLM 4.6 costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Pro Preview$0.520Fits in one request
GLM 4.6$0.142Exceeds the context window

GLM 4.6 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 GLM 4.6
SpecificationGoogle Gemini 3.1 Pro PreviewZ.ai GLM 4.6
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedFebruary 19, 2026September 30, 2025
Context window1.05M205K
Input $/Mtok$2.00$0.60
Output $/Mtok$12.00$2.20
Coding index32.38.8
Independent measurements behind it42
Cost per solved task$0.99Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Pro Preview better than GLM 4.6 for coding?

Pick Gemini 3.1 Pro Preview for coding: it scores 32.3 on the Vibe Coding Index against 8.8 for GLM 4.6. Pick GLM 4.6 for output tokens 5.5x cheaper ($2.20 vs $12.00 per million) and work measured by Design Arena: agents building mobile apps or Design Arena: agents building Android apps, where it leads.

Which is cheaper, Gemini 3.1 Pro Preview or GLM 4.6?

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens; GLM 4.6 costs $0.60 and $2.20. 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 GLM 4.6?

Gemini 3.1 Pro Preview, with 1.05M tokens against 205K.

How many benchmarks is the Gemini 3.1 Pro Preview vs GLM 4.6 comparison based on?

60 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 GLM 4.6's on 2. 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-glm-4-6" title="Gemini 3.1 Pro Preview vs GLM 4.6, 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-glm-4-6">LLMBenchmark.ai, Gemini 3.1 Pro Preview vs GLM 4.6</a></p>