# Llama Guard 4 12B vs Ternary Bonsai 2 9B

Source: https://openrouter.ai/compare/meta-llama/llama-guard-4-12b/prism-ml/ternary-bonsai-2-9b

## Overview

| Attribute | Llama Guard 4 12B | Ternary Bonsai 2 9B |
| --- | --- | --- |
| Author | Meta Llama | PrismML |
| Reasoning | No | Yes |
| Input modalities | Image, Text | Text, Image |
| Output modalities | Text | Text |
| Input price | $0.18/M tokens | $0.08/M tokens |
| Output price | $0.18/M tokens | $0.13/M tokens |
| Context window | 163,840 tokens | 262,144 tokens |
| Latency (p50) | Not available | 0.41 s |
| Throughput (p50) | Not available | 59.0 tok/s |

## Llama Guard 4 12B or Ternary Bonsai 2 9B: which should you choose?

### Choose Ternary Bonsai 2 9B for:

- a longer context window (262,144 vs 163,840 tokens)
- lower token prices

Llama Guard 4 12B does not lead on any comparison both models report.

## Model pages

- [Llama Guard 4 12B](https://openrouter.ai/meta-llama/llama-guard-4-12b) ([llms.txt](https://openrouter.ai/meta-llama/llama-guard-4-12b/llms.txt))
- [Ternary Bonsai 2 9B](https://openrouter.ai/prism-ml/ternary-bonsai-2-9b) ([llms.txt](https://openrouter.ai/prism-ml/ternary-bonsai-2-9b/llms.txt))
