> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GLM 5.2 API

> Venice 上的 GLM 5.2 API：1M 上下文，每 1M tokens 输入 $1.40、输出 $4.40。提供私密版和端到端加密版。包含定价、规格和代码示例。

> [accordion] 纯文本规格说明
>
> ## GLM 5.2 API
>
> GLM 5.2 是由 Z.ai 推出的大语言模型，可通过 Venice API 以 `zai-org-glm-5-2` 调用。提供私密版和端到端加密版。
>
> GLM-5.2 是 GLM-5.1 的后继模型，是由 Z.ai 开发的大语言模型，推理能力显著增强，指令遵循能力有所提升，并支持多种语言。它支持比 GLM-5.1 更长的上下文窗口，可快速推理，用于处理大量文本和进行深入分析。
>
> ### GLM 5.2 API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `zai-org-glm-5-2` | 标准 | Private | 每 1M $1.40 / $4.40 |
> | `e2ee-glm-5-2-p` | E2EE | E2EE | 每 1M $1.75 / $5.75 |
>
> ### GLM 5.2 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | Z.ai |
> | 发布日期 | 2026年6月16日 |
> | 隐私 | Private, E2EE |
> | 状态 | 稳定 |
> | 开放权重 | 是 |
> | 上下文窗口 | 1M tokens |
> | 最大输出 | 128K tokens |
> | 推理强度 | none, high, max |
> | 服务精度 | FP8 |
>
> ### 如何使用 GLM 5.2 API
>
> 使用 `"model": "zai-org-glm-5-2"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/chat/completions` 发送请求。
>
> ```bash theme={"system"}
> curl https://api.venice.ai/api/v1/chat/completions \
>   -H "Authorization: Bearer $VENICE_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "zai-org-glm-5-2",
>     "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
>     "reasoning_effort": "max"
>   }'
> ```
>
> ### 相关模型
>
> * [GLM 5.3 API](https://docs.venice.ai/zh/models/glm-5-3.md): 每 1M $1.75 / $5.50
> * [GLM 5.1 API](https://docs.venice.ai/zh/models/glm-5-1.md): 每 1M $1.54 / $4.84
> * [GLM 5 API](https://docs.venice.ai/zh/models/glm-5.md): 每 1M $1.00 / $3.20
> * [GLM 4.7 API](https://docs.venice.ai/zh/models/glm-4-7.md): 每 1M $0.55 / $2.65
> * [GLM 4.6 API](https://docs.venice.ai/zh/models/glm-4-6.md): 每 1M $0.43 / $1.75
> * [DeepSeek V4 Pro API](https://docs.venice.ai/zh/models/deepseek-v4-pro.md): 每 1M $1.65 / $3.30
> * [Gemini 3.6 Flash API](https://docs.venice.ai/zh/models/gemini-3-6-flash.md): 每 1M $0.9375 / $4.69
> * [Gemini 3.7 Flash API](https://docs.venice.ai/zh/models/gemini-3-7-flash.md): 每 1M $0.9375 / $4.69
> * [DeepSeek V4 Pro 0813 API](https://docs.venice.ai/zh/models/deepseek-v4-pro-0813.md): 每 1M $1.65 / $4.95


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.