GLM-5.2 vs Qwen 3.8 27B
GLM-5.2 (Z.ai Zhipu AI, June 2026) and Qwen 3.8 27B (Alibaba, August 2026), compared on price, context window, access and specs. Qwen 3.8 27B is the cheaper API at $0.04 in and $1.35 out per million tokens, about 2.4ร less than GLM-5.2 on a typical 3:1 input-to-output mix.
Updated 5 December 2026 ยท read each row across; the best value in a row is marked
Z.ai Zhipu AI
At a glance
- Tasks
Language modeling
Language generation
Language modeling
Language generation
Question answering
Image Understanding
- Released
- 16 June 2026
- 14 August 2026
- Access
- Open weights (unrestricted)
- Open weights (unrestricted)
- Country
- China
- China
Price and API
- Input, per 1M tokens
- $0.007on OpenRouterLowest
- $0.04on Hugging Face
- Output, per 1M tokens
- $1.80on DeepInfra
- $1.35on Hugging FaceLowest
- Where to run it
- DeepInfraHugging FaceOpenRouterAlibaba Cloud Model StudioAll 10 providersMost choice
- Hugging FaceOpenRouterDeepInfraNovita AIAll 8 providers
- Official API id
alibaba/glm-5.2- Not listed
- Context window
- 1M tokens
- 1M tokens
- Max output
- 131K tokens
- 131K tokens
- Takes
- Text
- Text, Image
- Returns
- Text
- Text
- Supports
- ReasoningTool callingStructured outputOpen weights
- ReasoningTool callingStructured outputFile inputOpen weights
Scale and training
- Parameters
- 744B744,000,000,000Largest
- 27B27,000,000,000
- Confidence
- Confident
- Confident
Notes
- Parameters
- 40 billion active
- 27B dense
In their own words
- Abstract
We're introducing GLM-5.2, our latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a solid 1M-token context. GLM-5.2's new capabilities include: Solid 1M Context: A solid 1M-token context that stably sustains long-horizon work Advanced Coding with Flexible Effort: Stronger coding capabilities with multiple thinking effort levels to balance performance and latency Improved Architecture: We propose IndexShare, which reuses the same indexer across every four sparse attention layers, reducing per-token FLOPs by 2.9ร at a 1M context length. We also improve GLM-5.2โs MTP layer for speculative decoding, increasing the acceptance length by up to 20% Pure Open: An MIT open-source license โ no regional limits, technical access without bordersRead all
We promised open weights for Qwen3.8. Now, time to meet them! ๐ โก Qwen3.8-27B: - A native multimodal dense model. With just 27B parameters, it outperforms Qwen3.7-Plus overall and shines in real-world coding & office workflows. - 262K native context, easily extendable to 1M tokens via YaRN. - Built for builders. Highly efficient, high-quality, and licensed under Apache 2.0. ๐ The open weights for Qwen3.8-2.4T-A95B (Max-level) have also been released recently. Whether you're shipping lightweight applications with Qwen3.8-27B locally or building agents with Qwen3.8-2.4T-A95B, they're yours now! Read all
Which should you pick?
- High-volume or budget workloads
- Qwen 3.8 27B ยท Lowest list price: $0.04 in and $1.35 out per million tokens via Hugging Face.
- Reading images and screenshots
- Qwen 3.8 27B ยท Accepts image input through the API.
Questions people ask
Is GLM-5.2 better than Qwen 3.8 27B?
It depends on the job. For high-volume or budget workloads, Qwen 3.8 27B has the edge: lowest list price: $0.04 in and $1.35 out per million tokens via Hugging Face. For reading images and screenshots, Qwen 3.8 27B has the edge: accepts image input through the API. Try them on your own prompts in the AIPortalX playground before you commit.
Which is cheaper: GLM-5.2 or Qwen 3.8 27B?
Qwen 3.8 27B: $0.04 in and $1.35 out per million tokens at Hugging Face. GLM-5.2 starts at $0.56 in and $1.80 out per million tokens. These are list prices from the cheapest provider we track, and they change often.
Which has the bigger context window?
They match, at 1M tokens each.
Where can I use GLM-5.2 and Qwen 3.8 27B through one API?
DeepInfra, Hugging Face, OpenRouter and Novita AI serve all of them, so you can switch models without opening another account.
When were they released?
GLM-5.2 in June 2026 and Qwen 3.8 27B in August 2026.