Comparisons

Gemma 4 31B-it FP8 vs GLM 4.5 Air

On provider list prices, GLM 4.5 Air costs $0.20 per million input tokens against $0.39 for Gemma 4 31B-it FP8: 1.9x apart. Output is $1.10 against $0.97. On Allocate both bill at list plus the 7% transaction fee.

Gemma 4 31B-it FP8G GLM 4.5 Air
LabGoogleZ.ai
AccessOpen weightsOpen weights
Context window256K tokens128K tokens
List price, input$0.39 / M tokens$0.2 / M tokens
List price, output$0.97 / M tokens$1.1 / M tokens
Cached inputn/a$0.03 / M tokens
LicenseApache 2.0MIT
Fine-tunableYesYes

Specifications and provider list prices from the Allocate catalog, checked 2026-07-08. Billed price is list plus the 7% transaction fee.

What the numbers say

Take 1,000,000 requests a month at 1,200 input and 350 output tokens each. That workload costs $625 a month on GLM 4.5 Air and $807.50 on Gemma 4 31B-it FP8 at list: a gap of $182.50, or 1.3x.

Gemma 4 31B-it FP8 reads 256K tokens per request against 128K for GLM 4.5 Air, 2.0x the window. That decides which one can take whole documents without splitting them.

GLM 4.5 Air$0.20$1.10
Gemma 4 31B-it FP8$0.39$0.97
InputOutput

Choose Gemma 4 31B-it FP8 for

  • The longer context window (256K vs 128K tokens)
  • Fine-tuning under a permissive license (Apache 2.0)
Gemma 4 31B-it FP8 details

Choose GLM 4.5 Air for

  • The lower list price ($0.20 in / $1.10 out per M tokens)
  • Fine-tuning under a permissive license (MIT)
  • Published cached-input pricing ($0.03 per M tokens)
GLM 4.5 Air details

Common questions

Which is cheaper, Gemma 4 31B-it FP8 or GLM 4.5 Air?

GLM 4.5 Air, on this workload shape. At list prices it is $0.20/$1.10 per million tokens in and out against $0.39/$0.97 for Gemma 4 31B-it FP8. Billed on Allocate: $0.21/$1.18 against $0.42/$1.04, list plus 7%.

Which has the bigger context window?

Gemma 4 31B-it FP8: 262,144 tokens (256K) against 131,072 (128K) for GLM 4.5 Air.

Can I fine-tune Gemma 4 31B-it FP8 or GLM 4.5 Air?

Both publish open weights (Gemma 4 31B-it FP8: Apache 2.0; GLM 4.5 Air: MIT), so both can be fine-tuned. On Allocate the trained weights stay inside your boundary and belong to you.

Related comparisons

Run the numbers on your workload

Or don’t choose. On Allocate a route name is the contract: point yours at one model today, swap to the other tomorrow, and compare them on your live traffic with per-token metering.