glm-4.6· Released Sep 30, 2025
z-ai/glm-4.6
Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex...
Input
From$0.54/M
Output
From$1.98/M
Context
Up to 205K
Max output
Up to 131K
Modalities
TextTextInput and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.
Upstreams & pricing
| Upstream | Context | Max output | Input $/1M | Output $/1M | Cached input $/1M |
|---|---|---|---|---|---|
Zenlayer AI Gateway-openai_compat (Global)From price | 205K | 131K | $0.54 | $1.98 | $0.099 |
Routed in real time — you pay the listed price of whichever upstream serves your call.
How to call
curlrequest.sh
curl https://api.tkex.ai/v1/chat/completions \
-H "Authorization: Bearer $TX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-4.6",
"messages": [
{"role": "user", "content": "Say hello in five words."}
]
}'