glm-5-2 vs gpt-4.1
glm-5-2 is 1.4× cheaper on input than gpt-4.1.
| glm-5-2 | gpt-4.1 | |
|---|---|---|
| Input / 1M | $1.40 | $2.00 |
| Cached input / 1M | $0.14 | $0.50 |
| Output / 1M | $4.40 | $8.00 |
| Context window | 1M | 1M |
| Max output | 131K | 33K |
| Provider | Mistral | OpenAI |
| Vision | No | Yes |
| Tool calling | Yes | Yes |
| Token count | estimated | exact |
Which to pick
- Cheaper input: glm-5-2
- Cheaper output: glm-5-2
- Larger context: glm-5-2
List price is not production cost. Output length, cache hit rate, retries and task quality move the real number more than the headline rate does — price your own prompt on the token ledger before deciding.
Related comparisons
glm-5-2 detail · gpt-4.1 detail · All Mistral pricing · All comparisons