GLM-5.1
Zhipu AI · Text
Zhipu GLM-5.1, an enhanced GLM-5 with improved reasoning and coding. Served through getmodel's low-cost domestic-models group over an OpenAI-compatible endpoint. GLM-5.1 is available on GetModel via an OpenAI-compatible API, billed pay-as-you-go. Get one key and call it from any OpenAI SDK.
Pricing
| Item | Price |
|---|---|
| Input | $0.486 / 1M tokens |
| Output | $1.94 / 1M tokens |
Pricing by group
| Group | Input | Output |
|---|---|---|
| Domestic models | $0.486 | $1.94 |
| Default | $0.884 | $3.54 |
How to call
curl https://getmodel.ai/v1/chat/completions \
-H "Authorization: Bearer $GETMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.1","messages":[{"role":"user","content":"Hello"}]}' from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
resp = client.chat.completions.create(
model="glm-5.1",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content) Details
FAQ
How much does the GLM-5.1 API cost?
GLM-5.1 on GetModel costs $0.486 / 1M tokens (Input), $1.94 (Output), billed pay-as-you-go with no subscription.
How do I call GLM-5.1 via API?
Point any OpenAI-compatible client at https://getmodel.ai/v1 with your GetModel API key and set the model to "glm-5.1".
Can I use GLM-5.1 together with other models?
Yes — one GetModel API key works for GLM-5.1 and 30+ other models. Just change the model field.