Z.ai, released Jun 16, 2026

GLM 5.2

GLM 5.2 is a big text-only reasoning model from Z.ai, built for multi-step agent runs and heavy software engineering across large codebases. It sits right between the older, pricier GLM 5.1 and the newer GLM 5.3 lineup, which has since brought cheaper options like GLM 5.3 and GLM 5.3 Flash alongside the more expensive GLM 5.3 Prime. It's also an open-weights release, so you aren't locked into calling it through an API forever.

Already paying for ChatGPT or Claude?

GLM 5.2 costs $5.80 per 1M output tokens. Use GPT-6 and Claude through your plan instead, $0 per token.

Get your API key Free plan, no card needed

Updated

GLM 5.2 pricing and specs

Input
$0.007per 1M tokens
Output
$5.80per 1M tokens
Cached input
$0.006per 1M tokens
Context window
1M1,048,576 tokens
Max output
944K943,718 tokens
Released
Jun 16, 2026
Accepts
Text
Features
Tool callingReasoningStructured outputsOpen weights

What GLM 5.2 is good at

  • Long-running agent loops that call tools and carry a lot of state, with tool calling built in and a huge context window that lets you keep a whole session in memory without constantly pruning it.
  • Big codebase edits where you need to pass in a ton of files and get a massive reply back in one go (its output cap is nearly as large as the input window).
  • Strict data extraction or API workflows - it handles structured JSON output natively.
  • Prototyping on an API when you might want to self-host later, with the open weights published as zai-org/GLM-5.2.

Good to know

  • Reasoning is turned on by default. You can dial it down when you don't need it, which is worth remembering before you wire it into simpler tasks.
  • It only takes text. If your workflow involves images or other media, look elsewhere.
  • Z.ai shipped the GLM 5.3 family after this one, and GLM 5.3, GLM 5.3 Flash and GLM 5.3 FlashX all come in cheaper on both input and output, with only GLM 5.3 Prime sitting higher. So it's worth checking the newer 5.3 models before you commit.

GLM 5.2 vs similar models

API price per 1M tokens
ModelInputOutputPlan2APIContext
GLM 5.2$0.007$5.80Not available1M
GLM 5.4$1.40$4.40Not available1M
GLM 5.3 FlashX Legal$0.37$1.25Not available1M
GLM 5.3 Prime$1.68$5.28Not available1M
GPT-6.1 Terra$1$5$0 on ChatGPT1.1M
Pixtral Large 2502$2$6Not available128K

GLM 5.2 cost per month

Tokens a month at $0.007 input and $5.80 output per 1M
WorkloadAPI price
Side project2M in, 500K out$2.91
Production app25M in, 5M out$29.18
Agents at scale250M in, 50M out$292

FAQ

How much does the GLM 5.2 API cost?

GLM 5.2 costs $0.007 per 1M input tokens and $5.80 per 1M output tokens, and cached input costs $0.006 per 1M.

What is the GLM 5.2 context window?

GLM 5.2 takes 1,048,576 tokens of context, with up to 943,718 output tokens per request.

When was GLM 5.2 released?

Z.ai released GLM 5.2 on Jun 16, 2026.

Can I use GLM 5.2 with my subscription?

Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6 and Claude models run through your ChatGPT or Claude plan at $0 per token instead.

Is reasoning always on?

By default, yes. You can turn it down if a prompt doesn't need it, though, so you aren't stuck running full reasoning on every single call.

Can I self-host GLM 5.2?

Yes, it's an open-weights model, published under zai-org/GLM-5.2. You can test it through an API first and move it onto your own hardware later if you want.

More Z.ai models

All 18 Z.ai models

Already paying for ChatGPT or Claude? Use GPT-6 and Claude through your plan, $0 per token.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

GPT-6 and Claude at $0 per tokenFree plan, no card needed

Get your API key

Guides

80