Llama Guard 4 12B — API Pricing, Context Window & Specifications
Llama Guard 4 12B by Meta: $0.18 per 1M input tokens, $0.18 per 1M output tokens, 164K token context window, monthly workload cost estimates and rival LLM comparisons.
$0.18Input / 1M
$0.18Output / 1M
164KContext
16KMax Output
MetaProvider
text+image->textModality
Llama Guard 4 12B token cost by volume
| Token volume | Input cost | Output cost |
|---|---|---|
| 10K tokens | $0.0018 | $0.0018 |
| 100K tokens | $0.018 | $0.018 |
| 1M tokens | $0.18 | $0.18 |
| 10M tokens | $1.80 | $1.80 |
| 100M tokens | $18.00 | $18.00 |
| Workload scenario (30 days) | Est. monthly bill |
|---|---|
| Customer chatbot (1,000 chats/day · 1.5K in + 500 out) | $10.80 |
| Enterprise RAG search (5,000 queries/day · 4K in + 600 out) | $124.20 |
| Coding / agentic workflow (500 runs/day · 12K in + 2K out) | $37.80 |
Llama Guard 4 12B (12B) local GPU VRAM requirements
| Precision / Quantization | Model weights | Est. VRAM (with 8K KV cache) | Recommended GPU / Memory tier |
|---|---|---|---|
| FP16 / BF16 (16-bit) | 24.0 GB | 28.4 GB | RTX 5090 32GB / Mac M3–M4 Max 36GB |
| INT8 / Q8_0 (8-bit) | 12.7 GB | 15.4 GB | RTX 3090 / RTX 4090 24GB / Mac 32GB |
| Q6_K (6-bit) | 9.8 GB | 12.1 GB | RTX 4060 Ti 16GB / RTX 4080 16GB / Mac 24GB |
| Q4_K_M (4-bit) | 7.0 GB | 8.8 GB | RTX 3060 12GB / RTX 4070 12GB / Mac 16GB |
Compare side by side
More models from Meta
- Llama 4 Maverick
- Llama 4 Scout
- Llama 3.3 70B Instruct
- Llama 3.2 3B Instruct
- Llama 3.1 70B Instruct
- Llama 3.1 8B Instruct
Frequently asked questions
How much does the Llama Guard 4 12B API cost per million tokens?
Llama Guard 4 12B (Meta) is priced at $0.18 per 1 million input tokens and $0.18 per 1 million output tokens.
What is Llama Guard 4 12B's maximum context window and output limit?
Llama Guard 4 12B supports a context window of 163,840 tokens with up to 16,384 maximum completion tokens (text+image->text).