GLM 5.1 API

Zhipu's GLM 5.1, through an OpenAI-compatible API. Providers quote it on an open exchange, and each request goes to the offer with the lowest estimated charge that meets your rules.

Facts

Model name
glm-5.1
Maker
Zhipu
Context window
8,000 tokens
Input price
$0.825 per million tokens
Output price
$3.301 per million tokens
Providers
1 independent provider
Regions
global

Providers

Scores

Scores: Artificial Analysis (https://artificialanalysis.ai/)

Scores: Epoch AI, 'Capabilities & Benchmarking' (https://epoch.ai/benchmarks)

Request

curl https://router.inference.ai.exchange/v1/chat/completions \
  -H "Authorization: Bearer $LIQUID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.1",
    "messages": [{"role":"user","content":"Say hello."}]
  }'

Questions

What is GLM 5.1?
Served by intent-router: each job goes to the cheapest healthy upstream for this model.
How much does GLM 5.1 cost?
Offers now ask $0.825 per million input tokens and $3.301 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.
What is the context length of GLM 5.1?
The largest offer takes 8,000 input tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.
What can GLM 5.1 do?
Its providers list Reasoning budget, Reasoning effort, JSON object, Repetition penalty, Stop sequences, Top-k sampling, Top-p sampling, Text, Tools.
What inputs and outputs does GLM 5.1 support?
Text → Text.
Which providers serve GLM 5.1?
1 independent provider quote it now, with 1 offer. The table above ranks them by the cost of a typical job.
How do I call GLM 5.1?
Send "glm-5.1" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.
When was GLM 5.1 listed?
The exchange first listed it on 10/8/2026. This is not its release date.

Related pages