| glm-4.5 | glm-4.6 | |
|---|---|---|
| Providers | Zhipu AI | Zhipu AI |
| Input $/M | $0.61 | $0.61 |
| Output $/M | $2.42 | $2.42 |
| Output multiplier | ×4.00 | ×4.00 |
| Context window | 128K tokens | 200K tokens |
| Intelligence index | — | — |
| Coding index | — | 45.8 |
Input pricing is close — 1.00× apart — so the decision should come down to measured quality on your own evaluation set rather than headline cost.
Tags: glm-4.5 — Chat, Reasoning, Coding · glm-4.6 — Chat, Reasoning, Coding
from openai import OpenAI
client = OpenAI(base_url="https://starseaapi.com/v1", api_key="sk-...")
# glm-4.5
client.chat.completions.create(model="glm-4.5", messages=[{"role":"user","content":"Hi"}])
# glm-4.6
client.chat.completions.create(model="glm-4.6", messages=[{"role": "user", "content": "Hi"}])