GLM 5.1

Chat model by Z-AI.

Z-AI language model featuring a 200,000-token context window. Engineered for dialogue, instruction following, and versatile text generation.

Models / GLM 5.1ID: dashscope/glm-5.1

Context window

Maximum input context length.

200K

tokens

Max output

Maximum completion tokens per request.

128K

tokens

Maker

Z-AI

Served On: Alibaba US

Specifications

Context window, ranked against other chat models

Proportional scale: 0 to 1.05M tokens. Not ranked, no published context window: qwen-plus-2025-09-11, voxtral-small-24b-2507, qwen3.6-plus-2026-04-02.

Context window

200.0K

tokens
Max output

128K

tokens
Modality

chat

Vision
Function calling
System prompt

Benchmarks

LMSYS Chatbot Arena (text)Rank #39 · Score 1462
Source: huggingface.co · Leaderboard: 2026-10-152026-10-15

Pricing

Rates are read live

Pricing for glm-5.1 is fetched from the live catalogue on load, so it is never served from a cache that could outlive a repricing.

Availability

Not enough data yet

We have not collected enough health probes for this model to publish an uptime or latency figure. A percentage from a handful of samples is fabricated precision, so none is shown until the sample count supports one.

How GLM 5.1 is billed

Billed at the provider's list price, with no per-token markup.

Exact list price
Tokens settle at the published rate of the model that served your call.
Cache discounts passed through
Provider prompt-caching discounts reach your balance with no added fee.
Cost on every response
Each response carries the x-nr-request-cost header, so you can reconcile spend per request.

More from Z-AI

Start building with glm-5.1

One API key, three steps. Choose your tool to begin.

  1. Set your API key

    export NROUTER_API_KEY="<YOUR_API_KEY>"
  2. Configure Claude Code

    Choose a tool, then copy its setup from the panel.

npm install -g @anthropic-ai/claude-code
Claude Code · dashscope/glm-5.1
# Point Claude Code to nRouter gateway
export ANTHROPIC_BASE_URL="https://api.nrouter.ai"
export ANTHROPIC_API_KEY="$NROUTER_API_KEY"

# Launch with dashscope/glm-5.1
claude --model dashscope/glm-5.1

FAQs

What is GLM 5.1?

Z-AI language model featuring a 200,000-token context window. Engineered for dialogue, instruction following, and versatile text generation.

How much does GLM 5.1 cost?

GLM 5.1 is billed at the provider's list price on nRouter with no per-token markup — tokens settle at the exact upstream rate. Input and output rates are read live, so see the pricing section above for the current figures.

What is the context length of GLM 5.1?

GLM 5.1 supports a 200,000-token context window. It can generate up to 128,000 output tokens per request.

Does GLM 5.1 support tool calling and structured outputs?

Yes. GLM 5.1 supports tool calling (function calling), so it can invoke external tools and APIs during a conversation.

What inputs and outputs does GLM 5.1 support?

GLM 5.1 takes text as input and returns text as output.

How do I use GLM 5.1 via nRouter?

Use any OpenAI-compatible client: point it at https://api.nrouter.ai/v1 with your nRouter API key and set the model to "dashscope/glm-5.1". The quick-start panel above has a copy-paste curl command for this model.

When was GLM 5.1 released?

GLM 5.1 was released on October 6, 2026.

Where is the GLM 5.1 documentation?

Start at nrouter.ai/docs. The quick-start guide (nrouter.ai/docs/getting-started/quick-start) covers API keys and your first request, and the API reference (nrouter.ai/docs/api-reference) lists every parameter.

What other text models does Z-AI have?

Other Z-AI text models on nRouter include GLM 4.6 (nrouter.ai/models/zai-org-glm-4.6), GLM 5.2 (nrouter.ai/models/glm-5.2-maas), GLM 5.2 Fast Preview (nrouter.ai/models/glm-5.2-fast-preview), GLM 4.7 (nrouter.ai/models/glm-4.7-maas).