Z.ai · Released Jun 16, 2026

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,...

ReasoningOpen weights
  • Top 13%SWE-bench Verified
  • Top 19%Vending-Bench 2
  • Top 19%GPQA Diamond
  • Top 19%CritPt
Released
Jun 16 2026
Context window
1M 944K out
Input / 1M tokens
$0.034 from Free
Output / 1M tokens
$7.00 from Free

Where to run it

100 providers compared

Free to try on UnoRouter, SenseNova (China), AIHubMix — free endpoints are often limited-time and rate-limited. Included in SCNet Token Plan, Alibaba Token Plan, Z.AI Coding Plan, Alibaba Token Plan (China), OpenCode Go. Cheapest: DeepInfra at $0.45 / $1.44 per 1M input / output tokens — 86% less than the priciest option.

ProviderInputOutputCache readContextMax outputUptimevs. best
UnoRouterfree · may be limited-time Free Free —1M131K— Free
SenseNova (China)free · may be limited-time Free Free Free1M131K— Free
AIHubMixfree · may be limited-time Free Free —1M131K— Free
SCNet Token Plansubscription plan Plan Plan Plan1M131K— Plan
Alibaba Token Plansubscription plan Plan Plan Plan1M131K— Plan
Z.AI Coding Plansubscription plan Plan Plan Plan1M131K— Plan
Alibaba Token Plan (China)subscription plan Plan Plan Plan1M131K— Plan
OpenCode Gosubscription plan Plan Plan Plan1M131K— Plan
DeepInfraFP4 $0.45 $1.44 $0.0841M164K97.8%24h Cheapest
Boundless $0.34 $2.30 $0.171M131K— +19%
SCX.ai $0.55 $1.78 $0.111M131K— +23%
DeepInfraFP4 $0.56 $1.80 $0.101M164K100%24h +25%
Standard Compute $0.56 $1.80 $0.101M50K— +25%
engy $0.68 $1.50 $0.18262K33K— +27%
StreamLakeFP8 $0.61 $1.93 $0.111.02M128K100%24h +35%
DevPass (LLM Gateway) $0.60 $2.12 $0.151M131K— +41%
NovitaFP8 $0.65 $2.04 $0.121M131K100%24h +43%
CoreWeaveFP4 $0.62 $2.42 $0.141M944K99.7%24h +53%
Kenari $0.29 $3.43 $0.0531M131K— +54%
SiliconFlowFP8 $0.70 $2.20 $0.131M262K100%24h +54%
DigitalOcean $0.70 $2.20 $0.101M131K99.9%24h +54%
InceptronFP4 $0.62 $2.52 $0.141M944K99.8%24h +57%
routing.run $0.80 $2.40 —200K32K— +72%
Vercel AI Gateway $0.80 $2.55 $0.161M128K— +77%
Requesty $0.80 $2.55 $0.161M131K— +77%
MorphFP8 $0.23 $4.40 $0.0581M944K99.1%24h +83%
Relace $0.40 $4.00 $0.081M131K100%24h +86%
Vultr $0.75 $3.00 —1M131K— +88%
Lilac $0.90 $3.00 $0.27524K524K— +104%
AtlasCloudFP8 $0.94 $2.95 $0.171M131K100%24h +107%
AlibabaFP8 $0.97 $3.04 $0.191M131K98.4%24h +113%
Cortecs $0.90 $3.24 $0.191M1M— +113%
Merge Gateway $1.05 $3.30 $0.201M131K— +131%
PhalaFP8 $1.26 $3.00 $0.221M131K0%24h +143%
Alibabaus-east-1 · FP8 $1.12 $3.52 $0.221M131K94.7%24h +147%
ai& $1.00 $4.00 $0.301M131K— +151%
Waferus · FP4 $0.034 $7.00 $0.0331M944K100%24h +155%
Alibaba (China) $1.10 $3.85 $0.281M128K— +156%
AIHubMix $1.13 $3.94 $0.281M131K— +163%
DInference $1.25 $3.89 —1M128K— +174%
Chutes $1.25 $3.95 $0.131M66K— +176%
Volcengine Ark $1.19 $4.16 $0.301M131K— +177%
Zhipu AI $1.20 $4.18 $0.301M131K— +178%
SiliconFlow (China) $1.20 $4.18 $0.301.05M262K— +179%
Vivgrid $1.20 $4.20 $0.301M128K— +180%
Ambient $1.20 $4.20 $0.26203K203K— +180%
CrossModel $1.20 $4.40 $0.301M128K— +187%
WaferFP4 $0.19 $8.00 $0.181M944K99.9%24h +207%
Cloudflare $0.19 $8.00 $0.19262K236K99.9%24h +207%
BaseTenus · FP8 $1.40 $4.40 $0.141M262K100%24h +208%
BaiduFP8 $1.40 $4.40 $0.261M131K100%24h +208%
BaseTenFP8 $1.40 $4.40 $0.141M262K100%24h +208%
VeniceFP8 $1.40 $4.40 $0.261M131K100%24h +208%
GMICloudFP8 $1.40 $4.40 $0.261M944K100%24h +208%
Friendli $1.40 $4.40 $0.261M944K100%24h +208%
Z.AIFP8 $1.40 $4.40 $0.261M131K100%24h +208%
Together $1.40 $4.40 $0.261.05M944K99.6%24h +208%
Mistralzdr · NVFP4 $1.40 $4.40 $0.141M131K97.9%24h +208%
ParasailFP4 $1.40 $4.40 $0.26262K236K96.4%24h +208%
NebiusFP4 $1.40 $4.40 $0.141M944K94.7%24h +208%
NanoGPT $1.40 $4.40 $0.701M131K— +208%
Venice AI $1.40 $4.40 $0.261M131K— +208%
Kilo Gateway $1.40 $4.40 $0.261M944K— +208%
LLM Gateway $1.40 $4.40 $0.261M131K— +208%
HPC-AI $1.40 $4.40 $0.261M131K— +208%
TokenGo $1.40 $4.40 $0.261M131K— +208%
Nebius Token Factory $1.40 $4.40 $1.401M1M— +208%
Databricks $1.40 $4.40 $0.261M131K— +208%
Arcee $1.40 $4.40 $0.26262K131K— +208%
Together AI $1.40 $4.40 $0.261.05M164K— +208%
302.AI $1.40 $4.40 $0.261M131K— +208%
Jalapeno Cloud $1.40 $4.40 $0.261M131K— +208%
ZenMux $1.40 $4.40 $0.261M128K— +208%
Synthetic $1.40 $4.40 $1.40524K66K— +208%
Novita AI $1.40 $4.40 $0.261M131K— +208%
ClinePass $1.40 $4.40 $0.261M131K— +208%
Vertex $1.40 $4.40 $0.141M64K— +208%
Neon $1.40 $4.40 $0.261M66K— +208%
Crusoe $1.40 $4.40 $0.261M131K— +208%
Abacus $1.40 $4.40 $0.261M131K— +208%
Tempr Gateway $1.40 $4.40 $0.141M131K— +208%
Hugging Face $1.40 $4.40 —262K131K— +208%
Ollama Cloud $1.40 $4.40 $0.26976K131K— +208%
Cloudflare Workers AI $1.40 $4.40 $0.26262K256K— +208%
Ofox $1.40 $4.40 $0.261M131K— +208%
Impossibl $1.40 $4.40 $0.141M131K— +208%
OrcaRouter $1.40 $4.40 $0.261M131K— +208%
OpenCode $1.40 $4.40 $0.261M131K— +208%
EmpirioLabs AI $1.40 $4.40 $1.401M131K— +208%
Eden AI $1.40 $4.40 $0.261M131K— +208%
Neuralwatt $1.45 $4.50 $0.141.05M1.05M— +217%
TensorX $1.50 $4.50 $0.381M131K— +223%
Charm Hyper $1.52 $4.79 $0.151M33K— +236%
Mistraleu $1.54 $4.84 $0.151M128K100%24h +239%
Berget.AI $1.54 $4.84 —524K33K— +239%
Prime Inference $1.54 $4.84 —1M944K— +239%
above.dev $1.54 $4.84 $0.151M131K— +239%
UnoRouter $1.60 $5.03 —1M131K— +252%
evroc $1.44 $5.75 —524K131K— +261%
GreenPT $1.74 $5.16 $0.451M131K— +272%
Opper $1.63 $5.81 —1M131K— +283%
AI/ML API $1.82 $5.72 $0.341M131K— +301%
Decartfast · FP4 $1.20 $8.00 $0.481M944K100%24h +316%
Scaleway $2.02 $6.17 —256K16K— +338%
BaseTenus/fast · FP8 $2.10 $6.60 $0.211M262K99.9%24h +362%
BaseTenfast · FP8 $2.10 $6.60 $0.211M262K99.9%24h +362%
Pioneer $2.10 $6.60 $0.211M128K— +362%
Regolo AI $2.31 $6.00 —96K96K— +363%
Alibabafast · FP8 $2.31 $7.26 $0.461M131K90.7%24h +409%
Baidufast · FP4 $2.25 $7.88 $0.561M131K100%24h +424%
CommandCode $3.00 $10.25 $0.501M131K— +590%

Value

Price vs. performance

On the value frontierNo cheaper model beats GLM 5.2 on GPQA Diamond.
23.2%47.6%72.0%96.4% $0.001$0.01$0.10$1.00$10.00$100.00 DeepSeek V4.1 Flash 1017 (DeepSeek) — 93.2% · $0.15/1M in Gemini 4 Argon (Google) — 96.4% · $2.00/1M in Claude Haiku 5.5 (Anthropic) — 89.6% · $0.10/1M in Mistral Large 4 (Mistral) — 88.1% · $1.36/1M in GPT-6.1 Sol (OpenAI) — 95.4% · $2.00/1M in Claude Sonnet 5.5 (Anthropic) — 95.6% · $2.00/1M in GPT-6 Luna (OpenAI) — 90.5% · $0.10/1M in GPT-6 Sol (OpenAI) — 94.3% · $2.00/1M in Claude Opus 5.5 (Anthropic) — 90.6% · $4.00/1M in Grok 4.7 (xAI) — 92.7% · $2.00/1M in DeepSeek V4.1 Flash (DeepSeek) — 93.2% · $0.30/1M in GPT-6 Astra (OpenAI) — 95.8% · $10.00/1M in Qwen3.8 Max (0902) (Qwen) — 92.7% · $2.00/1M in Gemini 3.8 Flash (Google) — 95.4% · $0.82/1M in Gemini 3.7 Flash (Google) — 94.8% · $0.75/1M in DeepSeek V4 Pro 0813 (DeepSeek) — 91.7% · $0.66/1M in Grok 4.6 (xAI) — 94.0% · $2.00/1M in DeepSeek V4 Flash 0731 (DeepSeek) — 91.0% · $0.44/1M in Qwen3.7 Flash (Qwen) — 82.3% · $0.03/1M in Claude Opus 5 (Anthropic) — 93.9% · $5.00/1M in Gemini 3.6 Flash (Google) — 94.1% · $0.75/1M in Gemini 3.5 Flash Lite (Google) — 83.3% · $0.30/1M in Kimi K3 (Moonshot AI) — 93.1% · $0.24/1M in GPT-5.6 Luna (OpenAI) — 91.6% · $0.20/1M in GPT-5.6 Terra (OpenAI) — 93.3% · $2.00/1M in GPT-5.6 Sol (OpenAI) — 93.5% · $4.00/1M in Grok 4.5 (xAI) — 93.4% · $2.00/1M in Claude Sonnet 5 (Anthropic) — 90.5% · $2.00/1M in Kimi K2.7 Code (Moonshot AI) — 87.9% · $0.67/1M in Claude Fable 5 (Anthropic) — 85.9% · $10.00/1M in Qwen3.7 Plus (Qwen) — 87.9% · $0.32/1M in MiniMax M3 (MiniMax) — 90.9% · $0.30/1M in Claude Opus 4.8 (Anthropic) — 91.0% · $5.00/1M in Qwen3.7 Max (Qwen) — 90.9% · $1.48/1M in Gemini 3.5 Flash (Google) — 92.8% · $1.50/1M in Gemini 3.1 Flash Lite (Google) — 81.8% · $0.25/1M in Grok 4.3 (xAI) — 88.8% · $1.25/1M in Qwen3.5 Plus 2026-04-20 (Qwen) — 84.9% · $0.30/1M in Qwen3.6 Flash (Qwen) — 83.3% · $0.19/1M in Qwen3.6 35B A3B (Qwen) — 84.9% · $0.10/1M in Qwen3.6 27B (Qwen) — 85.9% · $0.25/1M in GPT-5.5 (OpenAI) — 90.7% · $5.00/1M in DeepSeek V4 Pro 0423 (DeepSeek) — 91.7% · $0.95/1M in DeepSeek V4 Flash 0423 (DeepSeek) — 91.0% · $0.091/1M in Kimi K2.6 (Moonshot AI) — 90.8% · $0.65/1M in Claude Opus 4.7 (Anthropic) — 90.1% · $5.00/1M in Gemma 4 26B A4B (Google) — 73.2% · $0.09/1M in Gemma 4 31B (Google) — 75.8% · $0.20/1M in Qwen3.6 Plus (Qwen) — 88.4% · $0.33/1M in GPT-5.4 Nano (OpenAI) — 78.5% · $0.20/1M in GPT-5.4 Mini (OpenAI) — 86.9% · $0.75/1M in Mistral Small 4 (Mistral) — 47.5% · $0.15/1M in Qwen3.5-9B (Qwen) — 79.0% · $0.08/1M in GPT-5.4 Pro (OpenAI) — 94.6% · $30.00/1M in GPT-5.4 (OpenAI) — 93.3% · $2.50/1M in Gemini 3.1 Flash Lite Preview (Google) — 81.8% · $0.25/1M in Qwen3.5-35B-A3B (Qwen) — 83.5% · $0.14/1M in Gemini 3.1 Pro Preview (Google) — 94.4% · $2.00/1M in Claude Sonnet 4.6 (Anthropic) — 87.4% · $3.00/1M in Qwen3.5 397B A17B (Qwen) — 86.4% · $0.50/1M in Claude Opus 4.6 (Anthropic) — 90.5% · $5.00/1M in Gemini 3 Flash Preview (Google) — 89.4% · $0.50/1M in GPT-5.2 (OpenAI) — 91.4% · $1.75/1M in Ministral 3 8B 2512 (Mistral) — 27.2% · $0.15/1M in Ministral 3 3B 2512 (Mistral) — 25.3% · $0.10/1M in Mistral Large 3 2512 (Mistral) — 51.3% · $0.50/1M in Claude Opus 4.5 (Anthropic) — 86.1% · $5.00/1M in GPT-5.1 (OpenAI) — 87.6% · $1.25/1M in Claude Haiku 4.5 (Anthropic) — 71.2% · $1.00/1M in Claude Sonnet 4.5 (Anthropic) — 82.3% · $3.00/1M in GPT-5 (OpenAI) — 86.2% · $1.25/1M in GPT-5 Mini (OpenAI) — 75.0% · $0.25/1M in GPT-5 Nano (OpenAI) — 69.4% · $0.05/1M in gpt-oss-120b (OpenAI) — 75.8% · $0.15/1M in gpt-oss-20b (OpenAI) — 60.8% · $0.018/1M in Claude Opus 4.1 (Anthropic) — 77.3% · $15.00/1M in Qwen3 30B A3B Instruct 2507 (Qwen) — 55.6% · $0.09/1M in Qwen3 235B A22B Thinking 2507 (Qwen) — 80.0% · $0.45/1M in Qwen3 235B A22B Instruct 2507 (Qwen) — 70.7% · $0.09/1M in Gemini 2.5 Pro (Google) — 85.3% · $1.25/1M in Gemini 2.5 Pro Preview 06-05 (Google) — 85.3% · $1.25/1M in R1 0528 (DeepSeek) — 76.3% · $0.50/1M in Qwen3 30B A3B (Qwen) — 61.7% · $0.12/1M in Qwen3 14B (Qwen) — 63.8% · $0.12/1M in Qwen3 32B (Qwen) — 65.7% · $0.08/1M in o3 (OpenAI) — 81.8% · $2.00/1M in o4 Mini (OpenAI) — 79.6% · $1.10/1M in GPT-4.1 (OpenAI) — 66.9% · $2.00/1M in GPT-4.1 Mini (OpenAI) — 65.8% · $0.40/1M in GPT-4.1 Nano (OpenAI) — 48.9% · $0.10/1M in Gemma 3 4B (Google) — 23.2% · $0.04/1M in Gemma 3 12B (Google) — 39.5% · $0.05/1M in Gemma 3 27B (Google) — 47.7% · $0.08/1M in Qwen-Plus (Qwen) — 48.1% · $0.26/1M in o3 Mini (OpenAI) — 77.0% · $1.10/1M in Phi 4 (Microsoft) — 56.1% · $0.07/1M in DeepSeek V3 (DeepSeek) — 71.2% · $0.26/1M in o1 (OpenAI) — 76.8% · $15.00/1M in Llama 3.3 70B Instruct (Meta) — 47.4% · $0.10/1M in GPT-4o (2024-11-20) (OpenAI) — 49.2% · $2.50/1M in Mistral Large 2407 (Mistral) — 51.3% · $2.00/1M in Llama 3.2 1B Instruct (Meta) — 23.9% · $0.027/1M in GPT-4o (2024-08-06) (OpenAI) — 49.2% · $2.50/1M in Llama 3.1 70B Instruct (Meta) — 44.2% · $0.40/1M in Llama 3.1 8B Instruct (Meta) — 27.0% · $0.05/1M in GPT-4o-mini (OpenAI) — 37.7% · $0.15/1M in GPT-4o-mini (2024-07-18) (OpenAI) — 37.7% · $0.15/1M in Gemma 2 27B (Google) — 36.5% · $0.65/1M in GPT-4o (OpenAI) — 49.2% · $2.50/1M in GPT-4o (2024-05-13) (OpenAI) — 49.2% · $5.00/1M in GPT-4 Turbo (OpenAI) — 46.6% · $10.00/1M in Mistral Large (Mistral) — 51.3% · $2.00/1M in GPT-3.5 Turbo (older v0613) (OpenAI) — 28.0% · $1.00/1M in GPT-3.5 Turbo (OpenAI) — 28.0% · $0.50/1M in GPT-4 (OpenAI) — 35.7% · $30.00/1M in GLM 5.3 Flash (Z.ai) — 90.1% · $0.005/1M in GLM 5.3 (Z.ai) — 90.9% · $0.079/1M in GLM 5.1 (Z.ai) — 89.9% · $1.40/1M in GLM 5 (Z.ai) — 87.8% · $1.00/1M in GLM 4.7 Flash (Z.ai) — 60.5% · $0.061/1M in GLM 4.7 (Z.ai) — 83.3% · $0.54/1M in GLM 5.2 (Z.ai) — 91.9% · $0.034/1M in GLM 5.2

GLM 5.2 Other Z.ai Other labs Value frontier · GPQA Diamond vs. input price per 1M tokens (log scale) · Drag to pan, pinch or Ctrl + scroll to zoom, double-click to zoom in.

Benchmarks

21 benchmark scores

BenchmarkScoreRankLeader
DeepSWESoftware engineering · Original long-horizon tasks across active open-source repos 43.8% #22of 26 GPT-6 Astra74.1%
FrontierCodeSoftware engineering · Mergeable fixes for hard open-source issues 24.5% #36of 41 Claude Opus 5.554.6%
SWE-bench VerifiedSoftware engineering · Real GitHub issues fixed in Python repos 78.7% #4of 32 Claude Opus 4.783.5%
GBAEvalSoftware engineering · Build a Game Boy Advance emulator from scratch 0.0% #21of 23 Claude Opus 579.6%
SciCodeSoftware engineering · Research-coding problems from the natural sciences 51.2% #43of 102 Claude Opus 5.566.9%
APEX-AgentsAgents & computer use · Long professional tasks in banking, consulting and law 45.2% #35of 51 Gemini 4 Argon82.4%
Vending-Bench 2Agents & computer use · Run a simulated vending business for a year (final balance) $8,314 #11of 61 GPT-6 Astra$15,515
PostTrainBenchAgents & computer use · Post-train small models under a fixed compute budget 31.7% #6of 11 Claude Fable 541.8%
SimpleQA VerifiedWriting & content · Factual accuracy on 1,000 short questions 34.2% #51of 79 Gemini 4 Argon76.0%
WebDev ArenaDesign & visual · People vote on which model builds the better website (Elo) 1593 #22of 90 Claude Opus 5.51820
GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions 91.9% #23of 122 Gemini 4 Argon96.4%
ARC-AGI-2Reasoning & knowledge · Few-shot abstract reasoning on grid puzzles 22.8% #44of 75 GPT-6 Astra95.0%
ARC-AGI-1Reasoning & knowledge · Pattern induction from input–output examples 77.0% #44of 75 Gemini 4 Argon98.5%
SimpleBenchReasoning & knowledge · Common-sense trick questions about space, time and people 58.8% #24of 58 Claude Fable 581.9%
CritPtReasoning & knowledge · Open-ended, research-level physics problems 20.9% #20of 111 GPT-5.6 Sol32.3%
Chess PuzzlesReasoning & knowledge · Find the single best move in 100 new puzzles 22.0% #55of 83 GPT-6 Astra76.0%
LMCAReasoning & knowledge · Judge the quality of conceptual arguments like experts 45.8% #36of 123 Claude Sonnet 5.568.3%
FrontierMathMaths · Expert-written problems, undergrad to early research (tiers 1–3) 59.2% #39of 87 GPT-6.1 Sol93.7%
FrontierMath Tier 4Maths · Exceptionally hard research-level problems 29.3% #31of 64 GPT-6.1 Sol100.0%
ProofBenchMaths · Graduate maths proofs verified in Lean 4 35.0% #43of 70 Claude Sonnet 5.5100.0%
OTIS Mock AIMEMaths · Competition-style problems harder than MATH Level 5 86.4% #61of 120 Gemini 4 Argon100.0%

Specs

Details

Model ID
z-ai/glm-5.2
Developer
Z.ai
Release date
Jun 16, 2026 ·
Context window
1,048,576 tokens
Max output
943,718 tokens
API price
$0.034 / $7.00 per 1M input / output tokens
Providers
100
Input types
text
Reasoning
Yes
Tool calling
Yes
Open weights
Yes
Free tier
No

Release date and prices from OpenRouter's catalog; providers from OpenRouter and models.dev. Buying directly from a provider can cost a little differently. Speed, latency and uptime are measured on OpenRouter only; uptime is the share of OpenRouter requests each provider served over the last day. Benchmark scores are the best result per benchmark from Epoch AI, licensed CC BY 4.0. Rank counts every model tracked here with a score.