Models›Z.ai›GLM 5.2

GLM 5.2

by Z.ai · released Jun 16, 2026 · 33 providers
Model IDz-ai/glm-5.2
ReasoningTool callingStructured outputsOpen weights · MIT1.05M context

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

MODEL PRICING

Standard pricing

Run this model at its standard rate. Cheap mode currently has no separate discount.

Input tokens$0.0063per 1 million tokens
Output tokens$7.14per 1 million tokens

API routing ceilings, including your 5% Free-plan fee. Included usage applies first, then prepaid credits. Cached tokens and tools can have separate charges.

Other models with discounted rates

See all discounts →

These are different models. Cheap mode may be slower; discounts compare each model’s own standard rate.

Context
1.05M
tokens
Max output
128k
tokens per reply
Input
$0.006
provider baseline / 1M; fee applies
Output
$6.80
provider baseline / 1M; fee applies

Choose how to use GLM 5.2

Playground

Try prompts in your browser, create an agent, and see the cost of each reply. Your selected model carries into setup.

Model capabilities below describe the underlying model. Available playground features depend on its provider.

API

Connect your app with a Gizmo API key. Choose fastest or cheapest, stream text responses, and inspect timing, tokens, and charges in request logs.

A current API route is listed for this exact model. Gateway configuration is required for live calls.

Provider price + a transparent platform fee

RateProvider baselineFree plan · 5% feePaid plan · 4% fee
Input / 1M tokens$0.006$0.0063$0.00624
Output / 1M tokens$6.8$7.14$7.072
API input / 1M tokens$0.006$0.0063$0.00624
API output / 1M tokens$6.8$7.14$7.072

Legacy chat image rates use the catalog baseline. The dedicated image playground shows separate estimates and settles the provider’s metered usage. API rates are current routing ceilings; final API charges use provider-reported cost plus your fee. Cheapest routing compares eligible OpenRouter and Cheaper Inference rates for the same model; savings are not guaranteed. Cached input or other provider charges may differ. Compare all model rates and verified discounts →

How your plan pays for usage

API and playground share one included allowance. Usage including the fee draws from that allowance first, then your prepaid credits. Plans bill monthly; included usage resets weekly: Free $1, Starter $5, Growth $25, Scale $50.

A $1 provider charge becomes $1.05 on Free or $1.04 on a paid plan before included usage is applied. Plan eligibility still applies in the playground.

Free models and limits

Zero-cost models stay $0, including the fee, and do not consume your dollar allowance. Free accounts can make 1,000 free-model API requests per calendar month, resetting in UTC. Admitted requests count even if the provider fails.

Free includes 20 API requests/minute and 6 playground messages/minute. Paid plans raise these limits. See plan limits.

Before a text API request, Gizmo temporarily reserves included usage and, if necessary, prepaid credit for the model’s full context plus your maximum output. Image jobs reserve twice their displayed estimate. Unused funds return after metering. This hold can exceed the final charge; unconfirmed usage remains marked pending.

Overview

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, and complex multi-step automation.

Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.

Benchmarks

Artificial Analysis indices independent, 0–100

Coding
68.8
Agentic
39.4

Design Arena head-to-head, human-voted

CategoryEloWin rateRank
Code131555%#9
Data viz131554.3%#9
Agentic game dev (agent)120949.4%#10
Full-stack agents (agent)124761.2%#10
3D scenes132756%#10
Websites131055.3%#10
htmlslides (agent)117849.6%#12
Web apps (agent)124256.4%#12

Benchmark from the model card

BenchmarkGLM-5.2GLM-5.1Qwen3.7-MaxMiniMax M3DeepSeek-V4-ProClaude Opus 4.8GPT-5.5
Reasoning
HLE40.53141.43737.749.8*41.4*
HLE (w/ Tools)54.752.353.5-48.257.9*52.2*
CritPt20.94.613.43.712.920.927.1
AIME 202699.295.397-94.695.798.3
HMMT Nov. 202594.4949584.494.496.596.5
HMMT Feb. 202692.582.697.184.495.296.796.7
IMOAnswerBench91.083.890-89.883.5-
GPQA-Diamond91.286.2909390.193.693.6
Coding
SWE-bench Pro62.158.460.65955.469.258.6
NL2Repo48.942.747.242.135.569.750.7
DeepSWE46.218182085870
ProgramBench63.750.9--47.871.970.8
Terminal Bench 2.1 (Terminus-2)81.063.57565648584
Terminal Bench 2.1 (Best Reported Harness)82.769---78.983.4
FrontierSWE (Dominance)74.430.5--29.075.172.6
PostTrainBench34.320.1---37.228.4
SWE-Marathon13.01.0---26.012.0
Agentic
MCP-Atlas (Public Set)76.871.876.474.273.677.875.3
Tool-Decathlon48.240.7--52.859.955.6

Capabilities

Input
✍️ Text
Output
✍️ Text
✓ Tool calling✓ Structured outputs✓ JSON mode✓ Reasoning✓ Reasoning traces✓ Parallel tool calls✓ Seeded sampling✓ Log probabilities✓ Stop sequences✓ Logit bias

Reasoning is on by default with effort levels xhigh · high (default high).

Sampling controls: temperature, top_p, top_k, min_p, max_tokens, frequency_penalty, presence_penalty, repetition_penalty. Defaults: top_k null, top_p 0.95, temperature 1, presence_penalty null, frequency_penalty null, repetition_penalty null.

Pricing on Gizmo

These are provider baseline rates before Gizmo’s 5% Free-plan or 4% paid-plan fee. Your included usage covers charges first; overage uses prepaid credits. See the fee-inclusive comparison above.

Provider baseline rates

Input
$0.006 / 1M
Cached input
$0.052 / 1M
Output
$6.80 / 1M

Examples before the platform fee

Typical chat turn
$0.0034 2k in · 500 out
$1 of input
≈ 166.67M tokens
$1 of output
≈ 147k tokens
Full context, once
$0.0063
Paid plans. This model is above the free tier’s price ceiling. Starter ($20/mo) covers $5 of usage weekly, Growth $25, Scale $50; every paid plan includes $25 in bonus credits.

Providers and pricing

One way to run GLM 5.2 on Gizmo.

ProviderRouteInput / 1MOutput / 1MContextUptime 24h
Wafer · usLowest priceOpenRouter$0.006$6.801.05M100%

Rates are each provider’s, per million tokens, before Gizmo’s 5% (Free) or 4% (paid) fee. “Cheapest” routing starts at the top of this list; “Fastest” starts with the model’s maker.

Run GLM 5.2 in under a minute

1

Create your account

Sign up with just an email. Start on the free tier with no card, or pick a paid plan for a bigger weekly allowance and $25 in bonus credits.

2

Your agent is ready

GLM 5.2 is preselected as the brain of your first agent. Give it a name and a system prompt, or keep the defaults.

3

Chat, research, create

Live web research and image generation are built in. Every reply shows what it cost, and you can switch models anytime.

Sources. OpenRouter · Hugging Face · Artificial Analysis · Design Arena · Z.ai documentation. Verified Sep 9, 2026. Baseline prices are the provider’s list prices at sync time. Gizmo adds a 5% fee on Free or 4% on paid plans; included usage is applied before overage credits.