Back to models
Z.ai

GLM-5.2

GLM 5.2 是 Z.ai 开发的一款大规模推理模型,支持文本输入和输出,上下文窗口容量为 100 万个标记,适用于长周期的智能体工作流、项目级软件工程以及复杂的多步骤自动化任务。 推理能力高且支持xhigh;xhigh对应最高水平的推理。在长期任务中的编码和工具使用方面表现尤为出色,能够在整个开发流程中保持工程背景,并从需求到跨平台部署,始终一致地遵循标准,完成单一任务。 GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering, and complex multi-step automation. Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.

Quick Stats

Context

1000K

Max Output

131K

Provider

Z.ai

Specs

1

Modalities

in textout text

Specs & List Price (per 1M tokens)

Quality
Input $1.19403Output $4.179104Cache read $0.298507

Recommended Plan

GLM-5.2 Starter Plan

Pay-as-you-go after top-up; $1 free credit for new users.

Buy Plan

API Endpoint

Model IDz-ai/glm-5.2

cURL

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

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://intertoken.ai/v1",
    api_key="$TOKENPORTAL_API_KEY",
)

resp = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Start using this model

Sign up free, get an API key, and make your first call in 30 seconds.