Gemini 3.1 Pro Preview vs GLM 5.2

API pricing, context window and capabilities for Gemini 3.1 Pro Preview and GLM 5.2, side by side. Prices are the cheapest serving route per 1M tokens, verified against LiteLLM and OpenRouter.

Verdict

computed from the published numbers

GLM 5.2 wins on price and on intelligence.

Price
GLM 5.2
Coding
Tied
Intelligence
GLM 5.2
Context window
Tied

Key takeaways

who wins on what, from the published numbers

Gemini 3.1 Pro Preview wins

  • Supports vision
  • Supports audio
  • Has web search

GLM 5.2 wins

  • Cheaper input ($2.00 vs $0.61 /1M)
  • Cheaper output ($12.00 vs $1.98 /1M)
  • Higher max output (66K vs 262K)
  • More serving providers (4 vs 10)
Cheaper overall
GLM 5.2
$0.61 + $1.98 /1M
Larger context
Tied
More providers
GLM 5.2
10 providers

Pricing & specs

cheapest serving route · per 1M tokens
Gemini 3.1 Pro PreviewGLM 5.2
Input $/1M$2.00 $0.61 best
Output $/1M$12.00 $1.98 best
Context window1M 1M
Max output66K 262K best
Serving providers4 10 best
Released2026-02-19 2026-06-13

Benchmarks

Artificial Analysis indices, side by side
Gemini 3.1 Pro PreviewGLM 5.2
Intelligence47.7 52.6 best
Coding68.8 68.8
GPQA Diamond94% best89%
Output speed115 t/s best71 t/s
Latency (TTFT)24.09s 1.59s best

Cost calculator

choose a serving route for each side
Input tokens / month
Output tokens / month
Gemini 3.1 Pro Preview
via Vertex AI
$22
GLM 5.2
via Scx AI
$5.03

Capabilities

feature support, side by side
FeatureGemini 3.1 Pro PreviewGLM 5.2
Vision
Tool use
Reasoning
Audio
Prompt caching
Structured output
Web search

Related comparisons

Frequently asked questions

Which is cheaper, Gemini 3.1 Pro Preview or GLM 5.2?
GLM 5.2 is cheaper for input ($2.00 vs $0.61 per 1M tokens). GLM 5.2 is cheaper for output ($12.00 vs $1.98 per 1M tokens).
What is the context window difference between Gemini 3.1 Pro Preview and GLM 5.2?
Both Gemini 3.1 Pro Preview and GLM 5.2 have about a 1M-token context window.
How do Gemini 3.1 Pro Preview and GLM 5.2 compare on benchmarks?
On the tracked Artificial Analysis indices, they score about the same on coding, and GLM 5.2 leads on intelligence.
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI