GLM-5.2

Z.ai (Zhipu AI)open-sourceOpen Source

Z.ai's 13 Jun 2026 open-weight flagship, and the model that held the top open-weight slot until Kimi K3 landed a month later. 744B MoE / ~40B active, MIT-licensed weights on Hugging Face, 1M context, 131K max output. $1.40 input / $4.40 output per 1M tokens ($0.26 cached) — a blended ~$0.90/1M. The headline result is SWE-bench Pro 62.1%, which beats GPT-5.5's 58.6%: an MIT-licensed model you can self-host outscoring a $5/$30 US flagship on agentic coding. Also the fastest of the big open MoEs at ~168 tokens/sec, roughly 2.7x Kimi K3 and DeepSeek V4 Pro. Self-hosting needs about 1TB VRAM in BF16, or ~8x H200 at FP8.

Context Window

1M

tokens

Max Output

131K

tokens

Input Price

$1.4

per 1M tokens

Output Price

$4.4

per 1M tokens

Speed

168

tokens/sec

Released

Jun 2026

2026-06-13

Blended Cost

$2.90

per 1M tokens

Value Score

31.4

quality per $

Capabilities

ChatVisionFunction CallingCode GenerationReasoning

Benchmarks

Quality Index
91
MMLU Pro
88.9
HumanEval (Coding)
92.2
MATH
90.6
Arena ELO
1483

Price vs Quality

6080100$1.00$10.00$100.00Blended cost per 1M tokens (log scale) →GPT-4o — $6.25/1M, quality 85GPT-4o Mini — $0.375/1M, quality 72o3 Mini — $2.75/1M, quality 88o3 — $5.00/1M, quality 94GPT-4.1 — $5.00/1M, quality 89Claude Opus 4 — $45.00/1M, quality 91Claude Sonnet 4 — $9.00/1M, quality 88Claude 3.5 Haiku — $2.40/1M, quality 75Gemini 2.5 Pro — $5.63/1M, quality 92Gemini 2.0 Flash — $0.250/1M, quality 74Llama 4 Maverick — $0.400/1M, quality 80Llama 4 Scout — $0.275/1M, quality 71Mistral Large 2 — $4.00/1M, quality 79Codestral — $0.600/1M, quality 76DeepSeek V3 — $0.685/1M, quality 86DeepSeek R1 — $1.37/1M, quality 91Grok 3 — $9.00/1M, quality 87Grok 3 Mini — $0.400/1M, quality 78Command R+ — $6.25/1M, quality 68Amazon Nova Pro — $2.00/1M, quality 70Qwen 2.5 72B — $0.600/1M, quality 80Qwen 2.5 Coder 32B — $0.300/1M, quality 74Sonar Pro — $9.00/1M, quality 78GPT-5.5 — $17.50/1M, quality 97GPT-5.5 Pro — $105.00/1M, quality 96Claude Opus 4.7 — $15.00/1M, quality 96Gemini 3.1 Pro — $7.00/1M, quality 96DeepSeek V4 Pro — $1.32/1M, quality 89DeepSeek V4 Flash — $0.210/1M, quality 84Qwen 3.6 Plus — $3.50/1M, quality 86Grok 4.3 — $1.88/1M, quality 93Kimi K2.6 — $2.11/1M, quality 92Kimi K3 — $9.00/1M, quality 97Claude Sonnet 4.6 — $9.00/1M, quality 90GLM-5.1 — $2.03/1M, quality 88Claude Opus 4.8 — $15.00/1M, quality 98Qwen 3.7 Max — $5.00/1M, quality 94Claude Fable 5 — $30.00/1M, quality 100MiniMax M3 — $1.50/1M, quality 89GPT-5.6 Sol — $17.50/1M, quality 98GPT-5.6 Terra — $7.00/1M, quality 93GPT-5.6 Luna — $0.700/1M, quality 83Gemini 3.6 Flash — $2.25/1M, quality 90Gemini 3.5 Flash-Lite — $1.40/1M, quality 79Claude Sonnet 5 — $9.00/1M, quality 93Claude Opus 5 — $15.00/1M, quality 99Claude Mythos 5 — $30.00/1M, quality 100Grok 4.5 — $4.00/1M, quality 94Qwen3.8 Max — $4.00/1M, quality 96GLM-5.2 — $2.90/1M, quality 91GLM-5.2
Cheaper is left, more capable is up. 3 of 49 priced models are both cheaper and score at least as high. Self-host models are left off the price axis — their cost depends on the hardware you run them on, not on tokens.

Context Window in Context

  • GLM-5.21M
  • GPT-4.11M
  • Gemini 2.5 Pro1M
  • Gemini 2.0 Flash1M
  • Llama 4 Maverick1M
  • GPT-5.51M
  • GPT-5.5 Pro1M
  • Claude Opus 4.71M
Bar length is logarithmic — each full step is 10× the tokens. Shown against the models with the nearest context windows, not the directory extremes.

Open Source: Licensed under MIT

Not on our gateway yet

GLM-5.2 is open-weight, so you can run it yourself. Swfte Connect turns your deployment into a managed endpoint that speaks the same API as every other model in this directory.

The request
curl https://api.swfte.com/agents/v2/gateway/chat/completions \
  -H "Authorization: Bearer $SWFTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zhipu:glm-5.2",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
Deploy this model with Swfte Connect

About GLM-5.2

GLM-5.2 is a open-source AI model by Z.ai (Zhipu AI), released on June 13, 2026. It supports a context window of 1000K tokens and can generate up to 131K output tokens.

At $1.4 per million input tokens and $4.4 per million output tokens, its blended cost of $2.90/1M tokens puts it in the mid-range pricing tier. Its value score of 31.4 reflects the balance of quality and cost.

GLM-5.2 is available as an open-source model under the MIT license, meaning you can self-host it for predictable costs or use it through API providers like Swfte Connect.

Using GLM-5.2 with Swfte

Access GLM-5.2 through Swfte Connect, our unified LLM gateway. Connect gives you a single API for 50+ models, with automatic routing, cost optimization, and fallback handling. You can also try GLM-5.2 in our AI Playground before integrating.

Deploy a model with Swfte Connect

One gateway, every provider, per-token cost visibility. Swap models without touching your code.