MODELS / Z.AI

GLM 5.2

GLM-5.2 delivers powerful coding capabilities, usable 1M-context support, and continued strengths in long-horizon tasks.

TEXTREASONINGREASONINGTOOL-USEIMPLICIT-CACHING
1M
CONTEXT WINDOW
128K
MAX OUTPUT TOKENS
$0.8
INPUT PRICE / 1M TOKENS
$2.55
OUTPUT PRICE / 1M TOKENS
QUICKSTART

Call it in one request.

OpenAI-compatible: change the base URL, and the setup is complete.

curl https://enterprise.blackbox.ai/v1/chat/completions \
  -H "Authorization: Bearer $BLACKBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "blackboxai/zai/glm-5.2",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
SPECIFICATIONS

The full spec sheet.

Context, pricing, modalities, routing, and deployment: everything GLM 5.2 supports, in one table.

MODEL ID
blackboxai/zai/glm-5.2
DEVELOPED BY
Z.AI
MODEL TYPE
Text
RELEASED
Jun 16, 2026
CONTEXT WINDOW
1M
MAX OUTPUT TOKENS
128K
INPUT MODALITIES
text
OUTPUT MODALITIES
text
INPUT PRICE
$0.8 / 1M tokens
OUTPUT PRICE
$2.55 / 1M tokens
CACHE READ
$0.16 / 1M tokens
REASONING
Supported
DATA RETENTION
Standard retention
DEDICATED DEPLOYMENT
Enterprise · single-tenant
SUPPORTED PARAMETERS
max_tokenstemperaturestoptoolstool_choicereasoninginclude_reasoning