Anthropic
glm-4.5-air
z-ai/glm-4.5-air
Price per million tokens
- Input
- $0.165
- Output
- $1.076
- Cache write
- not offered
- Cache read
- $0.032
What you pay. It is what the tokens cost us to buy plus 20%, and your usage page shows what we paid beside what you paid on every request you send.
Limits
- Context window
- 131,072 tokens
- Max output
- 98,304 tokens
- Images
- text only
What it costs to run
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0007 | $0.70 |
| Long document summary | 50,000 | 2,000 | $0.0104 | $10.38 |
| Agent step with tools | 20,000 | 1,500 | $0.0049 | $4.91 |
| 1M in, 1M out | 1,000,000 | 1,000,000 | $1.2407 | $1240.68 |
Calling it
const res = await client.chat.completions.create({ model: "z-ai/glm-4.5-air", messages: [{ role: "user", content: "Hello" }], });