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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

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



## 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`. This model is private and no prompt data is stored in any capacity.

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 | [zai-org/GLM-5.1](https://huggingface.co/zai-org/GLM-5.1) |
| Context window | 200K tokens |
| Max output | 80K tokens |
| Reasoning effort | none, low, medium, high |
| Served precision | FP8 |
| [GPQA Diamond](https://docs.venice.ai/models/methodology.md#benchmarks) | 85.4% ±4.9 (95% interval), run by Venice through the API at its default reasoning on Nov 19, 2026 |

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