返回模型列表
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.

快速参数

上下文

1000K

最大输出

131K

出品方

Z.ai

规格数

1

模态

输入 text输出 text

规格与刊例价(每百万 tokens)

高质量
输入 $1.19403输出 $4.179104缓存读取 $0.298507

推荐套餐

GLM-5.2 体验套餐

充值即用,按量计费;新用户享 $1 体验额度。

购买套餐

API 接入

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)

立即使用此模型

免费注册,获取 API Key,30 秒接入

GLM-5.2 · TokenPortal