GLM 5.1
LLM Provider / Model ยท Top-tier agentic engineering, complex multi-step workflows, sustained long-horizon coding, self-improving agent loops
At a glance
| Input price | Free (self-hosted) |
| Output price | Free (self-hosted) |
| Price tier | Free |
| Context window | 128K |
| Max output | 32K |
| Context tier | 32K-128K |
| Speed tier | Standard |
| Latency | local-bound |
| Knowledge cutoff | 2026 |
| Modality | Text-only |
| Model ID | GLM-5.1 |
| Provider | Z.ai (Tsinghua) |
| MMLU | 87% |
| SWE-Bench | 58% |
| Benchmark | SWE-bench Pro: top |
| Released | 2026 |
| Hosting | Open-weights |
| Capabilities | Tool use, Streaming, Structured output, Extended thinking, Agentic coding, Function calling, MCP, MTP, Multilingual (Chinese + English), Self-hostable |
What GLM 5.1 does
Tool use, Streaming, Structured output, Extended thinking, Agentic coding, Function calling, MCP, MTP, Multilingual (Chinese + English), Self-hostable
Best for
Top-tier agentic engineering, complex multi-step workflows, sustained long-horizon coding, self-improving agent loops
Works well with
Agent / Orchestration
Conflicts & caveats
- Trae's built-in model menu may not include GLM 5.1 โ Trae primarily ships with Claude/GPT/Gemini/DeepSeek.
- Google Antigravity is built around Gemini 3 Pro; Claude and recent GPT-5 models also work, but GLM 5.1 is not in the supported model list.
- Kiro's spec mode is tuned for Claude models โ GLM 5.1 may work but spec-driven flows are best with Claude.
- Cursor's built-in model menu may not include GLM 5.1 โ verify it's available in your Cursor model picker.
- OpenAI Codex (VS Code) is tied to OpenAI's GPT-5.1 Codex family โ GLM 5.1 is not selectable inside this integration.
- Gemini CLI is locked to Google Gemini models โ your LLM is GLM 5.1.
- Privacy conflict: Self-hosted GLM 5.1 sends code to cloud @codebase (Cursor). Use local context (Continue indexing, ChromaDB, LanceDB, pgvector, Vespa self-hosted) for true privacy.
- Claude Code only works with Claude models โ your LLM is GLM 5.1.
- Devin uses Cognition's proprietary model internally โ your selected GLM 5.1 will be ignored.
- OpenAI Codex (Cloud) runs GPT-5.1 Codex internally โ your selected GLM 5.1 will be ignored.
- Jules runs Gemini models internally โ your selected GLM 5.1 will be ignored.
- The Claude Code SDK is tuned for Claude models โ GLM 5.1 may work via the model adapter but loses Claude-specific features (thinking, prompt caching, sub-agents).
- Lovable uses a fixed internal model โ your selected GLM 5.1 will be ignored.
- Replit Agent 3 uses its own model selection internally โ your selected GLM 5.1 will be ignored.
Build a full stack around GLM 5.1 โ Flowpicker shows compatibility warnings before you commit.
Open the stack planner โ