z-ai logo
z-ai

Z.ai: GLM 5.2 (batch)

来源介绍(英文)

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,...

模型概览

模型规格

上下文
1,048,576 tokens
最大输出
943,718 tokens
架构
text->text
分词器
Other
知识截止时间
暂未提供
内容审核
OPENROUTER

完整价格

同步自 OpenRouter。Token 价格均按每百万 Token 展示。

输入
$0.7
每百万 Token
输出
$2.2
每百万 Token
缓存读取
$0.07
每百万 Token
API

模型配置

默认参数

temperature
1
top_p
0.95

推理能力

是否必须推理
默认参数
high
能力与模态
xhigh, high
API

快速调用

在本地设置 OPENROUTER_API_KEY。Python 需安装 requests;JavaScript 在 Node.js 中运行。密钥应保存在服务端。

此请求使用基础模型 ID 提交异步批处理。返回任务 ID 表示已提交,不表示已完成。

API 文档

curl --fail-with-body https://openrouter.ai/api/beta/batches \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"/v1/chat/completions","model":"z-ai/glm-5.2","requests":[{"custom_id":"request-1","body":{"messages":[{"role":"user","content":"Hello!"}]}}]}'

# Replace JOB_ID with the returned id to check progress.
curl --fail-with-body "https://openrouter.ai/api/beta/batches/JOB_ID" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY"
能力与模态

输入输出

输入
text
输出
text
推理能力

· xhigh · high

API

支持的 API 参数

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokenspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
可用提供方

1 提供方

核验日期: 2026年9月9日

在 OpenRouter 查看实时 Provider

Provider 可用性、延迟、吞吐量和路由会持续变化,请前往来源页面查看实时运行数据。

OpenRouter

Fireworks

暂未提供
上下文
1.0M
最大输出
944K
输入
$0.7
输出
$2.2
缓存读取
$0.07
缓存写入
暂未提供
z-ai

4 个模型

全部模型