LiteLLMModels

Gemma3 4B API Pricing

As of October 10, 2026, Gemma3 4B costs $0.03 per 1M input tokens and $0.08 per 1M output tokens on LlamaGate. It has a 128,000-token context window and returns up to 8,192 tokens per response.

By GoogleModel ID llamagate/gemma3-4bPrices updated Checked
Input
$0.03 / 1M tokens
Output
$0.08 / 1M tokens
Context window
128,000 tokens
Max output
8,192 tokens
Providers
1
Added to LiteLLM
January 2026

Gemma3 4B pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputContext
LlamaGatellamagate/gemma3-4b$0.03$0.08128K

What Gemma3 4B costs in practice

1,000 requests with 2,000 input and 500 output tokens each

LlamaGate$0.10

100 long-document requests with 100,000 input and 2,000 output tokens each

LlamaGate$0.316

Gemma3 4B features

Use Gemma3 4B with LiteLLM

Call Gemma3 4B through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="llamagate/gemma3-4b",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gemma3-4b
    litellm_params:
      model: llamagate/gemma3-4b
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "gemma3-4b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Gemma3 4B FAQ

How much does Gemma3 4B cost?

Gemma3 4B costs $0.03 per 1M input tokens and $0.08 per 1M output tokens on LlamaGate.

What is the context window of Gemma3 4B?

Gemma3 4B has a 128,000-token context window and returns up to 8,192 tokens per response.

Which providers offer Gemma3 4B?

Gemma3 4B is available from LlamaGate through LiteLLM, using the model name llamagate/gemma3-4b.

How do I call Gemma3 4B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="llamagate/gemma3-4b", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Gemma3 4B support?

Gemma3 4B supports function calling, structured output and image input.

When did LiteLLM add Gemma3 4B?

Gemma3 4B was added to LiteLLM's model price file in January 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.

LiteLLM docs: LlamaGate.

Provider pages: LlamaGate.