GLM
Z.ai's open-weight family, behind the cheap coding subscriptions.
GLM is the model family from Z.ai, and the reason its coding plan turns up in every "cheaper than Claude Code" thread — the weights are published, plenty of providers serve them, and the Flash models are some of the cheapest usable coding models anywhere. The 5.3 line runs to a million tokens of context, with Flash variants that also read images and video. Z.ai's own chat app is listed separately under Chats.
At a glance — GLM 5
- Cost
- $0.60 in · $1.92 out per 1M tokensMid-range
- Memory
- 205K tokens — about 300 pages
- Reads
- Text
- Can do
- Use tools (agents)
- Structured output
- Thinking mode
- Reliability
- 100.00% uptime, last 24h
- Released
- Feb 11, 2026
Advanced details
- API model ID
z-ai/glm-5- Max output
- 128K tokens
- Cached input
- $0.12 per 1M
- Tokenizer
- Other
Providers
The same model, hosted by different companies. OpenRouter picks one per request and falls back to the next if it fails.
| Provider | Input /1M | Output /1M | Cached /1M | Max output | Uptime 24h |
|---|---|---|---|---|---|
| StreamLake · fp8 | $0.60 | $1.92 | $0.12 | 128K | 99.82% |
| GMICloud · fp8 | $0.60 | $1.92 | $0.12 | 182K | 94.61% |
| Baidu · fp8 | $0.70 | $2.24 | $0.14 | 131K | 99.67% |
| SiliconFlow · fp8 | $0.95 | $2.55 | $0.20 | 131K | 98.35% |
| Amazon BedrockDegraded | $1.00 | $3.20 | — | 131K | 75.18% |
| Venice · fp8 | $1.00 | $3.20 | $0.20 | 32K | 99.34% |
| Novita · fp8 | $1.00 | $3.20 | $0.20 | 131K | 100.00% |
| Z.AI · fp8 | $1.00 | $3.20 | $0.20 | 131K | 99.98% |
Supported parameters
- frequency_penalty
- include_reasoning
- logprobs
- max_tokens
- presence_penalty
- reasoning
- repetition_penalty
- response_format
- seed
- stop
- structured_outputs
- temperature
- tool_choice
- tools
- top_k
- top_logprobs
- top_p
Live from OpenRouter, refreshed hourly.
Key info
- Pricing
- Open source
- Category
- Models
- Best for
- Intermediate
- Made by
- Z.ai
- Weights
- Open
- Good for
- Coding on a budget