---
id: "z-ai/glm-5.1"
also: ["z-ai/glm-5.1-20260406", "zai-org/GLM-5.1", "hf/zai-org/GLM-5.1", "requesty/zai/glm-5.1", "vercel/zai/glm-5.1"]
card_usd_per_m: "1.4 in, 4.4 out, at z-ai/fp8"
cheapest_list_usd_per_m: "0.9 in, 2.9 out, at chutes/fp8 on openrouter"
cheapest_effective_usd_per_m: "0.3379 in, 2.8992 out, at chutes/fp8 on openrouter"
context: 204800
max_output: 131072
input: ["text"]
output: ["text"]
released: "2026-04-07"
api: ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"]
params: ["frequency_penalty", "include_reasoning", "logit_bias", "logprobs", "max_tokens", "min_p", "presence_penalty", "reasoning", "repetition_penalty", "response_format", "seed", "stop", "structured_outputs", "temperature", "tool_choice", "tools", "top_k", "top_logprobs", "top_p"]
endpoints: 30
gateways: "openrouter (18), requesty (5), vercel (4), hf (3)"
no_training: 23
trains: 0
retains_prompts: 7
coding: 55.8000
agentic: 23.9000
---
# Z.ai: GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on a single task for more than 8 hours—autonomously planning, executing, and improving itself throughout the process—ultimately delivering complete, engineering-grade results.