GPT Image 2.5 is live — OpenAI's newest image model, targeted edits that leave the rest of the frame alone

GLM-5.2 — 1M Lossless Context, Open-Weight Coding Flagship

GLM-5.2 is Z.AI's flagship foundation model, built for the era of long-horizon tasks. It reads a 1M-token context window that Z.AI describes as solid and lossless, writes up to 128K tokens back, thinks by default but lets you switch thinking off, and is the only model in the GLM family that takes a reasoning-effort control.

This page introduces the model. API access for this model is not currently available on reAPI. Browse the model catalog for available services.

Highlights
Thinking mode · reasoning effort dial · JSON output
Best for
Bilingual zh / en tasks, tool agents
Input
Chat messages (OpenAI-compatible)
Output
Text, streaming optional

What is the GLM-5.2 API?

GLM-5.2 is Z.AI's flagship foundation model, built for the era of long-horizon tasks. It reads a 1M-token context window that Z.AI describes as solid and lossless, writes up to 128K tokens back, thinks by default but lets you switch thinking off, and is the only model in the GLM family that takes a reasoning-effort control.

What you can build with this model

Real-world workflows and production use cases you can build and ship with this model.

GLM-5.2 producing an architecture map from an entire repository

Hand it the whole project, not a folder of excerpts

This is the case Z.AI leads with, and the one the context window exists for. GLM-5.2 keeps module boundaries, architectural constraints, API contracts, directory structure and earlier decisions in view for the length of a task, which is what stops the late stages of a long job from feeling like they were done by someone who never read the beginning. Z.AI's framing is worth quoting: the model does not merely read more context, it carries the engineering judgements it formed earlier into later execution. The way to test that on your own codebase is to ask GLM-5.2 for a technical audit — architecture map, module responsibilities, API contracts, data flows, call chains, technical debt — before you ask it to change anything.

GLM-5.2 working a staged refactor across many files

Long-horizon refactoring that closes the task

Z.AI describes GLM-5.2 as more stable on cross-file, multi-step, long-chain work: it breaks the goal down, identifies dependencies and risks, then implements, verifies and closes in stages. The named fits are module decoupling, API migration, directory restructuring, SDK adaptation and cross-language refactoring — the jobs that fail not because any single edit is hard but because step forty contradicts step three. Bound the task, state what must not change, and ask GLM-5.2 for the execution plan, impact scope, risk boundaries and verification method before it starts editing.

GLM-5.2 running build, lint and tests and reporting the results

Engineering standards that actually hold under a long run

The failure mode of an autonomous coding agent is not bad code, it is scope creep: an extra dependency, a quietly changed API contract, a skipped test, a commit you did not ask for. Z.AI puts consistency on exactly these constraints — code style, architectural boundaries, dependency rules, build process, testing requirements, commit boundaries — among GLM-5.2's improvements, and specifically under long context and many rounds. Feed GLM-5.2 your real lint rules, build commands, test requirements and prohibited actions, then give it a real task and check the report against them.

GLM-5.2 vs Kimi K3

These two are the open-weight answer to the same question: a million-token context aimed at long-horizon coding, with the weights published rather than held. Kimi K3 answers with modality and a stricter contract. Pick on shape, then on price.

Capability
GLM-5.2
Kimi K3
Weights and positioning
Open — Z.AI reports it as the strongest open-source model on coding and long-horizon benchmarks
Open — the first of the three-trillion-parameter class
Context and output limits
1M-token context described as lossless; 128K maximum output
1M-token context; output defaults lower but can be raised to the whole window
Thinking
On by default and can be disabled; when on, the model decides per request whether to think
Always on and cannot be disabled
Effort control
Accepts seven values that collapse to three real behaviours, defaulting to the deepest
Three genuine rungs, also defaulting to the deepest
Sampling parameters
Temperature and top_p both tunable, with temperature capped at 1.0
Both fixed — sending them returns an error
Input modalities
Text only — vision is a separate model in the lineup
Text, images and video

Comparison reflects behavior documented by each vendor at the time of writing.

Frequently asked questions

Common questions about this model.

This page introduces the model. API access for this model is not currently available on reAPI. Browse the model catalog for available services.

GLM-5.2

GLM-5.2

This page introduces the model. API access for this model is not currently available on reAPI. Browse the model catalog for available services.