Enter opens the highlighted result. Esc closes.

Gemini 3 Flash Preview vs GLM 5.4

GLM 5.4 leads Gemini 3 Flash Preview on coding, 72.7 to 43.7 on the Vibe Coding Index, and Gemini 3 Flash Preview costs 1.5x less per output token ($3.00 vs $4.40 per million). Updated December 3, 2026; no benchmark has tested both models yet.

Gemini 3 Flash PreviewGoogle
Coding
43.7
Overall
59.7
Output $/M
$3.00
GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
vs $3.00 vs $4.40 per 1M output tokens. Gemini 3 Flash Preview is 1.5x cheaper.

Gemini 3 Flash Preview or GLM 5.4: which to pick

Gemini 3 Flash Preview scores 43.7 and GLM 5.4 72.7 on the Vibe Coding Index, but no coding benchmark measured both, so the gap is directional, not a ranking.

Pick Gemini 3 Flash Preview for output tokens 1.5x cheaper ($3.00 vs $4.40 per million).

No benchmark has tested both yet. Gemini 3 Flash Preview has results on SWE-bench Verified, LiveCodeBench (Vals AI) and SWE-bench Verified (Vals AI); GLM 5.4 on LiveBench coding, LMArena WebDev and LMArena WebDev: React. Compare them on price and context instead.

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 Flash Preview 43.7 from 2 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
Widest category
None yet: no category has been tested on both models.
Widest single gap
None yet: no benchmark has tested both models.
Output price
Gemini 3 Flash Preview $3.00 against GLM 5.4 $4.40 per million output tokens, 1.5x apart.
Context window
Both take 1.05M tokens.

Benchmark by benchmark

Every board either model has a result on, a category to a fold; bars are each result on a 0 to 100 scale. Only one model is measured on each, so no row names a leader.

CodingDirectional onlySix of these boards feed the Vibe Coding Index18 boards measured
Coding benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
SWE-bench Verified75.8%Not measuredOnly Gemini 3 Flash Preview measured
LiveBench codingNot measured74.5%Only GLM 5.4 measured
LMArena WebDevNot measured1690Only GLM 5.4 measured
LiveCodeBench (Vals AI)85.6%Not measuredOnly Gemini 3 Flash Preview measured
SWE-bench Verified (Vals AI)75.0%Not measuredOnly Gemini 3 Flash Preview measured
Vibe Code Bench (Vals AI)20.2%Not measuredOnly Gemini 3 Flash Preview measured
Code migration (Vals AI)6.4%Not measuredOnly Gemini 3 Flash Preview measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3 Flash Preview measured
Terminal-Bench 2.1 (Vals AI)53.9%Not measuredOnly Gemini 3 Flash Preview measured
LiveCodeBench (Artificial Analysis run)90.8%Not measuredOnly Gemini 3 Flash Preview measured
Terminal-Bench Hard (Artificial Analysis run)38.6%Not measuredOnly Gemini 3 Flash Preview measured
Terminal-Bench64.3%Not measuredOnly Gemini 3 Flash Preview measured
GSO-Bench9.8%Not measuredOnly Gemini 3 Flash Preview measured
WeirdML61.6%Not measuredOnly Gemini 3 Flash Preview measured
ALE-Bench1367.2Not measuredOnly Gemini 3 Flash Preview measured
LMArena WebDev: ReactNot measured1739Only GLM 5.4 measured
LMArena WebDev: HTMLNot measured1675Only GLM 5.4 measured
SciCode12.7%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 34 boards here
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards measured
Agentic work benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
Design Arena: agents building web apps1075Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: agents building full-stack apps1109Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: agents building mobile apps1080Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: agents building Android apps1017Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: agents building Godot games1161Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: PowerPoint slides1036Not measuredOnly Gemini 3 Flash Preview measured
LiveBench researchNot measured86.0%Only GLM 5.4 measured
LiveBench browserNot measured64.5%Only GLM 5.4 measured
LiveBench long agenticNot measured41.3%Only GLM 5.4 measured
Finance Agent (Vals AI)42.5%Not measuredOnly Gemini 3 Flash Preview measured
Tax Agent Bench (Vals AI)11.8%Not measuredOnly Gemini 3 Flash Preview measured
Legal Research Bench (Vals AI)18.3%Not measuredOnly Gemini 3 Flash Preview measured
Excel Modeling Benchmark (Vals AI)26.0%Not measuredOnly Gemini 3 Flash Preview measured
τ²-Bench Telecom80.4%Not measuredOnly Gemini 3 Flash Preview measured
BALROG48.1%Not measuredOnly Gemini 3 Flash Preview measured
DeepResearch Bench49.8%Not measuredOnly Gemini 3 Flash Preview measured
Vending-Bench 2$3,635Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 27 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index12 boards measured
Reasoning benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
GPQA Diamond87.9%Not measuredOnly Gemini 3 Flash Preview measured
LiveBench reasoningNot measured85.2%Only GLM 5.4 measured
MMMU Pro (Vals AI)87.6%Not measuredOnly Gemini 3 Flash Preview measured
GPQA Diamond (Artificial Analysis run)89.8%Not measuredOnly Gemini 3 Flash Preview measured
Humanity's Last Exam (Artificial Analysis run)36.6%Not measuredOnly Gemini 3 Flash Preview measured
GPQA Diamond (Epoch AI run)89.4%Not measuredOnly Gemini 3 Flash Preview measured
ARC-AGI84.7%Not measuredOnly Gemini 3 Flash Preview measured
ARC-AGI-233.6%Not measuredOnly Gemini 3 Flash Preview measured
SimpleBench61.1%Not measuredOnly Gemini 3 Flash Preview measured
Chess puzzles40.0%Not measuredOnly Gemini 3 Flash Preview measured
Mystery game puzzles26.0%Not measuredOnly Gemini 3 Flash Preview measured
VPCT72.6%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 14 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards measured
Math benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
AIME95.6%Not measuredOnly Gemini 3 Flash Preview measured
MGSM (Vals AI)93.3%Not measuredOnly Gemini 3 Flash Preview measured
AIME 2025 (Artificial Analysis run)97.0%Not measuredOnly Gemini 3 Flash Preview measured
OTIS Mock AIME95.6%Not measuredOnly Gemini 3 Flash Preview measured
FrontierMath, tiers 1 to 351.2%Not measuredOnly Gemini 3 Flash Preview measured
FrontierMath, tier 417.1%Not measuredOnly Gemini 3 Flash Preview measured
ProofBench15.0%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 7 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards measured
Knowledge benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
MMLU Pro88.6%Not measuredOnly Gemini 3 Flash Preview measured
LegalBench (Vals AI)86.9%Not measuredOnly Gemini 3 Flash Preview measured
CaseLaw (Vals AI)55.8%Not measuredOnly Gemini 3 Flash Preview measured
CorpFin (Vals AI)66.4%Not measuredOnly Gemini 3 Flash Preview measured
TaxEval (Vals AI)73.9%Not measuredOnly Gemini 3 Flash Preview measured
MortgageTax (Vals AI)68.7%Not measuredOnly Gemini 3 Flash Preview measured
MedQA (Vals AI)95.8%Not measuredOnly Gemini 3 Flash Preview measured
MedCode (Vals AI)55.9%Not measuredOnly Gemini 3 Flash Preview measured
MMLU Pro (Artificial Analysis run)89.0%Not measuredOnly Gemini 3 Flash Preview measured
SimpleQA Verified66.8%Not measuredOnly Gemini 3 Flash Preview measured
GeoBench88.0%Not measuredOnly Gemini 3 Flash Preview measured
FACTS Benchmark Suite63.8%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 9 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index5 boards measured
Web design benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
Design Arena: websites1236Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: game dev1130Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: 3D1140Not measuredOnly Gemini 3 Flash Preview measured
Design Arena: all code categories1230Not measuredOnly Gemini 3 Flash Preview measured
LiveBench designNot measured74.2%Only GLM 5.4 measured
Neither model has a result on the other 4 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index7 boards measured
General benchmarks for Gemini 3 Flash Preview and GLM 5.4
BenchmarkGemini 3 Flash PreviewGLM 5.4Leader
LiveBench data analysisNot measured72.2%Only GLM 5.4 measured
MedScribe (Vals AI)69.9%Not measuredOnly Gemini 3 Flash Preview measured
Vals Multimodal Index52.2%Not measuredOnly Gemini 3 Flash Preview measured
IFBench78.0%Not measuredOnly Gemini 3 Flash Preview measured
Long context reasoning (AA-LCR)78.0%Not measuredOnly Gemini 3 Flash Preview measured
DTBench89.1%Not measuredOnly Gemini 3 Flash Preview measured
LMCA43.1%Not measuredOnly Gemini 3 Flash Preview measured
Neither model has a result on the other 42 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 Flash Preview$0.0020Fits in one request
GLM 5.4$0.0036Fits in one request

Gemini 3 Flash Preview costs less

Repository review

50K input + 3K output tokens

Gemini 3 Flash Preview$0.034Fits in one request
GLM 5.4$0.083Fits in one request

Gemini 3 Flash Preview costs less

Agent loop

200K input + 10K output tokens

Gemini 3 Flash Preview$0.130Fits in one request
GLM 5.4$0.324Fits in one request

Gemini 3 Flash Preview 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 Flash Preview and GLM 5.4
SpecificationGoogle Gemini 3 Flash PreviewZ.ai GLM 5.4
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedDecember 17, 2025December 2, 2026
Context window1.05M1.05M
Input $/Mtok$0.50$1.40
Output $/Mtok$3.00$4.40
Coding index43.772.7
Independent measurements behind it22
Cost per solved task$0.37Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3 Flash Preview better than GLM 5.4 for coding?

Gemini 3 Flash Preview scores 43.7 and GLM 5.4 72.7 on the Vibe Coding Index, but no coding benchmark measured both, so the gap is directional, not a ranking. Pick Gemini 3 Flash Preview for output tokens 1.5x cheaper ($3.00 vs $4.40 per million).

Which is cheaper, Gemini 3 Flash Preview or GLM 5.4?

Gemini 3 Flash Preview costs $0.50 per million input tokens and $3.00 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for Gemini 3 Flash Preview only.

Which has the bigger context window, Gemini 3 Flash Preview or GLM 5.4?

Neither: both take 1.05M tokens.

Has any benchmark tested both Gemini 3 Flash Preview and GLM 5.4?

No benchmark has tested both yet. Gemini 3 Flash Preview has results on SWE-bench Verified, LiveCodeBench (Vals AI) and SWE-bench Verified (Vals AI); GLM 5.4 on LiveBench coding, LMArena WebDev and LMArena WebDev: React. Compare them on price and context instead. Data as of December 3, 2026.

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-flash-preview-vs-glm-5-4" title="Gemini 3 Flash Preview vs GLM 5.4, 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-flash-preview-vs-glm-5-4">LLMBenchmark.ai, Gemini 3 Flash Preview vs GLM 5.4</a></p>