# Llama Guard 4 12B vs Phi 4

Source: https://openrouter.ai/compare/meta-llama/llama-guard-4-12b/microsoft/phi-4

## Overview

| Attribute | Llama Guard 4 12B | Phi 4 |
| --- | --- | --- |
| Author | Meta Llama | Microsoft |
| Reasoning | No | No |
| Input modalities | Image, Text | Text |
| Output modalities | Text | Text |
| Input price | $0.18/M tokens | $0.07/M tokens |
| Output price | $0.18/M tokens | $0.14/M tokens |
| Context window | 163,840 tokens | 16,384 tokens |
| Openness Index | Not available | 50.0 |
| GPQA Diamond score | Not available | 57.5% |
| Latency (p50) | 0.64 s | 0.98 s |
| Throughput (p50) | 44.0 tok/s | 86.0 tok/s |

## Llama Guard 4 12B or Phi 4: which should you choose?

### Choose Llama Guard 4 12B for:

- a longer context window (163,840 vs 16,384 tokens)
- a quicker first token (0.64 s vs 0.98 s)

### Choose Phi 4 for:

- faster output (86.0 vs 44.0 tok/s)
- lower token prices

## 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))
- [Phi 4](https://openrouter.ai/microsoft/phi-4) ([llms.txt](https://openrouter.ai/microsoft/phi-4/llms.txt))
