by Z.AI
GLM-5.1 is Zhipu's latest flagship model, with greatly enhanced coding capabilities and significantly improved long-range task performance. It can continuously and autonomously work for up to 8 hours on a single task, completing the full closed loop from planning and execution to iterative optimization, delivering engineering-grade results. In terms of general capability and coding ability, GLM-5.1's overall performance aligns with Claude Opus 4.6, and it demonstrates stronger sustained work capability in long-range autonomous execution, complex engineering optimization, and real-world development scenarios, making it an ideal foundation for building Autonomous Agents and long-horizon Coding Agents.
GLM-5.1 is Zhipu's latest flagship model, with greatly enhanced coding capabilities and significantly improved long-range task performance. It can continuously and autonomously work for up to 8 hours on a single task, completing the full closed loop from planning and execution to iterative optimization, delivering engineering-grade results. In terms of general capability and coding ability, GLM-5.1's overall performance aligns with Claude Opus 4.6, and it demonstrates stronger sustained work capability in long-range autonomous execution, complex engineering optimization, and real-world development scenarios, making it an ideal foundation for building Autonomous Agents and long-horizon Coding Agents.
glm-5.1 has a 200,000 token context window.
On AIHubMix, glm-5.1 costs $0.84 per million input tokens and $3.38 per million output tokens. Cached input reads are billed at $0.18 per million tokens.
glm-5.1 accepts text input.
glm-5.1 supports thinking, tool calling, function calling and structured outputs. Per-protocol parameter support is listed in the capability table on this page.
glm-5.1 is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to glm-5.1 — no other code changes needed.
glm-5.1 is developed by Z.AI. AIHubMix aggregates it alongside models from other providers behind one API and one bill.
GLM-5.2 is Z.ai’s flagship model for the era of long-horizon tasks. With a truly usable…
GLM-5.2-Fast-Preview is the high-speed version of Zhipu AI’s flagship model GLM-5.2…
coding-glm-5.2-free is the open and free version of coding-glm-5.2. To maintain reliable…
Currently, the special resources for this model are limited, but due to its popularity…
GLM-Image is Zhipu AI's new flagship image generation model. The model is trained…
Use glm-5.1 via the AIHubMix unified API — one interface for every major LLM.