Skip to content

GLM-5.2

z-ai/glm-5.2

Z.ai's June 2026 open-weight (MIT) model for long-horizon coding, the first GLM to deliver a usable 1M-token context, with 128K output and selectable reasoning effort. Superseded as flagship by GLM-5.3, a post-trained update of the same base.

API
curl "$AUDIOLAB_API_URL/v1/chat/completions" \
  -H "Authorization: Bearer $AUDIOLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-ai/glm-5.2",
  "messages": [
    {
      "role": "user",
      "content": "Help me plan my next project."
    }
  ],
  "max_tokens": 256
}'
Input Price
$1.19 / 1M tokens
Output Price
$3.74 / 1M tokens
Context
1M tokens
Output Cap
131.1K tokens

Capabilities

Explore what GLM-5.2 supports, then use the API section for a request tailored to this model.

Max tokensReasoningInclude reasoning

Model Information

Provider
Z.AI
Product
Language Models
Release Date
Jun 16, 2026
Data Policy
Not specified
Input
Text
Output
Text
Provider Documentation

Playground

Try GLM-5.2 by Z.AI. Requests use the selected workspace’s credits and API pricing.

GLM-5.2Credits —
GLM-5.2
⌘ / Ctrl + Enter to send

Providers

Compare available endpoints, pricing, and context limits for GLM-5.2.

ProviderContextOutput CapInput PriceOutput PriceEndpoint
Z.AI1M tokens131.1K tokens$1.19 / 1M tokens$3.74 / 1M tokens
z-ai/glm-5.2
Alibaba Cloud Model Studio1M tokens131.1K tokens$1.19 / 1M tokens$3.74 / 1M tokens
qwen/glm-5.2
Mistral AI1M tokens128K tokens$1.19 / 1M tokens$3.74 / 1M tokens
mistral/zai-glm-5-2
Together AI1M tokens131.1K tokens$1.19 / 1M tokens$3.74 / 1M tokens
together/zai-org-glm-5.2

Prices are catalog rates. Your workspace’s estimate and endpoint pricing determine the final charge.

Input and Output Limits

Formats and limits AudioLab enforces on each request.

LimitValueEndpoint
Max input tokens1048576z-ai/glm-5.2
Max output tokens131072z-ai/glm-5.2
Max input tokens1048576qwen/glm-5.2
Max output tokens131072qwen/glm-5.2
Max input tokens1048576mistral/zai-glm-5-2
Max output tokens128000mistral/zai-glm-5-2
Max input tokens1048575together/zai-org-glm-5.2
Max output tokens131072together/zai-org-glm-5.2

Provider Notes

Several hosts serve this model. A request to this ID can be answered by any of them; a host-pinned ID selects one.

Performance

Status

Current catalog availability. Your workspace’s access is checked separately before a request runs.

Getting Started

Use your workspace API key and the exact model identifier below. Set the API URL to the endpoint shown in your workspace and keep credentials on your server.

API
curl "$AUDIOLAB_API_URL/v1/chat/completions" \
  -H "Authorization: Bearer $AUDIOLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-ai/glm-5.2",
  "messages": [
    {
      "role": "user",
      "content": "Help me plan my next project."
    }
  ],
  "max_tokens": 256
}'
Read the Endpoint Reference

Request Parameters

Available parameters depend on the provider and request format. The endpoint reference explains accepted values and required fields.

ParameterDetails
modelz-ai/glm-5.2 — Required model identifier.
max_tokensView Accepted Values
reasoningView Accepted Values
include_reasoningView Accepted Values

Input and Output Limits

Formats and limits AudioLab enforces on each request.

LimitValueEndpoint
Max input tokens1048576z-ai/glm-5.2
Max output tokens131072z-ai/glm-5.2
Max input tokens1048576qwen/glm-5.2
Max output tokens131072qwen/glm-5.2
Max input tokens1048576mistral/zai-glm-5-2
Max output tokens128000mistral/zai-glm-5-2
Max input tokens1048575together/zai-org-glm-5.2
Max output tokens131072together/zai-org-glm-5.2

Similar Models

Explore more language models and compare their capabilities.

ModelContextInput PriceOutput Price
GLM-5Z.AI204.8K tokens$0.85 / 1M tokens$2.72 / 1M tokens
GLM-4.7-FlashXZ.AI204.8K tokens$0.0595 / 1M tokens$0.34 / 1M tokens
GLM-4.7Z.AI204.8K tokens$0.51 / 1M tokens$1.87 / 1M tokens
Claude Haiku 5.5Anthropic1M tokens$0.085 / 1M tokens$0.425 / 1M tokens
GPT-6.1 SolOpenAI1.1M tokens$1.70 / 1M tokens$8.50 / 1M tokens
Claude Sonnet 5.5Anthropic1M tokens$1.70 / 1M tokens$8.50 / 1M tokens
View All Language Models