z-ai/glm-4.7-flash

Z.ai: GLM 4.7 Flash

Context length
200K
Input / 1M tokens
$0.06
Output / 1M tokens
$0.40
Released
2026-01-19
Modality
text->text

About Z.ai: GLM 4.7 Flash

As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,...

Call Z.ai: GLM 4.7 Flash

Via OpenRouter: one base URL for every provider.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-4.7-flash",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Direct on Zhipu / Z.ai (GLM):

curl https://api.z.ai/api/paas/v4/chat/completions \
  -H "Authorization: Bearer $ZHIPU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-4.7-flash",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Zhipu / Z.ai (GLM) keys

OpenRouter keys

OpenRouter keys work for z-ai/glm-4.7-flash regardless of the upstream provider.