| glm-4.5 | glm-4.7 | |
|---|---|---|
| Providers | Zhipu AI | Zhipu AI |
| Input $/M | $0.61 | $0.30 |
| Output $/M | $2.42 | $1.21 |
| Output multiplier | ×4.00 | ×4.00 |
| Context window | 128K tokens | 200K tokens |
| Intelligence index | — | — |
| Coding index | — | 45.3 |
glm-4.7 is roughly 2.0× cheaper on input than glm-4.5. If your workload passes the quality bar on the cheaper model, that gap compounds across every request; route to glm-4.5 deliberately rather than by default.
Tags: glm-4.5 — Chat, Reasoning, Coding · glm-4.7 — 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.7
client.chat.completions.create(model="glm-4.7", messages=[{"role": "user", "content": "Hi"}])