GLM-5.2 vs Gemini 3.1 Pro
Side-by-side comparison of API pricing, specs, benchmarks, and capabilities
| Specification |
by Z.AI
2 providers:
Together $1.40/$4.40
Z.AI $1.40/$4.40
|
by Google
|
|---|---|---|
| Overview | ||
| Status | Current flagship Open weights | Current flagship |
| Released | Jun 13, 2026 | Feb 19, 2026 |
| Pricing per million tokens | ||
| Input | $1.40/Mtok | $2.00/Mtok |
| Output | $4.40/Mtok | $12.00/Mtok |
| Blended avg | $2.15/Mtok | $4.50/Mtok |
| Cached input | $0.260/Mtok | $0.200/Mtok |
| Specifications | ||
| Context window | 1M tokens | 2M tokens |
| Parameters | Proprietary | Proprietary |
| Speed (TPS) | — | — |
| Modalities | ||
| Input |
text
|
textimageaudiovideo
|
| Benchmarks source: Vellum LLM Leaderboard | ||
| Avg benchmark score | 76 | 74.8 |
| Perf / dollar | 35.3 | 16.6 |
| GPQA Diamond | 91.2 | 94.3 |
| Terminal-Bench 2.1 | 81 | 70.3 |
| MCP Atlas | 77 | 69.2 |
| Humanity's Last Exam | 54.7 | 44.4 |
| ARC-AGI 2 | 30 vendor | 77.1 |
| HumanEval | 84 vendor | 80.6 |
| SWE-Bench Verified | 45 vendor | — |
| BrowseComp | — | 85.9 |
| OSWorld-Verified | — | 76.2 |
| AIME 2025 | 70 vendor | — |
| MMMLU | 80 vendor | — |
| BFCL | 70 vendor | — |
| MATH 500 | 76 vendor | — |
| AIME 2026 | 99.2 | — |
| Independent composite scores each on its own scale — not part of the average above | ||
| AA Intelligence Index | 52.6 | 47.7 |
| AA Agentic Index | 45.7 | 23 |
| AA-Omniscience Index (−100–100) | 4.4 | 31.9 |
| LMSYS Chatbot Arena | 1469.4 ELO | 1486.5 ELO |
| GDPval-AA v2 | 1508 ELO | — |
| Providers | ||
| Available from |
Together — $1.40/$4.40/Mtok
Z.AI — $1.40/$4.40/Mtok
|
Google — $2.00/$12.00/Mtok
|
Cost at scale
1M tokens · 50/50 input/output| Volume | GLM-5.2 | Gemini 3.1 Pro | Savings |
|---|---|---|---|
| 1M tokens | $2.15 | $4.5 | $2.35 (52.2%) |
| 10M tokens | $21.5 | $45 | $23.5 (52.2%) |
| 100M tokens | $215 | $450 | $235 (52.2%) |
| 1000M tokens | $2150 | $4500 | $2350 (52.2%) |
When to pick which
distilled from the pricing and spec data above- cost dominates: $2.15/Mtok blended vs $4.50 — 52.2% less on the same 50/50 token mix
- raw capability matters more than price: 76 vs 74.8 average benchmark score
- you want open weights — self-host it, fine-tune it, or exit the API entirely; Gemini 3.1 Pro is closed
- provider flexibility: available from 2 providers, so you can price-shop hosts or fail over
- your workload re-reads context (agents, RAG, long chats): cached input costs $0.200/Mtok — 90% off its list input price
- you need the longer context: 2M tokens vs 1M (2×)
The cheaper option here — GLM-5.2 costs $2.15/Mtok blended on Z.AI.
Summary
GLM-5.2 by Z.AI costs $1.40/Mtok input and $4.40/Mtok output, with a 1M-token context window. It supports text input and is available from 2 providers.
Gemini 3.1 Pro by Google costs $2.00/Mtok input and $12.00/Mtok output, with a 2M-token context window. It supports text, image, audio, video input.
On a blended cost basis, GLM-5.2 is 52.2% cheaper than Gemini 3.1 Pro.
On benchmarks, GLM-5.2 scores higher (76 vs 74.8) on average. In terms of value, GLM-5.2 has better performance per dollar (35.3 vs 16.6).
Note: Pricing is per million tokens. Actual costs vary with usage patterns, prompt caching, and batch discounts. Always verify against official provider pricing pages.