Models/z-ai

glm-5.2· Released Jun 16, 2026

z-ai/glm-5.2

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Input
From$0.77/M
Output
From$2.42/M
Context
Up to 1M
Max output
Up to 131K
Modalities
TextText

Input and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.

Upstreams & pricing
UpstreamContextMax outputInput $/1MOutput $/1MCached input $/1MData policy
NeuroSpark AIFrom price
1M131K
$0.77
$2.42
$0.143
—
Zenlayer AI Gateway-openai_compat/Global
1M131K
$1.155
$3.63
$0.215
—
Paratera/CN
1M131K
$1.26972
$4.444
$0.317424
—

Routed in real time — you pay the listed price of whichever upstream serves your call. Data policies reflect each upstream's own data terms and its agreement with us. We do not independently audit upstream implementations.

How to call
bashrequest.sh
curl https://api.lune.io/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.2",
    "messages": [
      {"role": "user", "content": "Say hello in five words."}
    ]
  }'