Z AI
Z AI/zai-org-glm-5-2/Released Jun 2026

GLM 5.2

Coding and agents, 1M-token context

Commercial use
Text

About GLM 5.2

zai-org/GLM-5.2 is a large Mixture-of-Experts language model from Z AI built for long-horizon coding and agentic tasks. It introduces a 1M-token context window and multi-effort coding capabilities that improve sustained performance across long, multi-step workflows.

Its IndexShare architecture and improved MTP layer reduce per-token FLOPs while increasing speculative decoding lengths, boosting efficiency without sacrificing quality. GLM-5.2 supports function calling and is well suited for agentic engineering, code assistance, and tasks that require reasoning over very long contexts.

MetricValue
Parameter Count743 billion
Mixture of ExpertsYes
Context Length1,040,000 tokens
MultilingualYes
Quantized*Unknown

*Quantization is specific to the inference provider and the model may be offered with different quantization levels by other providers.

Ready to build with GLM 5.2?

Try GLM 5.2 in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.

curl -sSf -X POST https://hub.oxen.ai/api/ai/chat/completions \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $OXEN_API_KEY" \
    -d '{
  "model": "zai-org-glm-5-2",
  "messages": [
    {
      "role": "user",
      "content": "Try sending a message."
    }
  ]
}'

API endpoint

See the API reference for request and response formats.

POSThttps://hub.oxen.ai/api/ai/chat/completions