Models
GLM 5.1
Model id: alibaba_qwen/glm-5.1
- Coding
- Tools
Zhipu GLM 5.1 via Alibaba Cloud Model Studio for coding, tools, and general enterprise chat.
Best for
everyday coding assistants and tool-using workflows before stepping up to GLM 5.2.
- Provider
- Alibaba Cloud Model Studio
- Context window
- 198,000
- Release date
- 2025-12-01
- Reasoning effort
- nonehighDefault: high
Pricing
Input
$1.2731 / 1M
Output
$5.0941 / 1M
Amounts in Canadian dollars, converted at the Bank of Canada indicative rate (2026-07-31).
Performance
Reading
Last 7 days
Not enough data to display the chart.
Activity
Tokens
—
—
—
—
—
Top 5 tools · last 7 days
Not enough data to display tool activity.
Availability
Availability (%)
Last 7 days
- Operational probes
- 100% over 7 days
- Samples
- 8,608
Quick start
Call the API with a tonia_ key and the exact model id below.
curl
curl https://pass.tonia.ca:8443/v1/chat/completions \
-H "Authorization: Bearer $TONIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "alibaba_qwen/glm-5.1",
"messages": [{"role":"user","content":"Bonjour"}]
}'Python (OpenAI SDK)
import os
from openai import OpenAI
client = OpenAI(
base_url="https://pass.tonia.ca:8443/v1",
api_key=os.environ["TONIA_API_KEY"],
)
response = client.chat.completions.create(
model="alibaba_qwen/glm-5.1",
messages=[{"role": "user", "content": "Bonjour"}],
)TypeScript (OpenAI SDK)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://pass.tonia.ca:8443/v1",
apiKey: process.env.TONIA_API_KEY,
});
const response = await client.chat.completions.create({
model: "alibaba_qwen/glm-5.1",
messages: [{ role: "user", content: "Bonjour" }],
});