Llama Guard 3 8B✓ Catalog verified
Llama Guard 3 is a Llama-3.1-8B pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM – it generates text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated. Llama Guard 3 was aligned to safeguard against the MLCommons standardized hazards taxonomy and designed to support Llama 3.1 capabilities. Specifically, it provides content moderation in 8 languages, and was optimized to support safety and security for search and code interpreter tool calls.
Overview
Llama Guard 3 is a Llama-3.1-8B pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM – it generates text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated. Llama Guard 3 was aligned to safeguard against the MLCommons standardized hazards taxonomy and designed to support Llama 3.1 capabilities. Specifically, it provides content moderation in 8 languages, and was optimized to support safety and security for search and code interpreter tool calls.
Access: available through the official Meta API. Context window: 131K.
Specifications
| API identifier | meta-llama/llama-guard-3-8b |
| Provider | Meta |
| Model type | Text LLM |
| Context window | 131K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Feb 12, 2025 |
| Tokenizer | Llama3 |
| Instruction format | none |
| Moderated | No |
| Architecture modality | text->text |
Pricing
Live pricing components for meta-llama/llama-guard-3-8b as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $2e-8 | $0.02 / 1M | Per input token |
| Completion tokens | $6e-8 | $0.06 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.02Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | Not advertised | Supports tools / function calling |
| Self-Hosting | ✓ Supported | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Llama Guard 3 8B through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="meta-llama/llama-guard-3-8b",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| AionLabs: Aion-1.0 | Aion Labs | 131K | $4.00 | View → |
| AionLabs: Aion-1.0-Mini | Aion Labs | 131K | $0.70 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Llama Guard 3 8B cost?
$0.02 per 1M input tokens and $0.06 per 1M output tokens on the official Meta API.
What is the context window of Llama Guard 3 8B?
Llama Guard 3 8B supports up to 131K tokens of context.
Does Llama Guard 3 8B support tool / function calling?
Llama Guard 3 8B does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.
How do I access Llama Guard 3 8B?
Use the official Meta API with the model id `meta-llama/llama-guard-3-8b`. See the Quick start section above for code examples.