Gemma 4 31B (free) (Google): live API pricing, context window and the best open-source alternatives, tracked daily by OpenSourceAI.tech.
Prices update automatically — checked hourly against provider list prices.
Independent benchmark scores for Gemma 4 31B (free), measured by Artificial Analysis. Higher is better. Measurement mode: Reasoning.
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.
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.
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.
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.
It generates about 35.4 tokens per second, with a median 1.04s delay before the first token. Measured independently by Artificial Analysis.
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.
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.