Gemma 2 27B vs Llama Guard 4 12B

Price, context window & benchmark comparison

G

Gemma 2 27B

Google
$0.65 / $0.65
Input / Output · per 1M tokens
VS
M

Llama Guard 4 12B

Meta Llama
$0.18 / $0.18
Input / Output · per 1M tokens
Compare different models
G
M
Verdict: Llama Guard 4 12B is 3.6× cheaper than Gemma 2 27B on a typical 3:1 input/output mix. Llama Guard 4 12B has the larger context window (164K vs 8K).
Gemma 2 27BLlama Guard 4 12B
Input price / 1M$0.65$0.18
Output price / 1M$0.65$0.18
Blended price (3:1)$0.65$0.18
Cached input / 1M
Context window8K164K
Max output2K16K
Intelligence index
Coding index
Providers1
Best provider uptime (30m)100.0%
Vision inputNoYes
ReasoningNoNo
Tool callingNoNo
Released2024-07-132025-04-30
Retirement

Cost calculator

FAQ

Which is cheaper, Gemma 2 27B or Llama Guard 4 12B?

Llama Guard 4 12B is 3.6× cheaper than Gemma 2 27B on a typical 3:1 input/output mix.

Gemma 2 27B vs Llama Guard 4 12B: which has a bigger context window?

Gemma 2 27B: 8,192 tokens. Llama Guard 4 12B: 163,840 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Gemma 2 27B ≈ $1,625, Llama Guard 4 12B ≈ $450.00.

More comparisons