# GLM-5

> Z.ai's open-weight models for coding and long-horizon agentic work

Source: https://talira.ai/catalog/glm-5-5gj4eynh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: AI model
- Categories: [ai / models / llm](https://talira.ai/categories/ai/models/llm)
- Licence: MIT[^2][^3][^4]
- Pricing: Usage-based, free tier[^1]
- Pricing notes: The weights are free to download. On the Z.ai API, GLM-5.2 and GLM-5.1 are $1.40 per million input tokens and $4.40 per million output tokens ($0.26 cached input); GLM-5.3-Flash is $0.15 and $0.50; GLM-5 is $1 and $3.20; cached-input storage is free for a limited time.
- Free tier: yes[^1]
- Self-hostable: yes
- Cloud hosted: yes
- Backed by: [Z.ai](https://talira.ai/orgs/z-ai.md)

GLM-5 is Z.ai's family of MIT-licensed open-weight large language models for coding, agentic engineering and long-horizon tasks: GLM-5 (744B parameters, 40B active), GLM-5.1, GLM-5.2 with a 1M-token context, and GLM-5.3-Flash (320B, 18B active), the first in the series to combine sparse and linear attention. They're mixture-of-experts text models with thinking modes, published on Hugging Face and ModelScope in FP8 and BF16, served locally with [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md), [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md), Transformers or KTransformers, and sold by the token on the Z.ai API platform. The flagship [GLM-5.3](https://talira.ai/catalog/glm-5-3-gd1p2h9w.md), built on GLM-5.2's base model, has its own listing because its weights are under a different licence. Earlier generations (GLM-4.5, 4.6 and 4.7) are in the zai-org/GLM-4.5 repository.

## Links

- GitHub: https://github.com/zai-org/GLM-5
- Docs: https://docs.z.ai/guides/llm/glm-5.2
- Pricing: https://docs.z.ai/guides/overview/pricing

## Problems it solves

- an open-weight model good enough at coding to run our coding agent on our own GPUs
- self-host a frontier-class LLM with a 1M-token context for long agent sessions
- a cheaper API model for agentic coding than the closed frontier models
- an open model with an MIT licence we can fine-tune and ship commercially

## Features

- mixture-of-experts models from 320B (18B active) to 744B (40B active) parameters
- 1M-token context and up to 128K output tokens from GLM-5.2
- thinking modes with multiple effort levels
- hybrid sparse and linear attention in GLM-5.3-Flash
- FP8 and BF16 weights on Hugging Face and ModelScope
- local serving with SGLang, vLLM, Transformers and KTransformers
- Z.ai API with context caching

## Trust

Overall: 0.50 out of 1.
Signals: maintenance 0.52, adoption 0.77, momentum 0.88, community 0.36, backing 0.30, extensibility 0.00.

- last commit 40 days ago
- 10 commits in the last 90 days
- 7.5k GitHub stars
- fast-growing: 7.5k stars in 9 months
- 7 contributors
- backed by Z.ai

## Alternatives

- [Qwen3.8-27B](https://talira.ai/catalog/qwen3-8-27b-sd9v04dj.md): Compact dense vision-language model from the Qwen3.8 open-model family
- [Gemma 4](https://talira.ai/catalog/gemma-4-vb8exph3.md): Google DeepMind's open multimodal models, from phones to workstations
- [Llama 4](https://talira.ai/catalog/llama-4-cykm4y9b.md): Natively multimodal mixture-of-experts open-weight models from Meta
- [GLM-5.3](https://talira.ai/catalog/glm-5-3-gd1p2h9w.md): Z.ai's open-weight flagship model for coding and long-horizon agentic work
- [gpt-oss](https://talira.ai/catalog/gpt-oss-yme4k4dv.md): OpenAI's open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, under Apache 2.0
- [ERNIE 5.5 Flash Preview](https://talira.ai/catalog/ernie-5-5-flash-preview-txptd4x9.md): Open-weights 280B MoE language model with a 1M-token context

## Sources

[^1]: https://docs.z.ai/guides/overview/pricing (checked 24 Nov 2026)
[^2]: https://huggingface.co/zai-org/GLM-5 (checked 24 Nov 2026)
[^3]: https://huggingface.co/zai-org/GLM-5.2 (checked 24 Nov 2026)
[^4]: https://huggingface.co/zai-org/GLM-5.3-Flash (checked 24 Nov 2026)
