Skip to content

Head to head

Gemma 4 31B vs GLM 5.3

Price, context window, capabilities and independently measured benchmark performance for two models you can call through the same [OI]-compatible endpoint.

2/4 selected
Spec
Gemma 4 31Bgemma-4-31b
Z.ai
GLM 5.3glm-5.3
Input / 1M$0.042$0.024best
Output / 1M$0.126best$0.49
Cache read / 1M(discounted cache hits)——
Official price(publisher list)$0.12$0.07
Saving65% offbest65% offbest
Context window256K1Mbest
Max output131.1Kbest131.1Kbest
Intelligence Index(Artificial Analysis)4.431.6best
Coding index——
Output speed(median tok/s)35 tok/s88 tok/sbest
Time to first token1.11s1.06sbest
Modalityimagetext
Prompt cacheSupportedSupported
Network fee(per request)$0.00$0.00

Shareable link: https://relayrouter.org/compare/gemma-4-31b-vs-glm-5.3

Is Gemma 4 31B cheaper than GLM 5.3?

No, on input tokens at list price: GLM 5.3 is $0.024 per 1M input tokens versus $0.042 for Gemma 4 31B. Output is $0.49 versus $0.126.

Which has the larger context window, Gemma 4 31B or GLM 5.3?

GLM 5.3 has the larger context window at 1M tokens, against 256K for Gemma 4 31B.

How do Gemma 4 31B and GLM 5.3 score on benchmarks?

Gemma 4 31B scores 4.4 and GLM 5.3 scores 31.6 on the Artificial Analysis Intelligence Index. Scores are sourced from Artificial Analysis and are only comparable within the same index version.