90 days of the enterprise, pro and team plans free, no card needed. See the plans
Model comparison
Google's Gemma 3 4B against Meta's Llama 3.2 1B Instruct: vendor list prices, limits, abilities and the Artificial Analysis indexes side by side - and what OpenSmartRoute does when both are available.
Gemma 3 4B lists at $0.063 per million tokens blended against $0.071 for Llama 3.2 1B Instruct.
Intelligence index 5 against 5: within a point of each other.
Gemma 3 4B reads 131k tokens at once, Llama 3.2 1B Instruct 60k.
only Gemma 3 4B offers structured output, image input.
Gemma 3 4B was released about 6 months later.
Vendor list prices per million tokens and published limits; indexes are Artificial Analysis composites (0-100).
| Specification | Gemma 3 4B | Llama 3.2 1B Instruct |
|---|---|---|
| Input price / 1M tokens | $0.05 | $0.03 |
| Output price / 1M tokens | $0.10 | $0.20 |
| Blended (3 in : 1 out) | $0.06 | $0.07 |
| Cached input / 1M | - | - |
| Context window | 131K | 60K |
| Max output | 16K | 54K |
| Input | text, image | text |
| Output | text | text |
| Tool calls | ||
| Structured output | ||
| Reasoning | ||
| Open weights | ||
| Intelligence index | 5 | 5 |
| Coding index | 3 | - |
| Agentic index | - | - |
| Released | Mar 13, 2025 | Sep 25, 2024 |
| Available on this deployment |
List price times tokens for three typical workloads; your mix of input and output decides which model's pricing suits you.
| Workload | Gemma 3 4B | Llama 3.2 1B Instruct | Difference |
|---|---|---|---|
| Support chat20M tokens in, 5M out a month - a help desk answering a few thousand conversations. | $1.50 | $1.55 | $0.05 less on Gemma 3 4B |
| Document summaries100M in, 5M out - long inputs, short answers. | $5.50 | $3.71 | $1.79 less on Llama 3.2 1B Instruct |
| Coding assistant60M in, 20M out - a team's editor assistant, output-heavy. | $5.00 | $5.64 | $0.64 less on Gemma 3 4B |
The two measure the same on the intelligence index, so the router treats them as peers and lets price, observed latency and your outcomes decide: Gemma 3 4B wins on cost, and a few bad outcomes on either move the next requests to the other.
# targets.yaml - both models as routing targets (metadata.model links each to the catalogue entry)
targets:
- { id: gemma-3-4b-it, kind: llm, metadata: { model: google/gemma-3-4b-it } }
- { id: llama-3.2-1b-instruct, kind: llm, metadata: { model: meta-llama/llama-3.2-1b-instruct } }
# rules.yaml - the cheaper model by default, the stronger one when the request is hard
rules:
- name: simple-requests-stay-cheap
when: { max_complexity: 0.45 }
prefer: [gemma-3-4b-it]
weight: 0.8
- name: hard-requests-escalate
when: { min_complexity: 0.45 }
prefer: [llama-3.2-1b-instruct]
weight: 0.8