glm-5.3 vs glm-5.3-flashx-legal
| glm-5.3 | glm-5.3-flashx-legal | |
|---|---|---|
| Providers | Zhipu AI | Zhipu AI |
| Input $/M | $0.31 | $0.08 |
| Output $/M | $1.08 | $0.27 |
| Output multiplier | ×3.50 | ×3.50 |
| Context window | 1M tokens | 1M tokens |
| Intelligence index | 44.8 | — |
| Coding index | 74.8 | — |
What the numbers mean
glm-5.3-flashx-legal is roughly 4.0× cheaper on input than glm-5.3. If your workload passes the quality bar on the cheaper model, that gap compounds across every request; route to glm-5.3 deliberately rather than by default.
Tags: glm-5.3 — Chat, Reasoning, Coding, Vision, 工具调用, Long context · glm-5.3-flashx-legal — Chat, Reasoning, Coding, Vision, 视频理解, 工具调用, Long context
Code
from openai import OpenAI
client = OpenAI(base_url="https://starseaapi.com/v1", api_key="sk-...")
# glm-5.3
client.chat.completions.create(model="glm-5.3", messages=[{"role":"user","content":"Hi"}])
# glm-5.3-flashx-legal
client.chat.completions.create(model="glm-5.3-flashx-legal", messages=[{"role": "user", "content": "Hi"}])