Z.AI
GLM-5.1
Strong GLM coding model for agentic engineering, terminals, and repository generation
Model facts
- Context window
- 2K tokens
- Maximum output
- 131K tokens
- Cheapest paid input
- $0.45 per 1M tokens
- Cheapest paid output
- $2.15 per 1M tokens
- Open weights
- yes
- Providers
- 62
Capabilities and modalities
reasoning, tool calling, structured output, attachments, temperature control, open weights, text.
Local hardware estimate
At 4K context: Q4_K_M 462.4 GiB, Q8_0 813.5 GiB, F16 1471.7 GiB working memory.
- Parameters
- 753.9 billion
- Architecture
- glmmoedsa
- Model license
- mit
Planning estimate adapted from the MIT-licensed whichllm estimator using metadata from Hugging Face; not a vendor minimum requirement.
Artificial Analysis benchmarks
Compare this model on the full LLM benchmark leaderboard.
| Configuration | AAI | Coding | Math | Output tokens/s |
|---|---|---|---|---|
| Reasoning | 41.0 | 55.8 | not measured | not measured |
| Non-reasoning | 36.3 | not measured | not measured | not measured |
Observed price history
- 2026-08-24: $0.45 input / $2.15 output per 1M tokens
API providers
- Alibaba Token Plan — model id glm-5.1; free input / free output per 1M tokens; provider documentation
- Alibaba Token Plan (China) — model id glm-5.1; free input / free output per 1M tokens; provider documentation
- Kenari — model id glm-5-1; free input / free output per 1M tokens; provider documentation
- SCNet Token Plan — model id GLM-5.1; free input / free output per 1M tokens; provider documentation
- Zhipu AI Coding Plan — model id glm-5.1; free input / free output per 1M tokens; provider documentation
- CrofAI — model id glm-5.1; $0.45 input / $2.15 output per 1M tokens; provider documentation
- HPC-AI — model id zai-org/glm-5.1; $0.615 input / $2.46 output per 1M tokens; provider documentation
- NanoGPT — model id z-ai/glm-5.1; $0.75 input / $2.6 output per 1M tokens; provider documentation
- DevPass (LLM Gateway) — model id glm-5.1; $0.931 input / $2.93 output per 1M tokens; provider documentation
- LLM Gateway (EmberCloud) — model id embercloud/glm-5.1; $0.931 input / $2.93 output per 1M tokens; provider documentation
- OpenRouter — model id z-ai/glm-5.1; $0.966 input / $3.04 output per 1M tokens; provider documentation
- GMI Cloud — model id zai-org/GLM-5.1-FP8; $0.98 input / $3.08 output per 1M tokens; provider documentation
- Pioneer — model id zai-org/GLM-5.1; $0.98 input / $3.08 output per 1M tokens; provider documentation
- Alibaba (China) — model id glm-5.1; $0.825 input / $3.3 output per 1M tokens; provider documentation
- EmpirioLabs AI — model id glm-5-1; $0.825 input / $3.3 output per 1M tokens; provider documentation
- Hugging Face — model id zai-org/GLM-5.1; $1 input / $3.2 output per 1M tokens; provider documentation
- Wafer — model id GLM-5.1; $1 input / $3.2 output per 1M tokens; provider documentation
- AIHubMix (Alibaba Cloud) — model id alicloud-glm-5.1; $0.84 input / $3.38 output per 1M tokens; provider documentation
- AIHubMix (Z.ai) — model id zai-glm-5.1; $0.845 input / $3.38 output per 1M tokens; provider documentation
- EBCloud — model id GLM-5.1; $0.857 input / $3.43 output per 1M tokens; provider documentation
- 302.AI — model id glm-5.1; $0.86 input / $3.5 output per 1M tokens; provider documentation
- ZenMux — model id z-ai/glm-5.1; $0.878 input / $3.51 output per 1M tokens; provider documentation
- Deep Infra — model id zai-org/GLM-5.1; $1.05 input / $3.5 output per 1M tokens; provider documentation
- FastRouter — model id z-ai/glm-5.1; $1.05 input / $3.5 output per 1M tokens; provider documentation
- LLM Gateway (DeepInfra) — model id deepinfra/glm-5.1; $1.05 input / $3.5 output per 1M tokens; provider documentation
- CrossModel — model id z-ai/glm-5.1; $1 input / $3.8 output per 1M tokens; provider documentation
- DInference — model id glm-5.1; $1.25 input / $3.89 output per 1M tokens; provider documentation
- Charm Hyper — model id glm-5.1; $1.29 input / $4.22 output per 1M tokens; provider documentation
- Baseten — model id zai-org/GLM-5.1; $1.3 input / $4.3 output per 1M tokens; provider documentation
- DigitalOcean — model id glm-5.1; $1.3 input / $4.3 output per 1M tokens; provider documentation
- Crusoe — model id zai/GLM-5.1; $1.2 input / $4.4 output per 1M tokens; provider documentation
- Cortecs — model id glm-5.1; $1.38 input / $4.35 output per 1M tokens; provider documentation
- Jalapeno Cloud — model id GLM-5.1; $1.38 input / $4.4 output per 1M tokens; provider documentation
- LLM Gateway (NovitaAI) — model id novita/glm-5.1; $1.38 input / $4.4 output per 1M tokens; provider documentation
- NovitaAI — model id zai-org/glm-5.1; $1.38 input / $4.4 output per 1M tokens; provider documentation
- Abacus — model id zai-org/GLM-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Ambient — model id zai-org/GLM-5.1-FP8; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Auriko — model id glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Eden AI — model id zai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Friendli — model id zai-org/GLM-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- FrogBot (Z.AI) — model id zai-glm-5-1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Impossibl — model id zai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Kilo Gateway — model id z-ai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- LLM Gateway (Baidu) — model id baidu/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- LLM Gateway (Z AI) — model id zai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Merge Gateway — model id zai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Ofox — model id z-ai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- OpenCode Go — model id glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- OpenCode Zen — model id glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- OrcaRouter — model id z-ai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Requesty — model id glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Requesty (EU) — model id glm-5.1@eu; $1.4 input / $4.4 output per 1M tokens; provider documentation
- TensorX — model id z-ai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Together AI — model id zai-org/GLM-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- TokenGo — model id z-ai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Vercel AI Gateway — model id zai/glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Z.AI — model id glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Zhipu AI — model id glm-5.1; $1.4 input / $4.4 output per 1M tokens; provider documentation
- Venice AI — model id zai-org-glm-5-1; $1.54 input / $4.84 output per 1M tokens; provider documentation
- GreenPT — model id glm-5.1; $1.76 input / $5.52 output per 1M tokens; provider documentation
- Arena — model id glm-5.1; not published input / not published output per 1M tokens; provider documentation
- Ollama Cloud — model id glm-5.1; not published input / not published output per 1M tokens; provider documentation