Skip to content
Zhipu AI (Z.ai)

GLM-5.2

A highly capable open-weights model known for long-horizon tasks and advanced coding.

Quality

Modality

text

Context

1M tokens

Access

open weights

Fabian's Take

FM

"A fantastic open-weights option for coding. I've been experimenting with it via OpenRouter, and it handles long-horizon tasks surprisingly well. It's a testament to how fast the open-source community is moving."

GLM-5.2 is the latest iteration in the GLM family from Zhipu AI (internationally branded as Z.ai). As an open-weights model under the MIT license, it offers developers a powerful, unrestricted tool for building complex agentic systems.

Long-horizon coding

The standout capability of GLM-5.2 is its performance on long-horizon coding tasks. Unlike earlier models that struggled to maintain context over hundreds of lines of code, GLM-5.2 can track logic across large codebases, making it a strong contender for autonomous coding agents and complex software engineering workflows.

The Verdict

Best for: Long-horizon coding tasks and complex agentic workflows.

Pros

  • Excellent performance on coding and agentic benchmarks
  • Open-weights under a permissive MIT license
  • Massive 1M token context window

Cons

  • Less recognized outside of developer circles
  • Requires powerful hardware to run the full model locally

Specs

  • Pricing $1.40/M input, $4.40/M output
  • Cost Tier budget
  • Speed Tier fast
  • License MIT
Developer Docs

Access this model via