Open Gemma instruction model for efficient chat and self-hosted deployments
gemma4:31b by google is offered by 3 providers on this page. Public prices are shown for 2 of them. Its reference price is $0.40 per 1M input tokens and $1.00 per 1M output tokens. The lowest paid channel is Ollama Cloud at $0.14 / $0.40 per 1M, about 2.9× below the reference price. It also has 1 free ($0) channel; free tiers usually carry rate limits, and subscription-covered access bills $0 per token only after the subscription fee.
Artificial Analysis rates it 14.7 on the Intelligence Index, with 43.4 for coding and 4.2 for agentic tasks. Against its lowest blended price of $0.205 per 1M, that is roughly 72 index points per dollar, which is the value ratio the leaderboards rank on. Median output speed is 36 tokens per second, with 1.07s to the first token.
The context window is 262,144 tokens, with an output limit of 131,072 tokens. It supports tool use and structured output. Accepted input modalities are Text and Image. The weights are open, so it can also be self-hosted or served through a gateway of your choice. Providers report the capability flags inconsistently, so verify a specific feature against the host you plan to use. Its training knowledge cuts off at 2025-01.
Quality is independently evaluated by Artificial Analysis. Speed/latency are model-level medians.
| Provider | Tier | Input | Output | Cache read | Cache write | Context | Output limit | Status |
|---|---|---|---|---|---|---|---|---|
| Poe google/gemma-4-31b | Gateway | Free | — | — | 262,144 | 8,192 | ||
| Ollama Cloud gemma4:31b | Cloud | $0.14 | $0.40 | $0.05 | — | 262,144 | 262,144 | |
| NanoGPT | Gateway | $0.40 | $1.00 | $0.40 | — | 262,144 | 131,072 |
Sorted by blended price (input×0.75 + output×0.25) asc. The official channel always shows regardless of rank. Whether a gateway's low price is actually usable can't be verified.
1 more channels offer $0 (Poe); free tiers usually have rate limits and no SLA, excluded from ranking.