Models / Z.ai
Z.ai

GLM 4.7

z-ai/glm-4.7

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...

Input
$0.52 / 1M tokens
Output
$2.275 / 1M tokens
Context
203K tokens

Capabilities

✓ Streaming✓ Tool / function calling✓ JSON / structured output○ Vision (image input)

Call this model

Pass z-ai/glm-4.7 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.7",
    "messages": [{"role":"user","content":"Hello!"}]
  }'

Prices are final — the routing margin is already included. See the full pricing table or the API docs.