GLM-5 vs Gemini 3.1 Pro Preview
API pricing, benchmark indices and specs — updated 19 October 2026.
google · B · API-only
Input / 1M
$2.00
Output / 1M
$12.00
AA index
29.7
proprietary · 1M context
Specification comparison
Differences are highlighted; identical values are muted.
| Specification | GLM-5 | Gemini 3.1 Pro Preview |
|---|---|---|
| Deployment | Open weights · also via API | API-only (closed weights) |
| Parameters | 753.9 B | n/a — API-only |
| Architecture | GlmMoeDsaForCausalLM | n/a — API-only |
| Context length | 202,752 | 1,048,576 |
| Licence | mit | Proprietary |
| Commercial use | Allowed | Per API terms |
| Languages | 2 | n/a — API-only |
| Downloads 30d | 1,020,783 | n/a — API-only |
| Downloads all time | 2.4 M | n/a — API-only |
| Quantizations on the Hub | SAFETENSORS | n/a — API-only |
| Gated | No | n/a — API-only |
| First seen on the Hub | 2026-02-11 | n/a — API-only |
| API input price / 1M tokens | $1.00 | $2.00 |
| API output price / 1M tokens | $3.20 | $12.00 |
| Est. cost per 1M input + 1M output tokens | $4.20 | $14.00 |
| Cached input / 1M tokens | $0.20 | $0.20 |
| AA Intelligence Index | 27.9 | 29.7 |
| AA Coding Index | — | 68.8 |
| AA Agentic Index | — | 8.2 |
| Max output tokens | 131,072 | 65,536 |
| API providers | 8 | 2 |
| Tool calling | Yes | Yes |
| Reasoning mode | Yes | Yes |
API cost
Estimated cost of 1M input + 1M output tokens via OpenRouter
GLM-5
$4.20
Gemini 3.1 Pro Preview
$14.00
GLM-5 is 3.3× cheaper at list price.
VRAM side by side
On RTX 4090 · 24 GB · 8K context unless noted
GLM-5 · fp16 @ 198K ctx
4,457.7 GB / 24 GB