Models / Z.ai
Z.ai
GLM 4.5
z-ai/glm-4.5
GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly...
Input
$0.78 / 1M tokens
Output
$2.86 / 1M tokens
Context
131K tokens
Capabilities
✓ Streaming✓ Tool / function calling✓ JSON / structured output○ Vision (image input)
Call this model
Pass z-ai/glm-4.5 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-4.5",
"messages": [{"role":"user","content":"Hello!"}]
}'
Prices are final — the routing margin is already included. See the full pricing table or the API docs.