# 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.

## Specifications

| | Gemma 4 31B-it FP8 | GLM 4.5 Air |
| --- | --- | --- |
| Lab | Google | Z.ai |
| Access | Open weights | Open weights |
| Context window | 256K tokens | 128K tokens |
| List price, input | $0.39 / M tokens | $0.20 / M tokens |
| List price, output | $0.97 / M tokens | $1.10 / M tokens |
| Cached input | n/a | $0.03 / M tokens |
| License | Apache 2.0 | MIT |
| Fine-tunable | Yes | Yes |

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.

## Choose Gemma 4 31B-it FP8 for

- The longer context window (256K vs 128K tokens)
- Fine-tuning under a permissive license (Apache 2.0)

## 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)

## 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.

---

[HTML page](https://allocate.network/compare/google-gemma-4-31b-it-vs-z-ai-glm-4-5-air) · [Gemma 4 31B-it FP8](https://allocate.network/models/google-gemma-4-31b-it.md) · [GLM 4.5 Air](https://allocate.network/models/z-ai-glm-4-5-air.md) · [Machine-readable catalog](https://allocate.network/catalog.json)
