Skip to content
All models
Zhipu

GLM 5.2

glm-5.2
PremiumText

GLM 5.2 is a text model by Zhipu. Context: 1,000,000 tokens. Supports reasoning. Accepts images.

VisionThinkingStreamingLong context
Context window
1M
Maximum output tokens
128,000

Pricing

per 1M tokens

Input / 1M
$1.00
Output / 1M
$3.10
Cache read / 1M
$0.52
Cache write / 1M
$1.00
API documentation

GLM 5.2 API pricing and specs

GLM 5.2 is available through the Claudexia API in the Premium channel. Model ID: glm-5.2.

Price: $1.00 per 1M input tokens and $3.10 per 1M output tokens.

Context window: 1,000,000 tokens.

Capabilities listed in the catalog: vision, thinking, streaming.

How to connect GLM 5.2 via API

Replace sk_cdx_... with your key from the API Keys section. The key must belong to the Premium channel.

OpenAI SDK and compatible clients (Python), base URL with /v1

from openai import OpenAI

client = OpenAI(base_url="https://api.claudexia.tech/v1", api_key="sk_cdx_...")
response = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

GLM 5.2 API questions

How much does the GLM 5.2 API cost?
$1.00 per 1M input tokens and $3.10 per 1M output tokens in the Premium channel.
Which base URL do I use for GLM 5.2?
OpenAI-compatible clients: https://api.claudexia.tech/v1. Model ID: glm-5.2.
What is the GLM 5.2 context window?
1,000,000 tokens, according to the Claudexia catalog.