aiapicompareaiapicompare
aiapicompare › All models › Gemma 3 4B IT

Gemma 3 4B IT: API pricing compared

Gemma 3 4B IT is available from 3 provider(s). Cheapest: OpenRouter at $0.040 per 1M input tokens and $0.050 per 1M output tokens. Context window: up to 131 072 tokens. Developer: unsloth.

ProviderInput $/1MOutput $/1MContext
OpenRouter
google/gemma-3-4b-it
$0.040$0.050131KGo to provider ↗ Set up
DeepInfra
google/gemma-3-4b-it
$0.050 +25 %$0.100131KGo to provider ↗ Set up
NanoGPT
unsloth/gemma-3-4b-it
$0.201 +401 %$0.201128KGo to provider ↗ Set up

Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.

Reference price: $0.062 per 1M tokens (blended 3:1), median of all providers · How we compare → · Wrong price? Report it

Price history (cheapest provider)

Price history is recorded daily – the chart appears after the first price change.

Quick start with OpenRouter

from openai import OpenAI
import os

client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
    model="google/gemma-3-4b-it",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

FAQ

Where is Gemma 3 4B IT cheapest?

Currently at OpenRouter ($0.040 / 1M). Prices are updated daily; the provider’s website is authoritative.

How do I use Gemma 3 4B IT in my tools?

All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.