GLM-5.2
Z.AI 的 GLM-5.2 模型,适合企业文本生成、推理与 OpenAI 兼容 API 工作负载。
文本推理OpenAI 兼容
上下文窗口
-
glm-5.2
最大输出
-
1M tokens
输入
$1.4
1M tokens
输出
$4.4
1M tokens
模型代码
glm-5.2试玩区
glm-5.2暂无输出
定价
| 方案 | 上下文窗口 | 最大输出 | 输入 | 输出 | 缓存写入 | 缓存读取 |
|---|---|---|---|---|---|---|
glm-5.2 | - | - | $1.4 1M tokens | $4.4 1M tokens | - | $0.26 1M tokens |
Cached Input Storage · Limited-time Free · 1M tokens
缓存读取或缓存输入价格适用于复用的提示词 tokens。
README
GLM-5.2 是面向生产环境的文本模型,适合需要可靠推理、结构化生成和 OpenAI 兼容聊天接口的团队。
- GLM-5.2 适合企业聊天、内容生成、分析和结构化文本工作流,便于在可预期的 token 成本下使用较强模型能力。
- OpenAI 兼容聊天接口可以帮助团队复用现有客户端库、网关策略和评测流程,降低集成迁移成本。
- 对于重复提示词、模板和策略上下文较多的场景,缓存输入价格有助于降低复用上下文的成本。
API
查看 API 文档以获取请求格式、参数说明和集成方式。
API
端点
POST /v1/messages认证
Authorization: Bearer YOUR_REACH_API_KEY anthropic-version: 2023-06-01 Content-Type: application/json
示例
curl -X POST "https://direct.reachapi.ai/v1/messages" \
-H "Authorization: Bearer YOUR_REACH_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [
{
"role": "user",
"content": "Introduce ReachAPI in one sentence."
}
],
"max_tokens": 512,
"temperature": 0.2
}'相关模型
同一厂商的其他模型
GLM-5.3
Z.AI's GLM-5.3 flagship model for coding, reasoning, and agentic workloads.
GLM-5.3-Flash
Z.AI's faster, lower-cost model for coding, agentic, and multimodal workloads.
DeepSeek-V4-Flash
DeepSeek's fast V4 model for cost-sensitive, OpenAI-compatible text and reasoning workloads.
DeepSeek-V4-Pro
DeepSeek's stronger V4 model for OpenAI-compatible reasoning, coding, and enterprise text workloads.
Kimi K3
Kimi's flagship reasoning model for long-horizon coding, visual understanding, and end-to-end knowledge work.
