Z.aiReasoningReleased 16 June 2026

GLM 5.2 pricing, context and benchmark

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

1.05M
Input context
944K
Output context
$0.0066
Official input
$7.983
Official output
n/a
AA index

Everything that matters, in one table

Context, pricing, cache, modalities and tooling, from the model registry and Artificial Analysis.

ModelGLM 5.2
Model IDz-ai/glm-5.2
ProviderZ.ai
Release date16 June 2026
StatusGenerally available
Input context1,048,576 tokens
Output context943,718 tokens
Official input pricing$0.0066 per 1M tokens
Official output pricing$7.983 per 1M tokens
Cache read pricing$0.266 per 1M tokens (81% off input)
Market input pricing$0.0066 per 1M (cheapest route)
Market output pricing$7.983 per 1M (cheapest route)
Highest route pricing$0.19 in, $8 out per 1M
Input modalitiestext
Output modalitiestext
Reasoning controlNot exposed
Tool supportText generation only
TokenizerOther
Provider routes8 endpoints
Artificial Analysis indexNot published
Speed78 tokens/s, 26.13s to first token
Knowledge cutoffNot publicly stated

Input and output support

ModalityInputOutputBilled at
Text✓ yes✓ yes$0.0066 in
Imagenononot supported
Audionononot supported
Videonononot supported
File (PDF)nononot supported

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

GLM 5.2 carries a 1.05M token window, uses the Other tokenizer and is served by Z.ai. On Hoodgen it sits in the Reasoning tier of the model menu next to its siblings, so you can switch mid conversation without losing the thread.

Release and what changed from the previous version

Released16 June 2026
PropertyGLM 5.1GLM 5.2Change
Released20262026Same release window
Context205K1.05MChanged
Max output182K944KChanged
Input price$0.9$0.0066Cheaper
Output price$2.9$7.983Higher
Input modalitiestexttextUnchanged
AA indexn/an/aNewer benchmark run

Features and capabilities

⚡
Prompt caching
Cached input costs $0.266 per million instead of $0.0066, so stable prefixes get cheaper.

What can you do with GLM 5.2?

Debugging and root cause
Multi file failures where the model has to hold a causal chain before answering.
Architecture and planning
Design docs, migration plans and trade off analysis over long context.
Data analysis
Spreadsheets and logs read in one pass, then summarised with the numbers quoted back.
Agentic coding
Repo wide changes that need plan, edit and verify loops.

Prompt caching and how to cut the bill

Cached input bills at $0.266 per million instead of $0.0066, a 81% discount. Keep the system prompt and documents first and the changing question last, so every call hits the cache.

GLM 5.2 pricing

Official pricing

List price
$0.0066 / 1M in
$7.983 / 1M out
  • $0.266 cached input
  • 1.05M context
  • text input
Cheapest route
$0.0066 / 1M in
$7.983 / 1M out
  • 8 routes on OpenRouter
  • What Hoodgen routes to first
  • Same model, lower bill
Highest route
$0.19 / 1M in
$8 / 1M out
  • Priority or premium tier
  • Best under load
  • Use for latency critical calls

Market pricing, every route

ProviderTierInputOutputCache readUptime 24h
Relacestandard$0.0066$7.983$0.006694.5%
Waferstandard$0.007$6.8$0.006100.0%
Waferstandard$0.19$8$0.18100.0%
Cloudflarestandard$0.19$8$0.19100.0%
DeepInfraflex$0.45$1.44$0.084100.0%
DeepInfrastandard$0.563$1.8$0.10599.9%
Ambientstandard$0.6$2$0.1585.1%
StreamLakestandard$0.613$1.927$0.114100.0%

API pricing and cost calculator

RatePer callTotalCredits
Cheapest route$0.0121$6.055751
List price$0.0152$7.617230
Highest route$0.0158$7.907505

API and developer information

Model IDz-ai/glm-5.2
Endpointhttps://openrouter.ai/api/v1/chat/completions
Parametersprompt and max_tokens
StreamingYes, server sent events
Modality stringtext->text
Max prompt tokens1,048,576
Max completion tokens943,718
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.2",
    "messages": [{ "role": "user", "content": "Summarise this document." }],
    "max_tokens": 1024
  }'

Model limitations

Text only outputIt cannot generate images, audio or video. Pair it with an image model on Hoodgen when you need visuals.
Output cap943,718 tokens per request. Long deliverables have to be chunked.
Benchmarks not publishedArtificial Analysis does not publish an Intelligence Index for this release, so no benchmark score is claimed here.
Knowledge cutoffThe provider does not state a fixed cutoff for every release. Verify very recent events against search.

GLM 5.2 vs other Z.ai models

ModelContextInput /1MOutput /1MAA indexReleased
GLM 5.21.05M$0.0066$7.983n/a2026
GLM 5.1205K$0.9$2.9n/a2026

Privacy and data policy

  • On Hoodgen, prompts and attachments answer that request and stay in your conversation history so you can reopen it. They are not used to train models.
  • Requests route through OpenRouter to Z.ai and are covered by that provider's API terms.
  • Do not paste secrets or personal data you would not send to any hosted model.

GLM 5.2 questions, answered

GLM 5.2 is a reasoning model from Z.ai, released 16 June 2026. GLM 5.2 is a large-scale reasoning model from Z.ai.
✦

Start chatting with GLM 5.2

Free to try on Hoodgen AI, with a live credit estimate before every send. No API key, no setup.