GLM-5.2 is the current Z.AI coding-model page to start from. Z.AI documents it as a flagship text model with 1M context, 128K maximum output, and the same public API price anchor as GLM-5.1: $1.40 input / $0.26 cached input / $4.40 output per 1M tokens.

The useful buyer claim is narrow: GLM-5.2 is a low-cost, long-context coding lane to test in supported tools. Treat Z.AI’s benchmark charts as vendor-published shortlist evidence, not proof that it will beat Claude, GPT, or Kimi in your repo.

Best next click: Z.AI GLM Coding Plan guide. For the Kimi alternative, use Kimi K2.7 Code.

Quick Facts

SpecGLM-5.2
ProviderZ.AI
Model IDglm-5.2
Input / outputText / text
Context window1M tokens
Max output128K tokens
API pricing$1.40 input / $0.26 cached input / $4.40 output per 1M tokens
Useful forLong-context coding, repo audits, agent workflows, supported-tool budget lane
CaveatVendor benchmark claims need local evals before production routing

What Changed From GLM-5.1

GLM-5.1 remains useful historical and prior-release context, but the current-facing search page should be GLM-5.2. The practical differences are:

QuestionGLM-5.2 answer
“Is this the newest GLM coding model?”Yes, based on current Z.AI docs.
“What is the big spec change?”1M context versus GLM-5.1’s earlier 200K guide context.
“Did API price go up?”Current public pricing lists GLM-5.2 at the same $1.40 / $4.40 anchor as GLM-5.1.
“Should I rewrite old GLM-5.1 mentions?”Only on current-facing discovery surfaces. Historical pages can keep GLM-5.1 context.

Pricing And Tool Fit

LanePrice anchorBest fitCaveat
GLM-5.2 API$1.40 input / $4.40 output per 1MAPI tests, long-context coding evals, OpenAI-compatible routingToken costs still compound in agent loops
GLM Coding PlanStarts at $18/monthSupported coding tools such as Claude Code, OpenCode, Cursor, Cline, Kilo Code, Roo Code, Goose, and related pathsSubscription quota applies only through supported tools/products
GLM-5.1Same public price anchorPrior-release context and existing integrationsNo longer the best current search destination

The Coding Plan is not a universal unlimited API plan. Use it when your tool path is supported and you can route advanced work to GLM-5.2 deliberately instead of burning quota on every small prompt.

GLM-5.2 vs Kimi K2.7 Code

Decision pointGLM-5.2Kimi K2.7 Code
Context1M256K-class
Output ceiling128KKimi docs default K2.7 Code max tokens to 32K
API pricing$1.40 input / $0.26 cached input / $4.40 output$0.19 cache-hit input / $0.95 cache-miss input / $4.00 output
Fast laneCoding Plan subscription pathK2.7 Code HighSpeed API at higher token prices
Best first testWhole-repo context and long-horizon refactorsKimi-native coding, multimodal tool calls, and cheaper cache-hit workloads

Use GLM-5.2 vs Kimi K2.6/K2.7 when you are choosing between Z.AI and Kimi for a cheap coding-model lane.

Eval Plan

Do not buy or route production on a vendor chart alone. A useful first pass:

TestWhat to ask GLM-5.2 to doPass signal
Repo auditRead project docs and map modules, contracts, and risksAccurate boundaries, no invented files, useful follow-up plan
Bug fixFix one real failing testSmall correct patch, no unrelated churn
RefactorMove logic across 2-4 filesPreserves behavior and follows local style
Long taskRun a multi-step cleanup in your coding toolMaintains context and validates with repo commands
ReviewReview another model’s patchConcrete, file-grounded issues instead of generic warnings

If GLM-5.2 passes these tasks, make it the budget lane for routine work and keep GPT or Claude for high-risk migrations, final arbitration, or compliance-sensitive review.

Sources


Last verified: June 20, 2026. Pricing, context limits, supported tools, quota multipliers, and invite terms can change quickly.