Zhipu AI (Z.ai)

GLM-5.2

Generally availableOpen weights1M contextReasoning

Summary

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.

Open flagship GLM for long-horizon coding agents and million-token context work

Last verified 4 Oct 2026. Every figure on this page links to its source.

Specifications

DeveloperZhipu AI (Z.ai)
Release date13 Jun 2026 [models.dev]
StatusGenerally available [models.dev]
WeightsOpen weights [Hugging Face]
Licensemit [Hugging Face]
Parameters753B [Hugging Face]
Context window1M (1,000,000 tokens) [models.dev]
Max output131K tokens [models.dev]
InputText [models.dev]
OutputText [models.dev]
Reasoning modeYes [models.dev]
Tool callingYes [models.dev]
Structured outputYes [models.dev]
Hugging Facezai-org/GLM-5.2 [Hugging Face]

GLM-5.2 API pricing by provider

USD per million tokens. Sorted by input price.

ProviderInputOutputCached inputContextSource
OpenRouter
z-ai/glm-5.2
$0.08$8$0.081MOpenRouter, 4 Oct 2026
DeepInfra
zai-org/GLM-5.2
$0.75$2.40$0.141Mmodels.dev, 4 Oct 2026
Vercel AI Gateway
zai/glm-5.2
$0.80$2.55$0.161Mmodels.dev, 4 Oct 2026
SiliconFlow
zai-org/GLM-5.2
$1.30$4.09$0.261Mmodels.dev, 4 Oct 2026
Alibaba Cloud Model Studio
glm-5.2
$1.40$4.40$0.281Mmodels.dev, 4 Oct 2026
Mistral API
zai-glm-5-2
$1.40$4.40$0.141Mmodels.dev, 4 Oct 2026
Z.ai API
glm-5.2
$1.40$4.40$0.261Mmodels.dev, 4 Oct 2026
Cloudflare Workers AI
@cf/zai-org/glm-5.2
$1.40$4.40$0.26262Kmodels.dev, 4 Oct 2026
Databricks
databricks-glm-5-2
$1.40$4.40$0.261Mmodels.dev, 4 Oct 2026
Google Vertex AI
zai-org/glm-5.2-maas
$1.40$4.40$0.141Mmodels.dev, 4 Oct 2026
Nebius AI Studio
zai-org/GLM-5.2
$1.40$4.40–1Mmodels.dev, 4 Oct 2026
Together AI
zai-org/GLM-5.2
$1.40$4.40$0.261Mmodels.dev, 4 Oct 2026
Hugging Face Inference Providers
zai-org/GLM-5.2
$1.40$4.40–262Kmodels.dev, 4 Oct 2026
Novita AI
zai-org/glm-5.2
$1.40$4.40$0.261Mmodels.dev, 4 Oct 2026
FriendliAI
zai-org/GLM-5.2
$1.40$4.40$0.261Mmodels.dev, 4 Oct 2026
Baseten
zai-org/GLM-5.2
$1.40$4.40$0.301Mmodels.dev, 4 Oct 2026
Baseten
zai-org/GLM-5.2-Fast
$2.10$6.60$0.211Mmodels.dev, 4 Oct 2026
Vercel AI Gateway
zai/glm-5.2-fast
$2.80$8.80$0.561Mmodels.dev, 4 Oct 2026

Frequently asked questions

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.

Change history

  • OpenRouter price changed: input $0.05 → $0.08, output $8 → $8 per 1M tokens
  • OpenRouter price changed: input $0.06 → $0.05, output $8 → $8 per 1M tokens

Sources