> ## 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.1 API

> GLM 5.1 API on Venice: 200K context, $1.54 input and $4.84 output per 1M tokens. Private, with zero data retention. Supports reasoning and function calling.

> [accordion] Plain-text specification
>
> ## GLM 5.1 API
>
> GLM 5.1 is a large language model by Z.ai, available on the Venice API as `zai-org-glm-5-1`. It runs privately, with zero data retention.
>
> GLM-5.1, the successor to GLM-5, is a large language model developed by Z.ai, featuring significantly enhanced reasoning capabilities, improved instruction following, and support for multiple languages. Supports large context windows for processing extensive text and detailed analysis with fast inference speed.
>
> ### GLM 5.1 API pricing
>
> | Model ID | Variant | Privacy | Price |
> | - | - | - | - |
> | `zai-org-glm-5-1` | Standard | Private | $1.54 / $4.84 per 1M |
>
> ### GLM 5.1 specifications
>
> | Spec | Value |
> | - | - |
> | Provider | Z.ai |
> | Released | Apr 7, 2026 |
> | Privacy | Private |
> | Status | Stable |
> | Open weights | Yes |
> | Context window | 200K tokens |
> | Max output | 80K tokens |
> | Reasoning effort | none, low, medium, high |
> | Served precision | FP8 |
>
> ### How to use the GLM 5.1 API
>
> Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "zai-org-glm-5-1"` and your API key.
>
> ```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-1",
>     "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
>     "reasoning_effort": "low"
>   }'
> ```
>
> ### Related models
>
> * [GLM 5.3 API](https://docs.venice.ai/models/glm-5-3.md): $1.75 / $5.50 per 1M
> * [GLM 5.2 API](https://docs.venice.ai/models/glm-5-2.md): $1.40 / $4.40 per 1M
> * [GLM 5 API](https://docs.venice.ai/models/glm-5.md): $1.00 / $3.20 per 1M
> * [GLM 4.7 API](https://docs.venice.ai/models/glm-4-7.md): $0.55 / $2.65 per 1M
> * [GLM 4.6 API](https://docs.venice.ai/models/glm-4-6.md): $0.43 / $1.75 per 1M
> * [DeepSeek V4 Pro API](https://docs.venice.ai/models/deepseek-v4-pro.md): $1.65 / $3.30 per 1M
> * [DeepSeek V4 Pro 0813 API](https://docs.venice.ai/models/deepseek-v4-pro-0813.md): $1.65 / $4.95 per 1M
> * [Grok 4.3 API](https://docs.venice.ai/models/grok-4-3.md): $1.42 / $2.83 per 1M
> * [Muse Spark Open API](https://docs.venice.ai/models/muse-spark-open.md): $1.56 / $5.31 per 1M


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