ZAIReleased on Jun 16, 2026

GLM-5.2: API Pricing, Context Window & Benchmarks

GLM-5.2 is a language model from ZAI, released in June 2026, with a 1.0M-token context window, and pricing from $0.950/M input and $3.00/M output.

GLM-5.2 is Z.AI's flagship foundation model built for long-horizon tasks, delivering a solid 1M-token context that stably sustains long, messy coding-agent trajectories. It improves substantially over GLM-5.1, becoming the strongest

Input
Text
Output
Text

GLM-5.2 benchmarks

Rankings

Quality Tracker

GLM-5.2 Performance Across Datasets

Scores sourced from the model's scorecard, paper, or official blog posts

LLM Stats Logollm-stats.com - Sat Jul 18 2026
Notice missing or incorrect data?

GLM-5.2 pricing

Providers

GLM-5.2 starts at $0.950 per million input tokens and $3.00 per million output tokens via DeepInfra. See all 6 providers below with their per-token pricing, latency, throughput, and modality support.

ProviderInput $/MOutput $/MWorkload 1M + 100KContext in / outTTFT p50 / p95 sOutput avg / p5 c/sSuccess 7dModalities in / out
DeepInfra logoDeepInfra
$0.950$3.00$1.251.0M/131.1K
2.23/21.99
79/5
100.00%(1,345)
/
Fireworks logoFireworks
$1.40$4.40$1.841.0M/131.1K
2.24/11.94
145/8
68.52%(486)
/
FriendliAI logoFriendliAI
$1.40$4.40$1.841.0M/131.1K
1.74/5.83
233/14
99.53%(5,269)
/
Novita logoNovita
$1.40$4.40$1.841.0M/131.1K
6.95/22.16
58/5
48.34%(391)
/
Together logoTogether
$1.40$4.40$1.841.0M/131.1K
0.85/5.14
227/22
84.90%(1,477)
/
ZAI logoZAI
$1.40$4.40$1.841.0M/128.0K
0.00/0.00
/
0.00%(278)
/

Workload cost uses 1M input tokens plus 100K output tokens at published list prices without assuming a cache hit. Cached input is the discounted price for prompt tokens served from a provider cache. TTFT is time to first token. Output is characters per second; p5 is the sustained floor exceeded by 95% of observed requests. Success is calculated from completed versus failed requests over the trailing seven days.

Loading chart...
Loading chart...
Loading chart...

GLM-5.2 model size

GLM-5.2 has 753 billion parameters. See how it compares to other models in the same parameter range.

Parameters
753BMoE
Frontier (200B+)
753B
1B7B70B405B

GLM-5.2 context window

Input and output token limits for GLM-5.2, plus how it ranks on long-context understanding.

InputOutput
1.0Mtokens
131Ktokens
1.6k pages of text
1.0M
8K128K1M

GLM-5.2 API

POST/v1/chat/completions

Run a request to see the response

Use it in your code

Billed at $0.95 input / $3.00 output per 1M tokens through the LLM Stats gateway.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://gateway.llm-stats.com/v1"
)

response = client.chat.completions.create(
    model="glm-5.2",
    messages=[
        {"role": "user", "content": "What is machine learning?"}
    ]
)

print(response.choices[0].message.content)

Need an API key? Create one above in the playground, or read the API documentation.

GLM-5.2 latency

GLM-5.2 time to first token, sustained output throughput, and failed-request rate from live API traffic over the trailing 7 days.

Provider operational metrics

Time to first token, output throughput, and failed-request rate from live API traffic

Loading chart...
Loading chart...
Loading chart...

GLM-5.2 examples

Recent arena outputs from GLM-5.2, picked from the highest-ranked matchups.

GLM-5.2 license

GLM-5.2 is released under the MIT license, which permits commercial use, has 753.0B parameters.

License
MIT
Commercial use allowed
Parameters
753.0B

MIT License - allows commercial use

GLM-5.2 resources

Official sources for GLM-5.2: api documentation, official playground, paper or system card, official launch post, source repository, model weights.

GLM-5.2 vs other models

The most-compared alternatives to GLM-5.2 are GLM-5.1, Claude Opus 4.6, Gemini 3 Pro. Open any pair side-by-side for benchmarks, pricing, context, and latency.

Models like GLM-5.2

Models ranked just above and below GLM-5.2 by LLM Stats score.

 

GLM-5.1

Score pending
 

Claude Opus 4.6

Score pending
 

Gemini 3 Pro

Score pending
 

Gemini 3 Flash

Score pending
 

Qwen3.7 Max

Score pending
 

Qwen3.5-397B-A17B

Score pending

FAQ

Common questions about GLM-5.2.

When was GLM-5.2 released?

GLM-5.2 was released on June 16, 2026 by ZAI. This is the official GLM-5.2 release date tracked on LLM Stats.

How much does GLM-5.2 cost?

GLM-5.2 costs $0.95 per million input tokens and $3.00 per million output tokens through the LLM Stats API, which works with any OpenAI-compatible SDK. Across tracked providers, the lowest price is $0.95 per million input tokens via DeepInfra.

Is GLM-5.2 available via API?

Yes. GLM-5.2 is available through the LLM Stats API and works with any OpenAI-compatible SDK — point your client at the gateway base URL and pass the model name. It is served by 6 providers tracked on LLM Stats.

How big is GLM-5.2?

GLM-5.2 has 753 billion parameters. It ships as an open-weight model, so you can download and run it on your own hardware.

Who created GLM-5.2?

GLM-5.2 was created by ZAI.

What is the license for GLM-5.2?

GLM-5.2 is released under the MIT license. This is an open-source / open-weight license that permits self-hosting.

What is GLM-5.2 latency?

GLM-5.2 p95 time to first token is 5.14 seconds via Together over the trailing 7 days. Lower time to first token means the model begins responding sooner for chat, agents and API workloads.

Where can I use GLM-5.2?

GLM-5.2 is available through 6 providers including DeepInfra, Fireworks, FriendliAI, and 3 more.

Where is the GLM-5.2 paper or technical report?

GLM-5.2 has a paper or technical report available at https://arxiv.org/abs/2602.15763. Use that source for architecture, training, release and evaluation details.

What models should I compare GLM-5.2 against?

Common GLM-5.2 comparisons include GLM-5.2 vs GLM-5.1, GLM-5.2 vs Claude Opus 4.6, GLM-5.2 vs Gemini 3 Pro. Compare them side by side for benchmark scores, pricing, context window, latency and API availability.