Z.aiJun 16, 2026
GLM 5.2
GLM-5.2, the successor to GLM-5.1, is a large language model developed by Z.ai, featuring significantly enhanced reasoning capabilities, improved instruction following, and support for multiple languages. Supports a longer context window than GLM-5.1 for processing extensive text and detailed analysis with fast inference speed.
$1.40/$4.40
per 1M in / out
1M
context window
128K
max output
Variant
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": "zai-org-glm-5-2",
"messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
"reasoning_effort": "max"
}'Base URL
https://api.venice.ai/api/v1Parameters
| Parameter | Values |
|---|---|
model | zai-org-glm-5-2 |
messages | text |
max_completion_tokens | Up to 131,072 |
reasoning_effort | none | high | max |
tools | Function definitions |
response_format | { type: |
stream | true | false |
venice_parameters.enable_web_search | auto | on | off |
Capabilities
What the model takes in, returns and supports through the API.
InText
OutText
Streaming
Function callingstream: truetoolsStructured outputsresponse_formatReasoningreasoning_effort none · high · maxWeb search
Prompt cachingReads at $0.26enable_web_searchOptimized for codeTuned for software work
Not supportedimage input, video input, audio input, X search and log probabilities
Pricing
Billed per token in USD. Reasoning tokens bill as output.
Input$1.40per 1M tokens
Cached input$0.2681% off input
Output$4.40per 1M tokens
Estimate a workload
$0.005per request
$50.00for 10,000 requests
Blended price against similar models
Specs
- Model ID
zai-org-glm-5-2- Endpoint
POST /api/v1/chat/completions- Context window
- 1,000,000 tokens
- Max output
- 131,072 tokens
- Reasoning
none · high · max· default max- Precision
- FP8
- Privacy
- Private
- Weights
- zai-org/GLM-5.2
- Added
- Jun 16, 2026
Compare
| Model | Input | Output |
|---|---|---|
| GLM 5.2 | $1.40 | $4.40 |
| DeepSeek V4 Pro | $1.65 | $3.30 |
| Gemini 3.6 Flash | $0.9375 | $4.69 |
| Gemini 3.7 Flash | $0.9375 | $4.69 |
| DeepSeek V4 Pro 0813 | $1.65 | $4.95 |