Z.ai (Zhipu GLM)
reasoning_content, thinking is controlled with thinking: { type } (plus reasoning_effort on GLM-5), and prompt-cache hits are reported under usage.prompt_tokens_details.cached_tokens — the same wire format as Kimi.
GLM reasoning is per-model — GLM-5 models expose real effort tiers (Off / High / Max via reasoning_effort), while GLM-4.x are a simple on/off toggle (any mode other than none enables reasoning, none disables it). GLM-5.2 also offers a 1M-token context window, the largest in Z.ai’s lineup.
Best for: Cost-efficient agentic work, long-context workflows (GLM-5.2), and vision-capable tasks. GLM models are strong all-rounders for tool chains and code at budget-tier pricing.
Getting an API Key
- Go to z.ai
- Sign up or log in
- Open API Keys and create a new key
- Paste it into Wolffish → Settings → Models → Z.ai
Models
| Model | Context | Modes | Input / Output (per MTok) | Cached |
|---|---|---|---|---|
| glm-5.2 | 1M | Off / High / Max | 4.40 | $0.26 |
| glm-5.1 | 200K | Off / High / Max | 4.40 | $0.26 |
| glm-5-turbo | 200K | Off / High / Max | 4.00 | $0.24 |
| glm-5 | 200K | Off / High / Max | 3.20 | $0.20 |
| glm-4.7 | 200K | Off / On | 2.20 | $0.11 |
| glm-4.6 | 200K | Off / On | 2.20 | $0.11 |
| glm-4.5 | 128K | Off / On | 2.20 | $0.11 |
| glm-4.5-air | 128K | Off / On | 1.10 | $0.03 |
Reasoning modes
The brain icon next to the message box controls how this model reasons. Click it to cycle through the modes the selected model supports. Two separate ideas combine here:Thinking — whether the model reasons
- Off — the model answers immediately. Fastest and cheapest; ideal for simple, direct tasks.
- On — the model first works through the problem in a dedicated reasoning pass before replying. Slower and uses more tokens, but markedly more accurate on multi-step, logical, or ambiguous tasks.
Effort — how hard it thinks
Only effort-capable models expose this; it applies once thinking is on.- High — standard reasoning depth. The right default for most agentic work.
- Max — the model reasons longer and deeper for the hardest problems. More tokens and latency in exchange for higher quality on complex work.
Button states
| State | Colour | Meaning |
|---|---|---|
| Off | gray | Thinking off — direct answer |
| On | blue | Thinking on — no effort control |
| High | purple | Thinking on, standard effort |
| Max | orange | Thinking on, maximum effort |