z-ai

glm-5.2

Open-weight frontier model with strong coding, agentic performance and a 1M context window.

z-ai 1M context ★ Featured

Value rank

#16 of 23

intelligence per dollar in our catalogue

Context rank

#1 tied

1M token window

Benchmarks

Independent scores by Artificial Analysis, compared with the strongest models in our catalogue.

Intelligence index

glm-5.2
51.1
minimax-m3
44.4
kimi-k2.6
42.8

Coding index

glm-5.2
50.7
kimi-k2.6
47.1
minimax-m3
43.4

Best for

Where this model earns its keep.

Long-document analysis Coding and engineering Prompt-cached workloads

The numbers

Pricing is live from our platform. Prices per 1M tokens, zero data retention on every request.

Input price$1.50
Cache read price$0.38
Output price$4.50
Context window1M tokens
Intelligence / coding index51.1 / 50.7

Or consider

Close alternatives in the catalogue.

Quick start

OpenAI-compatible. Switch in one line.

# pip install openai
client = OpenAI(base_url="https://api.tensorx.ai/v1", api_key="tsx-...")
r = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[{"role": "user", "content": "Hello"}],
)

Benchmark data from the Artificial Analysis Intelligence Index v4.1, measured independently. Pricing live from the TensorX platform. All inference on EU-sovereign infrastructure with zero data retention.