Z.ai model API

glm-5.2

Call glm-5.2 through RelayRouter’s OpenAI-compatible endpoint with metered credits and route failover.

Context window

1,048,576 tokens

Published maximum context configured for this route.

Input price

0.7980 credits / 1M

Metered input-token rate before account-specific billing rules.

Output price

2.5080 credits / 1M

Metered generated-token rate before account-specific billing rules.

Route health

95.35%

95.35% observed request success. Historical performance is not a future uptime guarantee.

OpenAI-compatible request

curl https://relayrouter.org/v1/chat/completions \
  -H "Authorization: Bearer rr_live_••••" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.2","messages":[{"role":"user","content":"Hello"}]}'
Read migration guide