# 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.

- Page: https://models.litellm.ai/models/gemma3-4b
- Lab: Google
- LiteLLM model name: `llamagate/gemma3-4b`
- Context window: 128,000 tokens
- Max output: 8,192 tokens
- Added to LiteLLM: January 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| LlamaGate | `llamagate/gemma3-4b` | $0.03 | $0.08 | – | – | – | 128K |

## Cost examples

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

## Features

Supported: Function calling, Structured output, Image input.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="llamagate/gemma3-4b",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
