Zhipu: glm-5.1
glm-5.1
GLM-5.1 is Zhipu's latest flagship model, with major improvements in coding and long-horizon tasks, able to plan, execute, and iterate autonomously for extended work.
Provider: Zhipu|Input types
Output types|Publish Time: None
Group price
Price information for different user groups
Auto Group routing → default
| Group | Billing type | Input Price | Output Price |
|---|---|---|---|
| default | Pay as you go | $0.9200 / M tokens$1.1500 / M tokens | $3.2000 / M tokens$4.0000 / M tokens |
Provider
Pricing$0.9200 / M tokens
Input video-
Input audio-
Web Search-
Cache pricing-
Context window-
Max output-
Latency397 ms
Throughput170 TPS
Availability97.50%
Chat
Start a conversation
Type a message below to begin
API call example
Connect quickly using the standard OpenAI-compatible APIPython
1
import openai2
3
client = openai.OpenAI(4
api_key="<YOUR_API_KEY>",5
base_url="http://localhost:3000/v1"6
)7
8
response = client.chat.completions.create(9
model="glm-5.1",10
messages=[11
{"role": "user", "content": "What model are you?"}12
]13
)14
15
print(response.choices[0].message.content)