What this model error usually means
Z.ai: GLM 5.1 returning 400 / context length exceeded means you should first confirm whether model ID z-ai/glm-5.1 is visible for this Zhipu AI (GLM) key, then separate permission, context, capability, rate limit, or route issues.
- Model: z-ai/glm-5.1
- Provider: Zhipu AI (GLM)
- Status code: 400