Back to Models
GLM-5
zaizai/glm-5
Z.AI GLM-5 β current frontier. 200K context with tiered pricing.
Context Length
200K
Max Output
8K
Input Priceper 1M tokens
$1.08/ 1M tokens
Output Priceper 1M tokens
$3.46/ 1M tokens
Modalities
textβtext
Pricing Breakdown
| Type | Rate |
|---|---|
| Input | $1.08 / 1M tokens |
| Output | $3.46 / 1M tokens |
Supported Parameters
temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop
API Usage Examples
Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.
cURL
curl https://api.therouter.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $THE_ROUTER_API_KEY" -d '{
"model": "zai/glm-5",
"messages": [
{"role": "user", "content": "Summarize the key points from this input."}
]
}'