# GLM-5.2

> GLM-5.2 is an open-weight language model from Zhipu AI (Z.ai), released on 13 Jun 2026. It accepts text and generates text, with a 1M-token context window and up to 131K output tokens per response. As of 4 Oct 2026, the lowest listed API price is $0.75 per million input tokens and $2.40 per million output tokens (DeepInfra), across 16 providers we track.

Source page: https://www.aimodel.directory/models/glm-5-2
Last verified: 4 Oct 2026

## Specifications

- **Developer:** Zhipu AI (Z.ai)
- **Release date:** 13 Jun 2026 (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Status:** Generally available (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Weights:** Open weights (source: Hugging Face, https://huggingface.co/zai-org/GLM-5.2)
- **License:** mit (source: Hugging Face, https://huggingface.co/zai-org/GLM-5.2)
- **Parameters:** 753B (source: Hugging Face, https://huggingface.co/zai-org/GLM-5.2)
- **Context window:** 1M (1,000,000 tokens) (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Max output:** 131K tokens (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Input:** Text (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Output:** Text (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Reasoning mode:** Yes (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Tool calling:** Yes (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Structured output:** Yes (source: models.dev, https://github.com/sst/models.dev/blob/dev/providers/zai/models/glm-5.2.toml)
- **Hugging Face:** zai-org/GLM-5.2 (source: Hugging Face, https://huggingface.co/zai-org/GLM-5.2)

## API pricing (USD per 1M tokens)

| Provider | Input | Output | Cached input | Context |
|---|---|---|---|---|
| OpenRouter | $0.08 | $8 | $0.08 | 1M |
| DeepInfra | $0.75 | $2.40 | $0.14 | 1M |
| Vercel AI Gateway | $0.80 | $2.55 | $0.16 | 1M |
| SiliconFlow | $1.30 | $4.09 | $0.26 | 1M |
| Alibaba Cloud Model Studio | $1.40 | $4.40 | $0.28 | 1M |
| Mistral API | $1.40 | $4.40 | $0.14 | 1M |
| Z.ai API | $1.40 | $4.40 | $0.26 | 1M |
| Cloudflare Workers AI | $1.40 | $4.40 | $0.26 | 262K |
| Databricks | $1.40 | $4.40 | $0.26 | 1M |
| Google Vertex AI | $1.40 | $4.40 | $0.14 | 1M |
| Nebius AI Studio | $1.40 | $4.40 | – | 1M |
| Together AI | $1.40 | $4.40 | $0.26 | 1M |
| Hugging Face Inference Providers | $1.40 | $4.40 | – | 262K |
| Novita AI | $1.40 | $4.40 | $0.26 | 1M |
| FriendliAI | $1.40 | $4.40 | $0.26 | 1M |
| Baseten | $1.40 | $4.40 | $0.30 | 1M |
| Baseten | $2.10 | $6.60 | $0.21 | 1M |
| Vercel AI Gateway | $2.80 | $8.80 | $0.56 | 1M |

## FAQ

### What is the context window of GLM-5.2?

GLM-5.2 has a context window of 1,000,000 tokens (1M) and can generate up to 131,072 tokens in a single response, according to models.dev.

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

Through Alibaba Cloud Model Studio, GLM-5.2 costs $1.40 per million input tokens and $4.40 per million output tokens. The lowest listed price is $0.75 input / $2.40 output through DeepInfra. Prices last verified 4 Oct 2026.

### Is GLM-5.2 open source?

GLM-5.2 is an open-weight model: its weights are published on Hugging Face as zai-org/GLM-5.2 under the mit license. Check the license terms before commercial use.

### When was GLM-5.2 released?

Zhipu AI (Z.ai) released GLM-5.2 on 13 Jun 2026, according to models.dev.

### Which providers offer GLM-5.2?

We track GLM-5.2 on 16 providers: OpenRouter, DeepInfra, Vercel AI Gateway, SiliconFlow, Alibaba Cloud Model Studio, Mistral API, Z.ai API, Cloudflare Workers AI, Databricks, Google Vertex AI, Nebius AI Studio, Together AI, Hugging Face Inference Providers, Novita AI, FriendliAI, Baseten.

---
Data licensed CC BY 4.0. Cite as: AI Model Directory, "GLM-5.2", https://www.aimodel.directory/models/glm-5-2