Llama Guard 4 12B vs Ternary Bonsai 2 27B

Prices checked

Llama Guard 4 12B takes 3 of 5 rounds against Ternary Bonsai 2 27B. It is also the cheaper of the two to run, at $0.14 per million tokens against $0.18.

MetaWins 3 rounds

Llama Guard 4 12B

164k context · reads images · open weights

$0.14/M tokens

Cheapest price, at Kilo Gateway · 9.5¢ per 1,000 pages

Prism ML

Ternary Bonsai 2 27B

262k context · tool calling · reads images

$0.18/M tokens

OpenRouter's own price · 7.5¢ per 1,000 pages

Maker's price in (lower wins)

$0.18/M

$0.07/M

Maker's price out (lower wins)

$0.18/M

$0.50/M

Cheapest price (lower wins)

$0.14/M at Kilo Gateway

none below the maker

Maker's price, blended (lower wins)

$0.18/M

$0.18/M

Cost per 1,000 pages (lower wins)

9.5¢

7.5¢

Context

164k tokens

262k tokens

Open weights

yes

no

Tool calling

no

yes

Structured output

no

yes

Reads images

yes

yes

Reasoning

no

yes

Released

30 Apr 2025

18 Sept 2026

Providers selling it

5

6

Price we measure against

OpenRouter

OpenRouter

Trains on your prompts (no is better)

not published

no provider to check

Providers selling both · 2

  • Kilo Gateway$0.14 / $0.18
  • OpenRouter$0.18 / $0.18

Llama Guard 4 12B, then Ternary Bonsai 2 27B, per million tokens.

Go further

Add a third or fourth model, or change the weighting, in the tool.

What moved this week

  1. Llama Guard 4 12B

    DeepInfra · 20% cheaper ·

    $0.14 / $0.14 $0.18 / $0.18
  2. Llama Guard 4 12B

    Kilo Gateway · 20% cheaper ·

    $0.14 / $0.14 $0.18 / $0.18

Frequently asked

Which is cheaper, Llama Guard 4 12B or Ternary Bonsai 2 27B?
Llama Guard 4 12B, at $0.14 per million tokens against $0.18 for Ternary Bonsai 2 27B, blended 3 in : 1 out, read on 21 Oct 2026.
Where is each one cheapest?
Llama Guard 4 12B: $0.14 at Kilo Gateway. Ternary Bonsai 2 27B: nobody sells it below OpenRouter's own price with a stated reason, so $0.18 is the number to beat.
Can I buy both from one provider?
Yes. 2 providers sell both: Kilo Gateway, OpenRouter. The cheapest of them for the two together is Kilo Gateway.
Which holds more context?
Ternary Bonsai 2 27B, at 262k tokens against 164k.

Prices exclude tax, read 21 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

More