Gemma 4 31B IT vs GLM-5.2: API price and specs
Gemma 4 31B IT is 94% cheaper than GLM-5.2 on input price.
Gemma 4 31B IT is 94% cheaper than GLM-5.2 on output price.
Gemma 4 31B IT is 94% cheaper than GLM-5.2 on a 1M-in / 200k-out workload.
GLM-5.2 has a 300% larger context than Gemma 4 31B IT.
| Field | Gemma 4 31B IT | GLM-5.2 |
|---|---|---|
| Lowest input, per 1M | $0.011 | $0.17 +1445.5% |
| Median input, per 1M | $0.14 | $1.40 +900% |
| Lowest output, per 1M | $0.035 | $0.54 +1442.9% |
| Median output, per 1M | $0.40 | $4.40 +1000% |
| Lowest unit price | — | $0.033 / request |
| Cost of 1M in + 200k out | $0.018 | $0.28 +1444.4% |
| Context | 262K +75% | 1M |
| Max output | 262K +75% | 1M |
| Providers | 37 +37.3% | 59 |
| Regions | CH, EU, GLOBAL, US | APAC, EU, GLOBAL, US |
| Accepts | application/pdf, audio, file, image, image/gif, image/heic, image/heif, image/jpeg, image/png, image/webp, pdf, text, video, video/mp4, video/quicktime, video/webm | file, image, text |
| Returns | text | text |
| Type | Text models | Text models |
| Free option | yes | yes |
| Cheapest provider | inferx | edenai |
Your own workload: how many tokens the model gets (input) and gives back (output) - for example, in a month. The "Cost" row of the table above is recalculated for these numbers, for each model.
Computed from current offers each time the page opens; the best value of a row is bold, the percent is how far behind the best.
Providers selling both
abacus, aiand, aihubmix, aiml, berget, chutes, cortecs, deepinfra, digitalocean, edenai, fastrouter, friendli, huggingface, impossibl, io-net, kenari, kilo, lilac, meganova, neuralwatt, novita, ollama-cloud, openrouter, orcarouter, regolo-ai, requesty, siliconflow, togetherai, trustedrouter, vercel, zenmux
Frequently asked questions
Which is cheaper, Gemma 4 31B IT or GLM-5.2?
Gemma 4 31B IT is 94% cheaper than GLM-5.2 on input price. Gemma 4 31B IT is 94% cheaper than GLM-5.2 on output price. Gemma 4 31B IT is 94% cheaper than GLM-5.2 on a 1M-in / 200k-out workload.
Which has the larger context, Gemma 4 31B IT or GLM-5.2?
Gemma 4 31B IT: 262K tokens; GLM-5.2: 1M tokens.
Where can I use both Gemma 4 31B IT and GLM-5.2?
abacus, aiand, aihubmix, aiml, berget, chutes, cortecs, deepinfra, digitalocean, edenai, fastrouter, friendli, huggingface, impossibl, io-net, kenari, kilo, lilac, meganova, neuralwatt, novita, ollama-cloud, openrouter, orcarouter, regolo-ai, requesty, siliconflow, togetherai, trustedrouter, vercel, zenmux