# GLM-5.2

> Z.ai's leading open-weight model — 1M-token context tuned for long-horizon coding and reasoning.

- Maker: Z.ai (Zhipu / GLM)
- Line: GLM (flagship)
- Canonical page: https://ai-tldr.dev/models/glm-5-2/
- Updated: 2026-06-18

## In short

GLM-5.2 is Z.ai's flagship open-weight foundation model, released in June 2026 under the MIT license. It is a Mixture-of-Experts model (744B total / 40B active parameters per Artificial Analysis) built for long-horizon tasks, and ships with a 1M-token context window — up from 200K on GLM-5.1. It has a 1M-token context window and costs $1.40 per million input tokens and $4.40 per million output tokens. You can use it through Z.ai.

## Facts

| Fact | Value | Source |
| --- | --- | --- |
| Context window | 1M (max output 128K) | [1] |
| Input price | $1.40 / 1M tokens (cached $0.26) | [2] |
| Output price | $4.40 / 1M tokens | [2] |
| Licence | MIT · open weights | [1] |
| Released | 16 June 2026 | [3] |
| Parameters | 744B total · 40B active | [1] |

## Sources

1. [Hugging Face model card](https://huggingface.co/zai-org/GLM-5.2)
2. [Artificial Analysis: GLM-5.2](https://artificialanalysis.ai/models/glm-5-2)
3. [Z.ai GLM-5.2 announcement](https://z.ai/blog/glm-5.2)

## Overview

GLM-5.2 is Z.ai's flagship open-weight foundation model, released in June 2026 under the MIT license. It is a Mixture-of-Experts model (744B total / 40B active parameters per Artificial Analysis) built for long-horizon tasks, and ships with a 1M-token context window — up from 200K on GLM-5.1.

The model is positioned for project-scale engineering: Z.ai reports it can sustain long, messy coding-agent trajectories, adhere more reliably to engineering standards, and achieve higher success rates in development scenarios. It exposes multiple thinking-effort levels to trade off latency against accuracy.

On the Artificial Analysis Intelligence Index, GLM-5.2 became the leading open-weights model, scoring 51 and sitting on the Pareto frontier of intelligence versus cost per task. It is available through Z.ai's API and Coding Plan and as open weights on the zai-org Hugging Face repository.

## Benchmarks

- AIME 2026: 99.2% ([source](https://huggingface.co/zai-org/GLM-5.2))
- GPQA-Diamond: 91.2% ([source](https://huggingface.co/zai-org/GLM-5.2))
- SWE-bench Pro: 62.1% ([source](https://huggingface.co/zai-org/GLM-5.2))
- Terminal Bench 2.1: 82.7% ([source](https://huggingface.co/zai-org/GLM-5.2))
- ProgramBench: 63.7% ([source](https://huggingface.co/zai-org/GLM-5.2))
- MCP-Atlas (Public Set): 76.8% ([source](https://huggingface.co/zai-org/GLM-5.2))

## Pricing

- Input: $1.40 / 1M tokens
- Cached input: $0.26 / 1M tokens
- Output: $4.40 / 1M tokens

Source: https://artificialanalysis.ai/models/glm-5-2

## Strengths

- Leading open-weights model on the Artificial Analysis Intelligence Index (score 51).
- 1M-token context that stably sustains long-horizon coding-agent work.
- Strong coding and software-engineering results (SWE-bench Pro 62.1, Terminal Bench 2.1 82.7).
- Strong math and reasoning (AIME 2026 99.2, GPQA-Diamond 91.2).
- Open weights under a permissive MIT license, enabling self-hosting.

## Best for

- Long-horizon, project-scale coding agents over large repositories.
- Competition-grade math and scientific reasoning tasks.
- Agentic and tool-using applications needing very long context.
- Self-hosted deployments where MIT-licensed open weights are required.

## How to access

- [Z.ai](https://docs.z.ai/guides/llm/glm-5.2) — model id `glm-5.2`

## GLM (flagship) versions

- GLM-5.2 (13 June 2026) — this page
- [GLM-5.1](https://ai-tldr.dev/models/glm-5-1/) (7 April 2026)
- [GLM-5](https://ai-tldr.dev/models/glm-5/) (11 February 2026)
- [GLM-4.7](https://ai-tldr.dev/models/glm-4-7/) (22 December 2025)
- [GLM-4.6](https://ai-tldr.dev/models/glm-4-6/) (30 September 2025)
- [GLM-4.5](https://ai-tldr.dev/models/glm-4-5/) (28 July 2025)

## FAQ

### What is GLM-5.2?

GLM-5.2 is Z.ai's flagship open-weight foundation model, released in June 2026 under the MIT license. It is a Mixture-of-Experts model with a 1M-token context window, built for long-horizon coding and reasoning tasks, and became the leading open-weights model on the Artificial Analysis Intelligence Index with a score of 51.

### How long is GLM-5.2's context window?

GLM-5.2 supports a 1M-token context window, up from 200K on GLM-5.1, with a maximum output of 128K tokens. Z.ai reports the long context is stable enough to handle project-scale engineering context and sustain long, multi-step coding-agent trajectories rather than degrading on extended inputs.

### How much does the GLM-5.2 API cost?

Per Artificial Analysis, GLM-5.2 is priced at $1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26 per million tokens. It is also bundled into Z.ai's GLM Coding Plan, and the model is available as open weights on Hugging Face for self-hosting under the MIT license.

### How does GLM-5.2 perform on benchmarks?

GLM-5.2 posts strong scores across coding and reasoning: SWE-bench Pro 62.1, Terminal Bench 2.1 82.7, ProgramBench 63.7, AIME 2026 99.2, and GPQA-Diamond 91.2. On the Artificial Analysis Intelligence Index v4.1 it scored 51, making it the leading open-weights model and placing it on the intelligence-versus-cost Pareto frontier.

## Links

- [Hugging Face model card](https://huggingface.co/zai-org/GLM-5.2)
- [Z.ai GLM-5.2 docs](https://docs.z.ai/guides/llm/glm-5.2)
- [Z.ai GLM-5.2 announcement](https://z.ai/blog/glm-5.2)
- [Artificial Analysis: GLM-5.2](https://artificialanalysis.ai/models/glm-5-2)
- [Artificial Analysis: leading open-weights model](https://artificialanalysis.ai/articles/glm-5-2-is-the-new-leading-open-weights-model-on-the-artificial-analysis-intelligence-index)

Source: AI/TLDR LLM registry, https://ai-tldr.dev/models/glm-5-2/
