GLM 5.1 API

Zhipu GLM's chat model. Call it on 666 AI with the same API key as every other model. Pay as you go; prices follow the upstream in real time and this page updates hourly.

VendorZhipu GLM
Typechat
Price$1.3 per 1M input tokens · $5.2 per 1M output tokens
Context window128K tokens
Live testPassed our live test in the last 7 days
Model ID (use this in your request)alibaba:zhipu/glm-5.1
Sign up free & get an API keyTry it in the chatSee all model prices

How to call GLM 5.1

The API is OpenAI-compatible. Replace YOUR-ENDPOINT with the endpoint shown on your API Key page after you sign up, and YOUR-KEY with your key.

curl https://YOUR-ENDPOINT/v1/chat/completions \
  -H "Authorization: Bearer YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "alibaba:zhipu/glm-5.1", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://YOUR-ENDPOINT/v1", api_key="YOUR-KEY")
r = client.chat.completions.create(
    model="alibaba:zhipu/glm-5.1",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)

Similar models — price comparison

ModelPrice
GLM 5 Turbo$1.08 per 1M input tokens · $4.77 per 1M output tokens
GLM 5v Turbo$1.08 per 1M input tokens · $4.77 per 1M output tokens
Inkling$1.35 per 1M input tokens · $5.47 per 1M output tokens
Muse Spark 1.1$1.69 per 1M input tokens · $5.74 per 1M output tokens
Muse Spark 1.2$1.69 per 1M input tokens · $5.74 per 1M output tokens
Muse Spark 1.3$1.69 per 1M input tokens · $5.74 per 1M output tokens

More models from Zhipu GLM

ModelPrice
GLM 5.2$0.8276 per 1M input tokens · $2.6 per 1M output tokens
GLM 5.3 Flash$0.1453 per 1M input tokens · $0.27 per 1M output tokens
GLM 4.6$0.4336 per 1M input tokens · $1.73 per 1M output tokens
GLM 4.7$0.4336 per 1M input tokens · $1.73 per 1M output tokens
GLM 5$0.8672 per 1M input tokens · $3.9 per 1M output tokens
GLM 4.5$0.81 per 1M input tokens · $2.97 per 1M output tokens
GLM Ocr$0.0135 per page

FAQ

How much does the GLM 5.1 API cost?

On 666 AI, GLM 5.1 costs $1.3 per 1M input tokens · $5.2 per 1M output tokens. You pay only for what you use — no monthly fee. Prices follow the upstream in real time; this page updates every hour.

Can I use the official OpenAI SDK?

Yes. The API is OpenAI-compatible: in the OpenAI Python or Node.js SDK just change base_url and api_key, and set model to alibaba:zhipu/glm-5.1.

How do I pay?

Bank card (including Google Pay / Apple Pay), USDT / ETH, or bank wire. Top up once and usage is deducted as you go.