All models

Gemma 4 31B vs Llama 4 Scout

Gemma 4 31B at $0.115 in and $0.391 out and Llama 4 Scout at $0.115 in and $0.345 out — per million tokens, from the same wallet.

Gemma 4 31B

Google

0.09¢

for a client proposal

$0.115 in · $0.391 out / 1M

262K context · released 4 months ago

Full page →
M

Llama 4 Scout

Meta

0.09¢

for a client proposal

$0.115 in · $0.345 out / 1M

328K context · released April 2025

Full page →

Asking all both at once — identical prompt, identical context — costs about 0.17¢ for a typical client proposal.

At a glance

  • All 2 cost the same on input.
  • Cheapest output: Llama 4 Scout at $0.345 per million tokens.
  • Largest context: Llama 4 Scout at 328K tokens — about 470 pages.

Cost per task

Estimated totals at the rates above. Solid bar is input, lighter bar is output.

Quick code fix

2K in · 500 out
Gemma 4 31B
0.04¢
Llama 4 Scout
0.04¢

Draft a client proposal from notes

5K in · 800 out
Gemma 4 31B
0.09¢
Llama 4 Scout
0.09¢

Context-heavy session (Alyph workspace)

155K in · 4K out
Gemma 4 31B
1.9¢
Llama 4 Scout
1.9¢

Analyze a 50-page legal contract

35K in · 1K out
Gemma 4 31B
0.44¢
Llama 4 Scout
0.44¢

Large architecture refactor

250K in · 3K out
Gemma 4 31B
Llama 4 Scout

Solid part of each bar is input tokens, the lighter part is output. Models that don’t fit a task are marked instead of priced.

Cost vs Token Amount

Drag the slider to adjust the split between input and output workload.

80% Input20% Output
free$0.09$0.170 tokens250k500k750k1000k
Gemma 4 31B
Llama 4 Scout

Adjust the ratio slider to change how output tokens influence the final price for equivalent workloads.

Pricing

Gemma 4 31B
Llama 4 Scout
Input / 1M tokens
$0.115
$0.115
Output / 1M tokens
$0.391
$0.345
Cached input / 1M
$0.115

Specs

Gemma 4 31B
Llama 4 Scout
Provider
Released
4 months ago
April 2025
Context window
262K
328K
Max output
262K
16K
Input
Images, Text, and Video
Text and Images
Output
Text
Text
Reasoning
Shows its thinking
Answers directly
Knowledge cutoff
2024-08-31

Try it with real numbers

2K tokens in · 500 tokens out.

Gemma 4 31B

Google

0.04¢

for this task

54% input · 46% output

Full pricing →

Llama 4 Scout

Meta

0.04¢

for this task

57% input · 43% output

Full pricing →

All 2, same prompt and context: 0.08¢. That is the entire cost of the comparison.

Your $5 welcome credit covers about 6,038 of these.

Which should you pick?

For long documents, Llama 4 Scout has the largest context window here — 328K tokens.

On price, Llama 4 Scout is the cheapest of the two on a typical task, at about 0.09¢.

If you want to watch the model think, Gemma 4 31B shows reasoning; the other answers directly.

Or don’t pick. Send the identical prompt to all both, read the answers side by side, and keep the winner. How to run a fair bake-off →

Questions, answered

Which is cheaper, Gemma 4 31B or Llama 4 Scout?

On a typical client proposal (5K tokens in, 800 out): Llama 4 Scout at 0.09¢; Gemma 4 31B at 0.09¢. Long prompts can change the order when long-context rates apply.

Which has the largest context window?

Llama 4 Scout — 328K tokens, about 470 pages.

Can I run Gemma 4 31B and Llama 4 Scout side by side on Alyph?

Yes — that is what Alyph is built for: the identical prompt with identical context to all 2, answers rendered side by side, billed from one wallet. This exact combination costs about 0.17¢ for a typical task.

Ask both at once

Identical prompt, identical context, answers side by side — about 0.17¢ for a typical client proposal. Free to start, with $5 of credit.