Skip to main content
Z.aiJun 16, 2026

GLM 5.2 E2EE

e2ee-glm-5-2-pOpen weights

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.

  • Prompts are decrypted only inside an attested TEE on the GPU.
  • Calls need the E2EE handshake. Without it, requests reach Venice as plaintext and run TEE-only. How to call an E2EE model
$1.75/$5.75
per 1M in / out
512K
context window
32K
max output
Also available without end-to-end encryption$1.40 / $4.40 per 1M
How it comparesamong 143 text models
Pricecheaper than 37%$2.75
First token—
Output speed—
Context windowlarger than 42%512K

Further right is better. Hover a dot for its model.

Capabilities

What the model takes in, returns and supports through the API.

InText
OutText
Streamingstream: true
Function callingtoolsReasoningreasoning_effort none · low · medium · high
Web searchenable_web_search
Prompt cachingReads at $0.30
Optimized for codeTuned for software work

Not supportedstructured outputs, image input, video input, audio input, X search and log probabilities

Performance

Measured on Venice API traffic over the last 24 hours.

Time to first token—
Output speed—
Uptime—

How it’s measured

Pricing

Billed per token in USD. Reasoning tokens bill as output.

Input$1.75per 1M tokens
Cached input$0.3083% off input
Output$5.75per 1M tokens

Estimate a workload

$0.0064per request
$63.75for 10,000 requests

Blended price against similar models

GLM 5.2 E2EE$2.75

Per 1M tokens at three input tokens for each output token.

Specs

Model ID
e2ee-glm-5-2-p
Endpoint
POST /api/v1/chat/completions
Context window
524,288 tokens
Max output
32,768 tokens
Reasoning
none · low · medium · high · default low
Precision
Not disclosed
Privacy
E2EE
Added
Jun 16, 2026

Compare

ModelInputOutputContextMax outputFirst tokenSpeed
GLM 5.2 E2EE$1.75$5.75512K32K——
DeepSeek V4 Pro 0813$1.65$4.951M256K——
Grok 4.5$2.27$6.80500K32K——
Muse Spark Open$1.56$5.311M128K——
Gemini 3.5 Flash$1.55$9.451M64K——

Other versions

  1. GLM 5.2 E2EEJun 2026
  2. GLM 5.3 E2EESep 2026

Quickstart

OpenAI-compatible: point any OpenAI SDK at the Venice base URL with a Venice API key.

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"
}'
Base URL https://api.venice.ai/api/v1

These samples send 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 shows.

Parameters

ParameterValuesNotes
modele2ee-glm-5-2-pRequired
messagestextContent parts the model reads
max_completion_tokensUp to 32,768Counts reasoning tokens
reasoning_effortnone | low | medium | highDefault low
toolsFunction definitionsWith tool_choice
streamtrue | falseServer-sent events
venice_parameters.enable_web_searchauto | on | offWeb results and citations