Llama Guard 4 12B vs Ternary Bonsai 2 27B

Price, context window & benchmark comparison

M

Llama Guard 4 12B

Meta Llama
$0.18 / $0.18
Input / Output · per 1M tokens
VS
P

Ternary Bonsai 2 27B

Prism Ml
$0.075 / $0.50
Input / Output · per 1M tokens
Compare different models
M
P
Verdict: Llama Guard 4 12B is 1% cheaper than Ternary Bonsai 2 27B on a typical 3:1 input/output mix. Ternary Bonsai 2 27B has the larger context window (262K vs 164K).
Llama Guard 4 12BTernary Bonsai 2 27B
Input price / 1M$0.18$0.075
Output price / 1M$0.18$0.50
Blended price (3:1)$0.18$0.18
Cached input / 1M
Context window164K262K
Max output16K33K
Intelligence index
Coding index
Providers1
Best provider uptime (30m)100.0%
Vision inputYesYes
ReasoningNoYes
Tool callingNoYes
Released2025-04-302026-09-18
Retirement

Cost calculator

FAQ

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

Llama Guard 4 12B is 1% cheaper than Ternary Bonsai 2 27B on a typical 3:1 input/output mix.

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

Llama Guard 4 12B: 163,840 tokens. Ternary Bonsai 2 27B: 262,144 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Llama Guard 4 12B ≈ $450.00, Ternary Bonsai 2 27B ≈ $400.00.

More comparisons