GLM-4.7 vs GPT-5

API pricing, benchmark indices and specs — updated 19 October 2026.

zai-org · A · Open weights
Params
358.3 B
Context
202,752
30d
81 K
mit · commercial OK
openai · B · API-only
Input / 1M
$1.25
Output / 1M
$10.00
AA index
23
proprietary · 400K context

Specification comparison

Differences are highlighted; identical values are muted.

Specification GLM-4.7 GPT-5
Deployment Open weights · also via API API-only (closed weights)
Parameters 358.3 B n/a — API-only
Architecture Glm4MoeForCausalLM n/a — API-only
Context length 202,752 400,000
Licence mit Proprietary
Commercial use Allowed Per API terms
Languages 2 n/a — API-only
Downloads 30d 80,924 n/a — API-only
Downloads all time 910 K n/a — API-only
Quantizations on the Hub SAFETENSORS n/a — API-only
Gated No n/a — API-only
First seen on the Hub 2025-12-22 n/a — API-only
API input price / 1M tokens $0.54 $1.25
API output price / 1M tokens $1.98 $10.00
Est. cost per 1M input + 1M output tokens $2.52 $11.25
Cached input / 1M tokens $0.099 $0.13
AA Intelligence Index 22.2 23
AA Coding Index 45.3 37.8
AA Agentic Index — —
Max output tokens 131,072 128,000
API providers 6 2
Tool calling Yes Yes
Reasoning mode Yes Yes

API cost

Estimated cost of 1M input + 1M output tokens via OpenRouter

GLM-4.7 $2.52
GPT-5 $11.25

GLM-4.7 is 4.5× cheaper at list price.

VRAM side by side

On RTX 4090 · 24 GB · 8K context unless noted

GLM-4.7 · fp16 @ 198K ctx 2,119.2 GB / 24 GB
❌ Won’t fit

Adjacent comparisons