Gemma 3n 4B (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 3n 4B, measured by Artificial Analysis. Higher is better.
Gemma 3n 4B 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 3n 4B 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 1.2 on the Artificial Analysis intelligence index.
The weights are free and open — you can self-host Gemma 3n 4B and pay nothing per token. If you prefer a hosted API, list prices are $0.06 per million input tokens and $0.12 per million output tokens.
Independent benchmarks from Artificial Analysis give it GPQA 29.6%, MMLU-Pro 48.8%, Humanity's Last Exam 4.4%, Long Context Reasoning 0%, LiveCodeBench 14.6%, SciCode 8.1%, MATH-500 77.1%, AIME 13.7%, AIME 2025 14.3%, IFBench 27.9%, τ²-Bench 5%, τ-Bench Banking 0.2%, Terminal-Bench 0.7%, Terminal-Bench Hard 2.3%. It is particularly used for code generation.
Yes. Gemma 3n 4B 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.