Skip to main content
Model id: zai-org/GLM-5.2 — pass this as the model field in API requests.

Spec

Providerzai-org
HuggingFacezai-org/GLM-5.2
Context length262,144 tokens
Max output4,096 tokens
Quantizationmanaged
Input modalitiestext
Output modalitiestext

Pricing

per million tokens
Input$1.49
Output$4.62
Cache Read$0.27

Supported features

reasoning, tools, json_mode, structured_outputs

Sampling parameters

temperature, top_p, max_tokens, stop, seed, frequency_penalty, presence_penalty

Example

curl https://api.tera.gw/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TERA_API_KEY" \
  -d '{
    "model": "zai-org/GLM-5.2",
    "messages": [{"role": "user", "content": "Hello"}],
    "max_tokens": 256
  }'