Skip to content

Head to head

Gemma 4 31B vs GLM 5.3 Flash

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.3 Flashglm-5.3-flash
Input / 1M$0.042$0.0052best
Output / 1M$0.126$0.054best
Cache read / 1M(discounted cache hits)——
Official price(publisher list)$0.12$0.015
Saving65% offbest65% offbest
Context window256K1.0Mbest
Max output131.1Kbest131.1Kbest
Intelligence Index(Artificial Analysis)4.427.7best
Coding index——
Output speed(median tok/s)35 tok/s61 tok/sbest
Time to first token1.11sbest1.47s
Modalityimageimage
Prompt cacheSupportedSupported
Network fee(per request)$0.00$0.00

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

Is Gemma 4 31B cheaper than GLM 5.3 Flash?

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

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

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

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

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