Google

GGemma 4 31B (free)OPEN

Gemma 4 31B (free) (Google): live API pricing, context window and the best open-source alternatives, tracked daily by OpenSourceAI.tech.

Context window
262K
tokens
Input price
Free
per M tokens
Output price
Free
per M tokens
Provider
Google

Prices update automatically — checked hourly against provider list prices.

See model comparisons → Compare all model prices

Benchmarks & performance

Independent benchmark scores for Gemma 4 31B (free), measured by Artificial Analysis. Higher is better. Measurement mode: Reasoning.

Intelligence index29.4
Coding index43.4
GPQA85.7%
Humanity's Last Exam22.7%
Long Context Reasoning62%
SciCode43.4%
IFBench75.6%
τ²-Bench59.9%
τ-Bench Banking15.1%
Terminal-Bench43.4%
Terminal-Bench Hard36.4%
⚡ Speed35.4 tokens/sec
⏱ Latency1.04s to first token
Benchmark data by Artificial Analysis

About this model

Gemma 4 31B (free) is an open-weight AI model by Google. You can download and self-host it for free; the prices below are hosted-API list prices, tracked hourly, for when you prefer convenience over self-hosting.

Frequently asked questions

What is Gemma 4 31B (free)?

Gemma 4 31B (free) is an AI language model from Google. It is open-weight: you can download it and run it on your own hardware, for free. It scores 29.4 on the Artificial Analysis intelligence index.

Is Gemma 4 31B (free) free?

The weights are free and open — you can self-host Gemma 4 31B (free) and pay nothing per token. If you prefer a hosted API, list prices are Free per million input tokens and Free per million output tokens.

What is Gemma 4 31B (free) good at?

Independent benchmarks from Artificial Analysis give it GPQA 85.7%, Humanity's Last Exam 22.7%, Long Context Reasoning 62%, SciCode 43.4%, IFBench 75.6%, τ²-Bench 59.9%, τ-Bench Banking 15.1%, Terminal-Bench 43.4%, Terminal-Bench Hard 36.4%. It is particularly used for code generation.

How fast is Gemma 4 31B (free)?

It generates about 35.4 tokens per second, with a median 1.04s delay before the first token. Measured independently by Artificial Analysis.

Can I self-host Gemma 4 31B (free)?

Yes. Gemma 4 31B (free) has open weights, so you can download it and run it on your own GPU or server with tools like Ollama, vLLM or llama.cpp — with no per-token cost.

Open-source alternatives

Depending on your workload, an open-weight model that you can self-host may cut costs dramatically or remove per-token pricing entirely. Our comparison pages put this model side by side with the strongest open-source contenders.

Gemini 3.1 Pro PreviewGoogleGemini 2.5 ProGoogleGemini 3.5 FlashGoogleGemini 3.6 FlashGoogleGemini 3 Flash PreviewGoogleGemini 2.5 FlashGoogle