AI Rate Card

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.

FieldGemma 4 31B ITGLM-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%
Context262K +75%1M
Max output262K +75%1M
Providers37 +37.3%59
RegionsCH, EU, GLOBAL, USAPAC, EU, GLOBAL, US
Acceptsapplication/pdf, audio, file, image, image/gif, image/heic, image/heif, image/jpeg, image/png, image/webp, pdf, text, video, video/mp4, video/quicktime, video/webmfile, image, text
Returnstexttext
TypeText modelsText models
Free optionyesyes
Cheapest providerinferxedenai

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