Skip to main content

Head-to-head comparison

Gemini 3.1 Pro Preview vs. GLM-5.1

Compare published benchmark results from matching versions and cohorts, API pricing, and technical specifications. Any documented test setup differences remain visible.

shared result series
124
distinct benchmarks
20
latest retrieval
2026-09-04

Change model selection

Specifications

General specifications

Release date, availability, context window, architecture, and published parameter counts at a glance. Undisclosed details remain marked as unavailable.

Specifications for Gemini 3.1 Pro Preview and GLM-5.1
AttributeGemini 3.1 Pro PreviewGLM-5.1
ProviderGoogleZ.ai
ReleasedFeb 19, 2026Apr 7, 2026
AvailabilityPreviewOpen Source
Model typeProprietaryOpen Weights
ParametersNot published744B, 40B active
ArchitectureNot publishedMixture of Experts
Context window1,048,576 tokens200,000 tokens
Knowledge cutoffNot publishedNot published
Technical sourcesModelModel, Context

Pricing

API pricing compared

The table compares official standard API rates per 1M tokens, including published cache pricing. Batch, fast, priority, regional surcharges, tool calls, and cloud platform pricing are excluded.

API pricing for Gemini 3.1 Pro Preview and GLM-5.1
Price typeGemini 3.1 Pro PreviewGLM-5.1
API input$2 ≤200K / $4 >200K$1.4
API output$12 ≤200K / $18 >200K$4.4
Cache read$0.2 ≤200K / $0.4 >200K$0.26
Cache write (5 min.)Not listedNot listed
Cache write (1 hr.)Not listedNot listed
Price verified07/30/2026 Source07/30/2026 Source
Gemini 3.1 Pro PreviewGLM-5.1
API inputUSD per 1M tokens, base tier
Gemini 3.1 Pro Preview$2
GLM-5.1Lower price$1.4
API outputUSD per 1M tokens, base tier
Gemini 3.1 Pro Preview$12
GLM-5.1Lower price$4.4
Cache readUSD per 1M tokens, base tier
Gemini 3.1 Pro PreviewLower price$0.2
GLM-5.1$0.26

Key to the marks:better valuebetter, but not conclusivetie

Pricing by provider

Direct developer pricing and provider endpoint tariffs routed through OpenRouter are listed separately. Prices are in USD per 1M tokens. Context-dependent direct tiers plus regional, Flex, Priority, and other OpenRouter tariffs remain individually identifiable.

Provider pricing for Gemini 3.1 Pro Preview and GLM-5.1
ModelProviderPurchase route and tariffInput per 1M tokensOutput per 1M tokensSource
Gemini 3.1 Pro PreviewGoogleDirect from developerUp to 200,000 context tokens$2$12Source07/30/2026
GoogleDirect from developerAbove 200,000 context tokens$4$18Source07/30/2026
GoogleVia OpenRoutergoogle-vertex/global$2$12Source09/12/2026
GoogleVia OpenRoutergoogle-vertex/global/flexLowest listed price: $1Lowest listed price: $6Source09/12/2026
GoogleVia OpenRoutergoogle-vertex/global/priority$3.6$21.6Source09/12/2026
Google AI StudioVia OpenRoutergoogle-ai-studio$2$12Source09/12/2026
Google AI StudioVia OpenRoutergoogle-ai-studio/flexLowest listed price: $1Lowest listed price: $6Source09/12/2026
Google AI StudioVia OpenRoutergoogle-ai-studio/priority$3.6$21.6Source09/12/2026
GLM-5.1Z.aiDirect from developerStandard API$1.4$4.4Source07/30/2026
AlibabaVia OpenRouteralibaba/fp8$1.33$4.18Source09/12/2026
AtlasCloudVia OpenRouteratlas-cloud/fp8$1.26$3.96Source09/12/2026
BaiduVia OpenRouterbaidu/fp8Lowest listed price: $0.9646Lowest listed price: $3.0316Source09/12/2026
ChutesVia OpenRouterchutes/fp8$0.98$3.08Source09/12/2026
CrusoeVia OpenRoutercrusoe/fp8$1.2$4.4Source09/12/2026
DeepInfraVia OpenRouterdeepinfra/fp4$1.05$3.5Source09/12/2026
FriendliVia OpenRouterfriendli$1.4$4.4Source09/12/2026
GMICloudVia OpenRoutergmicloud/fp8$1.4$4.4Source09/12/2026
NebiusVia OpenRouternebius/fp8$1.4$4.4Source09/12/2026
NovitaVia OpenRouternovita/fp8$1.38$4.4Source09/12/2026
PhalaVia OpenRouterphala$1.21$4.2Source09/12/2026
SiliconFlowVia OpenRoutersiliconflow/fp8$1.19$3.74Source09/12/2026
StreamLakeVia OpenRouterstreamlake/fp8$0.966$3.036Source09/12/2026
VeniceVia OpenRoutervenice/fp8$1.54$4.84Source09/12/2026
Z.AIVia OpenRouterz-ai/fp8$1.4$4.4Source09/12/2026

Performance

Shared benchmarks

Only published results with the same benchmark version, task, metric, and comparison cohort are paired. Different reasoning levels, agents, harnesses, or output limits appear directly in the table.

Capability profile from matched benchmarks

Each axis averages directly matched benchmark families. A value of 100 means the stronger value within this pair, not a universal quality score.

255075100CodingReasoningMathematicsKnowledgeFinanceLegalAgentic tasksProductivity
Gemini 3.1 Pro Preview
GLM-5.1
Coding: 94.5 / 97.8 (6 benchmark families)
Reasoning: 100 / 93.8 (2 benchmark families)
Mathematics: 100 / 99.4 (1 benchmark family)
Knowledge: 100 / 97.2 (2 benchmark families)
Finance: 99 / 99.2 (4 benchmark families)
Legal: 93.5 / 98.8 (4 benchmark families)
Agentic tasks: 100 / 80.2 (1 benchmark family)
Productivity: 87 / 100 (1 benchmark family)

48 matched rows from 19 benchmark families were considered. The radar shows 8 of 11 comparable categories.

Gemini 3.1 Pro PreviewGLM-5.1
Code MigrationOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro Preview17.313 %
GLM-5.1Winner25.768 %
CorpFin v2Overall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner64.491 %
GLM-5.164.452 %
Finance Agent (v2)Overall. Higher is better. No documented setup difference
Gemini 3.1 Pro Preview42.982 %
GLM-5.1Winner44.792 %
GPQA DiamondOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner95.454 %
GLM-5.184.518 %
Harvey's Legal Agent BenchmarkOverall · Task fully resolved. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewTie0 %
GLM-5.1Tie0 %
Legal Research BenchOverall · All-pass. Higher is better. No documented setup difference
Gemini 3.1 Pro Preview20.673 %
GLM-5.1Winner27.885 %
LegalBenchOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner87.398 %
GLM-5.184.394 %
LiveCodeBench v6Overall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner88.485 %
GLM-5.181.38 %
LMArena Text, Style ControlOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner1,486.746
GLM-5.11,466.019
MedCodeOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner59.062 %
GLM-5.141.604 %
MedScribeOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner76.114 %
GLM-5.172.27 %
MMLU-ProOverall. Higher is better. No documented setup difference
Gemini 3.1 Pro PreviewWinner90.987 %
GLM-5.186.9 %

Key to the marks:better valuebetter, but not conclusivetie

Benchmark scores for Gemini 3.1 Pro Preview and GLM-5.1
Benchmark and taskGemini 3.1 Pro PreviewGLM-5.1Source
Code MigrationOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
17.313 %
Winner25.768 %
Vals AI
Source details
Data as of: 09/03/2026
CorpFin v2Overall
Test details
No documented difference in the test setupVersion: 2Metric: accuracyScoring: Higher is better
Winner64.491 %
64.452 %
Vals AI
Source details
Data as of: 08/12/2026
Finance Agent (v2)Overall
Test details
No documented difference in the test setupVersion: 2Metric: accuracyScoring: Higher is better
42.982 %
Winner44.792 %
Vals AI
Source details
Data as of: 09/03/2026
GPQA DiamondOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner95.454 %
84.518 %
Vals AI
Source details
Data as of: 09/01/2026
Harvey's Legal Agent BenchmarkOverall · Task fully resolved
Test details
No documented difference in the test setupVersion: 1Metric: task resolution rateScoring: Higher is better
Tie0 %
Tie0 %
Vals AI
Source details
Data as of: 09/03/2026
Legal Research BenchOverall · All-pass
Test details
No documented difference in the test setupVersion: 1Metric: all-pass rateScoring: Higher is better
20.673 %
Winner27.885 %
Vals AI
Source details
Data as of: 09/03/2026
LegalBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner87.398 %
84.394 %
Vals AI
Source details
Data as of: 09/01/2026
LiveCodeBench v6Overall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner88.485 %
81.38 %
Vals AI
Source details
Data as of: 09/01/2026
LMArena Text, Style ControlOverall
Test details
No documented difference in the test setupVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterGemini 3.1 Pro Preview: Snapshot: gemini-3.1-pro-preview, Harness: Arena text, style control
GLM-5.1: Snapshot: glm-5.1, Harness: Arena text, style control
Gemini 3.1 Pro Preview: Style-controlled Arena rating from 102,763 anonymous pairwise votes.GLM-5.1: Style-controlled Arena rating from 45,403 anonymous pairwise votes.
Winner1,486.746
95% confidence interval: ±3.217The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
1,466.019
95% confidence interval: ±3.982The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MedCodeOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner59.062 %
41.604 %
Vals AI
Source details
Data as of: 09/03/2026
MedScribeOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner76.114 %
72.27 %
Vals AI
Source details
Data as of: 09/03/2026
MMLU-ProOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner90.987 %
86.9 %
Vals AI
Source details
Data as of: 09/01/2026
ProgramBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Tie0 %
Tie0 %
Vals AI
Source details
Data as of: 09/01/2026
Public Benefits Bench v1.1Overall
Test details
No documented difference in the test setupVersion: 1.1Metric: accuracyScoring: Higher is better
53.789 %
Winner61.84 %
Vals AI
Source details
Data as of: 09/01/2026
SWE-bench VerifiedOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner78.8 %
76.4 %
Vals AI
Source details
Data as of: 09/01/2026
TaxEval v2Overall
Test details
No documented difference in the test setupVersion: 2Metric: accuracyScoring: Higher is better
Winner72.882 %
71.194 %
Vals AI
Source details
Data as of: 09/01/2026
Terminal-Bench 2.0Overall
Test details
No documented difference in the test setupVersion: 2.0Metric: accuracyScoring: Higher is better
Winner67.416 %
53.933 %
Vals AI
Source details
Data as of: 06/04/2026
Terminal-Bench 2.1Overall
Test details
No documented difference in the test setupVersion: 2.1Metric: accuracyScoring: Higher is better
Winner70.787 %
56.929 %
Vals AI
Source details
Data as of: 09/03/2026
Vals IndexCorpFin v2
Test details
Test setup not documented as identicalNo direct winnerVersion: 1.2Metric: benchmark scoreScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value65.734 %
65.268 %
Vals AI
Source details
Data as of: 08/09/2026
Vibe Code Bench v1.1Overall
Test details
No documented difference in the test setupVersion: 1.1Metric: accuracyScoring: Higher is betterSettings: Harness: OpenHands
Winner32.034 %
31.456 %
Vals AI
Source details
Data as of: 09/03/2026
Code MigrationCLI
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
10.833 %
Higher measured value18.833 %
Vals AI
Source details
Data as of: 08/09/2026
CorpFin v2Exact Pages
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
60.839 %
Higher measured value61.772 %
Vals AI
Source details
Data as of: 08/06/2026
Finance Agent (v2)Adjustments
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
38.361 %
Higher measured value43.276 %
Vals AI
Source details
Data as of: 08/06/2026
GPQA DiamondFew-Shot CoT
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
Higher measured value95.96 %
85.787 %
Vals AI
Source details
Data as of: 08/09/2026
Legal Research BenchAdministrative / Regulatory · All-pass
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: all-pass rateScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
24.242 %
Higher measured value31.818 %
Vals AI
Source details
Data as of: 08/06/2026
LegalBenchConclusion Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
89.257 %
Higher measured value89.575 %
Vals AI
Source details
Data as of: 08/09/2026
LiveCodeBench v6Easy
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value99.068 %
98.754 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlBusiness, management and finance
Test details
No documented difference in the test setupNo clear leadVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterGemini 3.1 Pro Preview: Snapshot: gemini-3.1-pro-preview, Harness: Arena text, style control
GLM-5.1: Snapshot: glm-5.1, Harness: Arena text, style control
Gemini 3.1 Pro Preview: Style-controlled Arena rating from 20,283 anonymous pairwise votes.GLM-5.1: Style-controlled Arena rating from 9,036 anonymous pairwise votes.
No clear lead1,476.52
95% confidence interval: ±5.472The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
1,464.877
95% confidence interval: ±7.07The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProBiology
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
Higher measured value95.258 %
93.724 %
Vals AI
Source details
Data as of: 08/09/2026
ProgramBenchAlmost Resolved
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
No direct winner1 %
No direct winner1 %
Vals AI
Source details
Data as of: 08/09/2026
SWE-bench Verified<15 min fix
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
No direct winner88.66 %
No direct winner88.66 %
Vals AI
Source details
Data as of: 08/08/2026
TaxEval v2Correctness
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
60.749 %
Higher measured value61.538 %
Vals AI
Source details
Data as of: 08/09/2026
Terminal-Bench 2.0Easy
Test details
Test setup not documented as identicalNo direct winnerVersion: 2.0Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
Higher measured value100 %
75 %
Vals AI
Source details
Data as of: 06/04/2026
Terminal-Bench 2.1Easy
Test details
Test setup not documented as identicalNo direct winnerVersion: 2.1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
Higher measured value91.667 %
83.333 %
Vals AI
Source details
Data as of: 08/06/2026
Vals IndexFinance Agent v2
Test details
Test setup not documented as identicalNo direct winnerVersion: 1.2Metric: benchmark scoreScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
42.968 %
Higher measured value44.79 %
Vals AI
Source details
Data as of: 08/09/2026
Code MigrationCOBOL
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
36.753 %
Higher measured value46.571 %
Vals AI
Source details
Data as of: 08/09/2026
CorpFin v2Max Fitting Context
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value66.9 %
66.317 %
Vals AI
Source details
Data as of: 08/06/2026
Finance Agent (v2)All-Pass
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
30.879 %
Higher measured value32.68 %
Vals AI
Source details
Data as of: 08/06/2026
GPQA DiamondZero-Shot CoT
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
Higher measured value94.949 %
83.249 %
Vals AI
Source details
Data as of: 08/09/2026
Legal Research BenchAdministrative / Regulatory · Weighted partial credit
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: weighted partial-credit scoreScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
79.215 %
Higher measured value80.005 %
Vals AI
Source details
Data as of: 08/06/2026
LegalBenchInterpretation Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value83.823 %
81.709 %
Vals AI
Source details
Data as of: 08/09/2026
LiveCodeBench v6Hard
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value76.571 %
57.429 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlChinese
Test details
No documented difference in the test setupNo clear leadVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterGemini 3.1 Pro Preview: Snapshot: gemini-3.1-pro-preview, Harness: Arena text, style control
GLM-5.1: Snapshot: glm-5.1, Harness: Arena text, style control
Gemini 3.1 Pro Preview: Style-controlled Arena rating from 6,195 anonymous pairwise votes.GLM-5.1: Style-controlled Arena rating from 2,742 anonymous pairwise votes.
No clear lead1,530.803
95% confidence interval: ±8.555The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
1,516.722
95% confidence interval: ±12.084The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProBusiness
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
Higher measured value93.409 %
91.128 %
Vals AI
Source details
Data as of: 08/09/2026
ProgramBenchFully Resolved
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
No direct winner0 %
No direct winner0 %
Vals AI
Source details
Data as of: 08/09/2026
SWE-bench Verified>4 hours
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
No direct winner33.333 %
No direct winner33.333 %
Vals AI
Source details
Data as of: 08/08/2026
TaxEval v2Stepwise Reasoning
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
Higher measured value85.016 %
80.851 %
Vals AI
Source details
Data as of: 08/09/2026
Terminal-Bench 2.0Hard
Test details
Test setup not documented as identicalNo direct winnerVersion: 2.0Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
Higher measured value53.333 %
36.667 %
Vals AI
Source details
Data as of: 06/04/2026
Terminal-Bench 2.1Hard
Test details
Test setup not documented as identicalNo direct winnerVersion: 2.1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
Higher measured value60 %
37.778 %
Vals AI
Source details
Data as of: 08/06/2026
Vals IndexSWE-bench
Test details
No documented difference in the test setupVersion: 1.2Metric: benchmark scoreScoring: Higher is better
Tie72.549 %
Tie72.549 %
Vals AI
Source details
Data as of: 08/09/2026
Code MigrationCode Quality
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: mean reviewer code-quality ratingScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
2.538 / 5
Higher measured value3.544 / 5
Vals AI
Source details
Data as of: 08/09/2026
CorpFin v2Shared Max Context
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value65.734 %
65.268 %
Vals AI
Source details
Data as of: 08/06/2026
Finance Agent (v2)Comparables
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
36.66 %
Higher measured value41.557 %
Vals AI
Source details
Data as of: 08/06/2026
Legal Research BenchBusiness & Commercial · All-pass
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: all-pass rateScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
No direct winner23.256 %
No direct winner23.256 %
Vals AI
Source details
Data as of: 08/06/2026
LegalBenchIssue Tasks
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value91.48 %
89.02 %
Vals AI
Source details
Data as of: 08/09/2026
LiveCodeBench v6Medium
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value89.817 %
87.958 %
Vals AI
Source details
Data as of: 08/09/2026
LMArena Text, Style ControlCoding
Test details
No documented difference in the test setupNo clear leadVersion: style-control-v1Metric: style-controlled Bradley-Terry ratingScoring: Higher is betterGemini 3.1 Pro Preview: Snapshot: gemini-3.1-pro-preview, Harness: Arena text, style control
GLM-5.1: Snapshot: glm-5.1, Harness: Arena text, style control
Gemini 3.1 Pro Preview: Style-controlled Arena rating from 28,421 anonymous pairwise votes.GLM-5.1: Style-controlled Arena rating from 12,659 anonymous pairwise votes.
No clear lead1,521.238
95% confidence interval: ±4.96The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
1,513.669
95% confidence interval: ±6.252The Arena score measures human preference rather than a fixed capability test. The confidence interval and model configuration are part of the result.
LMArena
Source details
Data as of: 09/01/2026
MMLU-ProChemistry
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,535 tokens
Higher measured value93.286 %
91.844 %
Vals AI
Source details
Data as of: 08/09/2026
ProgramBenchRaw Pass Rate
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
39.468 %
Higher measured value50.879 %
Vals AI
Source details
Data as of: 08/09/2026
SWE-bench Verified1-4 hours
Test details
Test setup not documented as identicalNo direct winnerVersion: 1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
42.857 %
Higher measured value45.238 %
Vals AI
Source details
Data as of: 08/08/2026
Terminal-Bench 2.0Medium
Test details
Test setup not documented as identicalNo direct winnerVersion: 2.0Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
Higher measured value72.727 %
61.818 %
Vals AI
Source details
Data as of: 06/04/2026
Terminal-Bench 2.1Medium
Test details
Test setup not documented as identicalNo direct winnerVersion: 2.1Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
GLM-5.1: Temperature: 1, Top P: 0.95, Output limit: 131,072 tokens
Higher measured value75.152 %
65.455 %
Vals AI
Source details
Data as of: 08/06/2026
Vals IndexTerminal-Bench 2.1
Test details
Test setup not documented as identicalNo direct winnerVersion: 1.2Metric: benchmark scoreScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
Higher measured value70.787 %
56.929 %
Vals AI
Source details
Data as of: 08/09/2026
Finance Agent (v2)Disclosure Analysis
Test details
Test setup not documented as identicalNo direct winnerVersion: 2Metric: accuracyScoring: Higher is betterGemini 3.1 Pro Preview: Reasoning: high, Temperature: 1, Output limit: 65,536 tokens
46.181 %
Higher measured value52.713 %
Vals AI
Source details
Data as of: 08/06/2026

Key to the marks:better valuebetter, but not conclusivetie

Our model tests

Community tests you can inspect

Compare how the models respond to the same prompt. Each test shows the first attempt, with no subsequent fixes to the generated code. These results do not contribute to an overall score.

Pelican on a bicycle

A community classic for free-form SVG drawing.

Gemini 3.1 Pro Preview

API access was unavailable for this run. The model was not evaluated.

First attempt
Run date
7 Sept 2026
API provider
openrouter
Requested API model
google/gemini-3.1-pro-preview
Pinned endpoint
Google AI Studio | google/gemini-3.1-pro-preview-20260219
Reasoning setting
high
Temperature
Provider default
Token limit including reasoning
8,192 tokens
Test protocol
community-visual-tests-v1
Technical checks
Not run

Not yet visually reviewed. A successful recording does not confirm correct physics or full compliance with the prompt.

GLM-5.1

API access was unavailable for this run. The model was not evaluated.

First attempt
Run date
7 Sept 2026
API provider
openrouter
Requested API model
z-ai/glm-5.1
Pinned endpoint
Z.AI | z-ai/glm-5.1-20260406
Reasoning setting
high
Temperature
Provider default
Token limit including reasoning
8,192 tokens
Test protocol
community-visual-tests-v1
Technical checks
Not run

Not yet visually reviewed. A successful recording does not confirm correct physics or full compliance with the prompt.

Prompt and test conditions

Generate an SVG of a pelican riding a bicycle

Token limit including reasoning: 8,192 tokens

Task origin (Simon Willison)

How to read this comparison

Winning one benchmark is not an overall verdict

Your workload, budget, and required context length matter most. A coding benchmark says little about visual understanding or agent performance.

The standard price table uses direct developer rates. The provider comparison labels OpenRouter endpoints, regions, and special tariffs separately.

Every result links to its measurement source and retrieval date. Labels distinguish vendor reports, official benchmark leaderboards, and independent evaluations. Disputed or archived results are excluded.

More matchups

Compare Gemini 3.1 Pro Preview and GLM-5.1 with other leading models using the same data and benchmark logic.

View the complete LLM comparison