glm-5.1

ChatGLM · Chat

ConversationThinking

NixAPI price, from

Input$1.774
Output$5.577

USD per 1M tokens · via group Alibaba-2 · Official list price $1.4 / $4.4

Get your API key →

About glm-5.1

GLM-5.1 is a model designed for long-horizon tasks. It can work autonomously and continuously for up to 8 hours within a single task — independently planning, executing, and self-improving to deliver complete, engineering-grade outcomes.

Price by routing group

Pick a group in the console when you create a key. Status is live from the router. Live status by group →

GroupGroup statusModel statusMultiplierInputOutputCache read
Alibaba-2…×1.2675$1.774$5.577$0.3295
Self-Deployed-3…×1.2675$1.774$5.577$0.3295
Alibaba-3…×1.859$2.603$8.18$0.4833
glm-1…×1.859$2.603$8.18$0.4833

Per token · USD per 1M tokens

Long-context pricing

  • Prompts over 32,000 tokens: input ×1.333333, output ×1.166667

Supported endpoints

openai

Call glm-5.1 in one request

Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.

curl https://api.nixapi.com/v1/chat/completions \
  -H "Authorization: Bearer $NIXAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Full API reference →

Questions about glm-5.1

How much does glm-5.1 cost on NixAPI?

From $1.774 per 1M input tokens and $5.577 per 1M output tokens in the Alibaba-2 group. Prices are pay-as-you-go in USD with no monthly minimum.

How do I call glm-5.1?

Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "glm-5.1".

Which routing groups serve glm-5.1?

glm-5.1 is available in 4 routing groups: Alibaba-2, Self-Deployed-3, Alibaba-3, glm-1. The lowest price is in Alibaba-2.

More from ChatGLM

Compare all ChatGLM models →