← All news

News / AI models / Z.ai

GLM 5.1

GLM 5.1 is an open-weight model by Z.ai, released 7 Apr 2026. It reads text and writes text, with a context window of 205K tokens and up to 131K tokens out. Through OpenRouter it costs $1.4 per million input tokens and $4.4 per million output tokens.

Facts from OpenRouter and Hugging Face · updated 24 Nov 2026

1,000 requests with 2,000 tokens in and 500 tokens out each cost about $5 through OpenRouter.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{"model": "z-ai/glm-5.1", "messages": [{"role": "user", "content": "Hello"}]}'

What is the context window of GLM 5.1?

GLM 5.1 has a context window of 204,800 tokens, about 307 pages of text, and can write up to 131,072 tokens in one reply.

How much does GLM 5.1 cost?

Through OpenRouter, $1.4 per million input tokens and $4.4 per million output tokens. The maker's own price can differ.

Is GLM 5.1 open source?

Yes, its weights are published on Hugging Face as zai-org/GLM-5.1 under the mit licence.

When was GLM 5.1 released?

It became available on 7 Apr 2026.

Something wrong? Email hello@capylaunch.com. All AI models