Skip to content
TokenCenter Get API key

Models / Z.ai

Z.aiAvailable on TokenCenter

GLM 5.2

z-ai/glm-5.2

GLM 5.2 is a large-scale reasoning model from Z.ai.

Key facts

Input price
$0.62 / 1M tokens
Output price
$2.42 / 1M tokens
Context window
1M tokens
Max output
944K tokens
Accepts
Text
Returns
Text

Example: 1,000 requests with 1,000 input and 500 output tokens each would cost about $1.83 (1M input tokens × $0.62 + 0.5M output tokens × $2.42). Estimate your own usage.

Prices are the provider’s own per-token rates with zero markup, from our price list as of Oct 18, 2026. If a call has extra provider charges (images, audio, web search, cached prompts), you pay the reported cost.

Call it from your code

curl https://api.tokenctr.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENCENTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Hello!"}]}'

Works with any OpenAI-compatible SDK: set the base URL to https://api.tokenctr.com/v1. Quickstart

Benchmarks

Artificial Analysis

Intelligence index
33.7
Coding index
68.8
Agentic index
38.4

Design Arena

CategoryRankEloWin rate
Agents: Agentic game dev10120549%
Agents: Full-stack12124160.5%
Agents: HTML slides13117549.5%
Agents: Web apps15121556%
Agents: Android native16119353.2%
Agents: Slides (python-pptx)16119448.7%
Models: Data visualization16128752%
Models: 3D20128853.3%
Models: Code20129050.4%
Models: UI components20129555.2%
Models: Websites20128749.5%
Agents: Godot game dev22114240.1%
Models: SVG22121448.8%
Agents: Mobile apps25115648.1%
Models: Game dev25127149.5%
Models: ASCII art27119546%

Source: Artificial Analysis indexes and Design Arena results as published in OpenRouter’s model data, fetched Oct 15, 2026. Higher is better. Not measured by TokenCenter. See all rankings.

Supported request parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p