Price Per TokenPrice Per Token
Google
Google
vs
Meta-llama
Meta-llama

Gemma 3 4B vs Llama 3.2 3B Instruct

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Gemma 3 4B wins:

  • Cheaper input tokens
  • Better at coding
  • Better at math
  • Supports vision

Llama 3.2 3B Instruct wins:

  • Cheaper output tokens
  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
Price Advantage
Gemma 3 4B
Benchmark Advantage
Gemma 3 4B
Context Window
Llama 3.2 3B Instruct
Speed
Llama 3.2 3B Instruct

Pricing Comparison

Price Comparison

MetricGemma 3 4BLlama 3.2 3B InstructWinner
Input (per 1M tokens)$0.02$0.02 Gemma 3 4B
Output (per 1M tokens)$0.07$0.02 Llama 3.2 3B Instruct
Using a 3:1 input/output ratio, Llama 3.2 3B Instruct is 33% cheaper overall.

Gemma 3 4B Providers

Chutes $0.02 (Cheapest)
DeepInfra $0.04

Llama 3.2 3B Instruct Providers

DeepInfra $0.02 (Cheapest)
Novita $0.03
Cloudflare $0.05
Together $0.06
Hyperbolic $0.10

Benchmark Comparison

7
Benchmarks Compared
4
Gemma 3 4B Wins
1
Llama 3.2 3B Instruct Wins

Benchmark Scores

BenchmarkGemma 3 4BLlama 3.2 3B InstructWinner
Intelligence Index
Overall intelligence score
6.39.7
Coding Index
Code generation & understanding
2.9--
Math Index
Mathematical reasoning
12.73.3
MMLU Pro
Academic knowledge
41.734.7
GPQA
Graduate-level science
29.125.5
LiveCodeBench
Competitive programming
11.28.3
AIME
Competition math
6.36.7-
Gemma 3 4B shows stronger mathematical reasoning abilities.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Gemma 3 4B
Other models

Context & Performance

Context Window

Gemma 3 4B
96,000
tokens
Llama 3.2 3B Instruct
131,072
tokens
Max output: 16,384 tokens
Llama 3.2 3B Instruct has a 27% larger context window.

Speed Performance

MetricGemma 3 4BLlama 3.2 3B InstructWinner
Tokens/second34.9 tok/s44.1 tok/s
Time to First Token0.96s0.43s
Llama 3.2 3B Instruct responds 26% faster on average.

Capabilities

Feature Comparison

FeatureGemma 3 4BLlama 3.2 3B Instruct
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 3 4BLlama 3.2 3B Instruct
LicenseOpen SourceOpen Source
AuthorGoogleMeta-llama
ReleasedMar 2025Sep 2024

Gemma 3 4B Modalities

Input
textimage
Output
text

Llama 3.2 3B Instruct Modalities

Input
text
Output
text

Related Comparisons

Compare Gemma 3 4B with:

Compare Llama 3.2 3B Instruct with:

Frequently Asked Questions

Gemma 3 4B has cheaper input pricing at $0.02/M tokens. Llama 3.2 3B Instruct has cheaper output pricing at $0.02/M tokens.
Gemma 3 4B scores higher on coding benchmarks with a score of 2.9, compared to Llama 3.2 3B Instruct's score of N/A.
Gemma 3 4B has a 96,000 token context window, while Llama 3.2 3B Instruct has a 131,072 token context window.
Gemma 3 4B supports vision. Llama 3.2 3B Instruct does not support vision.