Llama Guard 4 12B vs Ternary Bonsai 2 9B

Compare Llama Guard 4 12B from Meta Llama and Ternary Bonsai 2 9B from PrismML on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for meta-llama
Llama Guard 4 12B
Favicon for prism-ml
Ternary Bonsai 2 9B

Overview

Llama Guard 4 12B
Author
Meta Llama
Ternary Bonsai 2 9B
Author
PrismML
Llama Guard 4 12B
Context length
164Ktokens
Ternary Bonsai 2 9B
Context length
262Ktokens
Llama Guard 4 12B
Reasoning
No
Ternary Bonsai 2 9B
Reasoning
Yes
Llama Guard 4 12B
Input modalities
Text, Image
Ternary Bonsai 2 9B
Input modalities
Text, Image
Llama Guard 4 12B
Output modalities
Text
Ternary Bonsai 2 9B
Output modalities
Text

Analysis

Llama Guard 4 12B vs Ternary Bonsai 2 9B at a glance

Llama Guard 4 12B
Input price
$0.18/M tokens
Ternary Bonsai 2 9B
Input price
$0.08/M tokens
Llama Guard 4 12B
Output price
$0.18/M tokens
Ternary Bonsai 2 9B
Output price
$0.13/M tokens
Llama Guard 4 12B
Context window
163,840 tokens
Ternary Bonsai 2 9B
Context window
262,144 tokens
Llama Guard 4 12B
Latency (p50)
Not available
Ternary Bonsai 2 9B
Latency (p50)
0.41 s
Llama Guard 4 12B
Throughput (p50)
Not available
Ternary Bonsai 2 9B
Throughput (p50)
59.0 tok/s
Llama Guard 4 12B
Provided by
Meta Llama
Ternary Bonsai 2 9B
Provided by
PrismML

Frequently asked questions

Is Llama Guard 4 12B cheaper than Ternary Bonsai 2 9B?

Ternary Bonsai 2 9B is cheaper than Llama Guard 4 12B on OpenRouter: Ternary Bonsai 2 9B costs $0.08/M tokens input and $0.13/M tokens output, while Llama Guard 4 12B costs $0.18/M tokens input and $0.18/M tokens output.

Which has the longer context window, Llama Guard 4 12B or Ternary Bonsai 2 9B?

Ternary Bonsai 2 9B has the longer context window at 262,144 tokens, compared with 163,840 tokens for Llama Guard 4 12B.