Models / Z.ai
Z.ai
GLM 5.2
z-ai/glm-5.2
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...
Input
$1.001 / 1M tokens
Output
$3.146 / 1M tokens
Context
1049K tokens
Capabilities
✓ Streaming✓ Tool / function calling✓ JSON / structured output○ Vision (image input)
Call this model
Pass z-ai/glm-5.2 as the model. Change only the base URL from your existing OpenAI SDK setup.
quickstart.sh
curl https://modeldatabase.com/v1/chat/completions \
-H "Authorization: Bearer $MDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [{"role":"user","content":"Hello!"}]
}'
Prices are final — the routing margin is already included. See the full pricing table or the API docs.