Back to all models

Pricing and availability as of

GLM-5.2

Zhipu GLM-5.2 flagship model for long-horizon coding and agentic engineering tasks with a 1M context window.

glm-5.2
Context
1,048,576
tokens
Max output
131,072
tokens
Input from
$1.10
per 1M tokens
Output from
$3.85
per 1M tokens
Providers
7
automatic routing
Released
Jun 13, 2026
  • Streaming
  • Tools
  • Reasoning
  • Reasoning Budget
  • JSON Output
  • Web Search
  • Batch API
No ratings yetSign in to rate

Providers for GLM-5.2

Compare price, limits and live performance side by side. LLM Gateway routes each request to the best provider that can handle your prompt size and parameters.

7 providers · select a column to sort

ProviderActions
5 regions
1M131.1k$1.40$4.4$0.28
1M128k$1.40$4.4$0.26
1.0M131.1k$1.40$4.4$0.26
1.0M128k$1.40$4.4$0.26
200k32.8k$1.40$4.4$0.26
1.0M131.1k$1.40$4.4$0.26
1M128k$1.40$4.4$0.26

Prices are per provider at standard rates; open a row for regions, tiers and cache pricing. Throughput, latency and uptime come from LLM Gateway traffic over the last 24 hours and are hidden under 1,000 requests.

GLM-5.2 API pricing

GLM-5.2 API pricing starts at $1.10 per 1M input tokens and $3.85 per 1M output tokens through LLM Gateway, on Alibaba Cloud (ap-tokyo). Cached input starts at $0.26 per 1M tokens.

ProviderInput / 1M tokensOutput / 1M tokensCached input / 1M tokensContext window
Alibaba Cloud (ap-tokyo)$1.10$3.85$0.2751,000,000 tokens
Alibaba Cloud (cn-beijing)$1.10$3.85$0.2751,000,000 tokens
Alibaba Cloud (eu-frankfurt)$1.10$3.85$0.2751,000,000 tokens
Alibaba Cloud (us-virginia)$1.40$4.40$0.281,000,000 tokens
Alibaba Cloud (singapore)$1.40$4.40$0.281,000,000 tokens
Tencent Cloud$1.40$4.40$0.261,000,000 tokens
Baidu$1.40$4.40$0.261,048,576 tokens
Alibaba Cloud$1.40$4.40$0.281,000,000 tokens
ByteDance$1.40$4.40$0.261,024,000 tokens
CanopyWave$1.40$4.40$0.26200,000 tokens
NovitaAI$1.40$4.40$0.261,048,576 tokens
Z AI$1.40$4.40$0.261,000,000 tokens

What GLM-5.2 costs at volume

Monthly usageCost on Alibaba Cloud (ap-tokyo)
1M input + 250K output tokens$2.06
10M input + 2.5M output tokens$20.63
100M input + 25M output tokens$206.28

GLM-5.2 cost calculator

Estimated monthly cost
$30.26
Cost per request
$0.003

Frequently asked questions

What is GLM-5.2?

Zhipu GLM-5.2 flagship model for long-horizon coding and agentic engineering tasks with a 1M context window. You can access it through LLM Gateway's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.

How much does GLM-5.2 cost?

Pricing for GLM-5.2 on LLM Gateway starts at $1.10 per million input tokens and $3.85 per million output tokens, depending on the provider. The pricing table above always reflects the current per-provider rates.

What is the context length of GLM-5.2?

GLM-5.2 supports a context window of up to 1,048,576 tokens on its largest provider deployment.

Which providers serve GLM-5.2?

GLM-5.2 is served by Alibaba Cloud, Tencent Cloud, Baidu, ByteDance, CanopyWave, NovitaAI, Z AI through LLM Gateway. Requests are automatically routed to the best available provider, with fallback when a provider has issues.

Does GLM-5.2 support tool calling and structured outputs?

GLM-5.2 supports tool (function) calling and soft JSON output, but NOT strict JSON output schema (its upstream provider does not enforce it).

When was GLM-5.2 released?

GLM-5.2 was released on June 13, 2026.