> ## 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.2 E2EE API

> GLM 5.2 E2EE API on Venice: 512K context, $1.75 input and $5.75 output per 1M tokens. End-to-end encrypted. Supports reasoning and function calling.



## GLM 5.2 E2EE API

GLM 5.2 E2EE is a large language model by Z.ai, available on the Venice API as `e2ee-glm-5-2-p`. This model supports end-to-end encryption (E2EE) and runs in a Trusted Execution Environment (TEE). Your prompt is encrypted on your client and decrypted on the GPU within the TEE. The response is then encrypted and sent back to your client for decryption. Venice's system prompt and web search are disabled to preserve end-to-end encryption. Attestation evidence is available for independent verification. It is also available without end-to-end encryption, as [GLM 5.2](https://docs.venice.ai/models/glm-5-2.md).

GLM 5.2 running in a Trusted Execution Environment (TEE). A Z.AI model for long-horizon tasks with enhanced reasoning and project-level engineering context, with hardware attestation evidence available for independent verification.

### GLM 5.2 E2EE API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `e2ee-glm-5-2-p` | E2EE | E2EE | $1.75 / $5.75 per 1M |

### GLM 5.2 E2EE specifications

| Spec | Value |
| - | - |
| Provider | Z.ai |
| Released | Jun 16, 2026 |
| Privacy | E2EE |
| Status | Stable |
| Open weights | [zai-org/GLM-5.2](https://huggingface.co/zai-org/GLM-5.2) |
| Context window | 512K tokens |
| Max output | 32K tokens |
| Reasoning effort | none, low, medium, high |

### How to use the GLM 5.2 E2EE API

Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "e2ee-glm-5-2-p"` and your API key.

This sample sends the prompt as plaintext, so the request runs TEE-only. For end-to-end encryption, send encrypted messages with the E2EE headers, as the [TEE and E2EE guide](https://docs.venice.ai/guides/features/tee-e2ee-models.md#e2ee-models) shows.

```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": "e2ee-glm-5-2-p",
    "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
    "reasoning_effort": "low"
  }'
```

### Related models

* [GLM 5.3 E2EE API](https://docs.venice.ai/models/glm-5-3-e2ee.md): $1.75 / $5.50 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.5 API](https://docs.venice.ai/models/grok-4-5.md): $2.27 / $6.80 per 1M
* [Muse Spark Open API](https://docs.venice.ai/models/muse-spark-open.md): $1.56 / $5.31 per 1M
* [Gemini 3.5 Flash API](https://docs.venice.ai/models/gemini-3-5-flash.md): $1.55 / $9.45 per 1M


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