Z.ai: GLM 5.2

z-ai/glm-5.2 — available through the Autonomous Relay Agents API, served by Z.ai.

Z.ai: GLM 5.2 has a 1,048,576-token context window and costs $0.966 per million input tokens and $3.036 per million output tokens, at the provider's list price on your own key.

Context length
1,048,576 tokens
Input
$0.966 per M
Output
$3.036 per M
Served by
zai
Input modalities
text

Variants

The same model under another model id, priced or limited differently. Call it by its id; prices are per million tokens.

VariantModel idContextInputOutput
Z.ai: GLM 5.2 (free)z-ai/glm-5.2:free256,000$0.00 per M$0.00 per M

This is a BYOK-only model: requests use your own provider key. Prices shown are the provider's list prices.

Call it

Any OpenAI-compatible client works: change the base URL and send this model id.

curl https://autonomousrelay.com/v1/chat/completions \
  -H "Authorization: Bearer $AUTONOMOUS_RELAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Hello"}]}'

Compare