Gemma 3 4B vs Llama 3.1 8B Instruct
Prices checked
Llama 3.1 8B Instruct takes 3 of 5 rounds against Gemma 3 4B. It is also the cheaper of the two to run, at $0.02 per million tokens against $0.04.
Gemma 3 4B
131k context · reads images · open weights
$0.04/M tokensCheapest price, at Kilo Gateway · 2.7¢ per 1,000 pages
Llama 3.1 8B Instruct
131k context · tool calling · open weights
$0.02/M tokensCheapest price, at Helicone · 1.4¢ per 1,000 pages
Maker's price in (lower wins)
$0.05/M
$0.05/M
Maker's price out (lower wins)
$0.10/M
$0.08/M
Cheapest price (lower wins)
$0.04/M at Kilo Gateway
$0.02/M at Helicone
Maker's price, blended (lower wins)
$0.06/M
$0.06/M
Cost per 1,000 pages (lower wins)
2.7¢
1.4¢
Context
131k tokens
131k tokens
Open weights
yes
yes
Tool calling
no
yes
Structured output
yes
yes
Reads images
yes
no
Reasoning
no
no
Released
13 Mar 2025
23 Jul 2024
Providers selling it
12
29
Price we measure against
OpenRouter
OpenRouter
Trains on your prompts (no is better)
not published
not published
Providers selling both · 8
Kilo Gateway$0.04 / $0.03
TrustedRouter$0.05 / $0.03
DeepInfra$0.06 / $0.03
Eden AI$0.06 / $0.03
OpenRouter$0.06 / $0.06
Hugging Face Inference Providers$0.06 / $0.06
NanoGPT$0.20 / $0.02
Merge Gateway$0.05 / $0.22
Gemma 3 4B, then Llama 3.1 8B Instruct, per million tokens.
Go further
Add a third or fourth model, or change the weighting, in the tool.
What moved this week
Nous Portal · 130% dearer · 5¢ / 8¢ 2¢ / 4¢- 5¢ / $0.10 4¢ / 5¢
OpenRouter · 47% dearer · 5¢ / $0.10 4¢ / 5¢
Eden AI · 445% dearer · $0.15 / $0.15 2¢ / 5¢
Frequently asked
- Which is cheaper, Gemma 3 4B or Llama 3.1 8B Instruct?
- Llama 3.1 8B Instruct, at $0.02 per million tokens against $0.04 for Gemma 3 4B, blended 3 in : 1 out, read on 31 Oct 2026.
- Where is each one cheapest?
- Gemma 3 4B: $0.04 at Kilo Gateway. Llama 3.1 8B Instruct: $0.02 at Helicone.
- Can I buy both from one provider?
- Yes. 8 providers sell both: Kilo Gateway, TrustedRouter, DeepInfra, Eden AI, OpenRouter, Hugging Face Inference Providers, and more. The cheapest of them for the two together is Kilo Gateway.
- Which holds more context?
- Both hold 131k tokens in one call.
Prices exclude tax, read 31 Oct 2026 from each provider's own catalog. They are per M tokens, blended 3 in : 1 out, and a page is 600 tokens in and 60 out. Bars are scaled to the larger value in each row.
Related comparisons