Author's Description
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.
Key Specifications
Supported Parameters
This model supports the following parameters:
Performance Summary
Llama Guard 3 8B, a Llama-3.1-8B fine-tuned for content safety classification, demonstrates exceptional performance in speed and cost efficiency. It consistently ranks among the fastest models and offers highly competitive pricing across all evaluated benchmarks. Designed to classify LLM inputs and responses against the MLCommons standardized hazards taxonomy, it supports content moderation in 8 languages and is optimized for search and code interpreter tool calls. While its core function is content safety, its general benchmark performance reveals specific strengths and weaknesses. The model achieved a respectable 58.3% accuracy in Reasoning, placing it around the median. It also showed a notable strength in cost efficiency for Ethics, ranking in the top 3. However, its accuracy was very low across other categories, including Coding (0.0%), Instruction Following (0.0%), Email Classification (3.0%), Ethics (0.5%), and General Knowledge (5.3%). These results suggest that while Llama Guard 3 excels in its specialized safety classification role and offers significant operational advantages in speed and cost, it is not designed for general-purpose tasks requiring broad knowledge or complex instruction adherence.
Model Pricing
Current Pricing
Feature | Price (per 1M tokens) |
---|---|
Prompt | $0.02 |
Completion | $0.06 |
Price History
Available Endpoints
Provider | Endpoint Name | Context Length | Pricing (Input) | Pricing (Output) |
---|---|---|---|---|
Nebius
|
Nebius | meta-llama/llama-guard-3-8b | 131K | $0.02 / 1M tokens | $0.06 / 1M tokens |
DeepInfra
|
DeepInfra | meta-llama/llama-guard-3-8b | 131K | $0.055 / 1M tokens | $0.055 / 1M tokens |
Fireworks
|
Fireworks | meta-llama/llama-guard-3-8b | 131K | $0.02 / 1M tokens | $0.06 / 1M tokens |
Together
|
Together | meta-llama/llama-guard-3-8b | 8K | $0.2 / 1M tokens | $0.2 / 1M tokens |
Groq
|
Groq | meta-llama/llama-guard-3-8b | 8K | $0.02 / 1M tokens | $0.06 / 1M tokens |
SambaNova
|
SambaNova | meta-llama/llama-guard-3-8b | 16K | $0.02 / 1M tokens | $0.06 / 1M tokens |
Cloudflare
|
Cloudflare | meta-llama/llama-guard-3-8b | 0 | $0.48 / 1M tokens | $0.03 / 1M tokens |
Benchmark Results
Benchmark | Category | Reasoning | Free | Executions | Accuracy | Cost | Duration |
---|
Other Models by meta-llama
|
Released | Params | Context |
|
Speed | Ability | Cost |
---|---|---|---|---|---|---|---|
Meta: Llama Guard 4 12B | Apr 29, 2025 | 12B | 163K |
Text input
Image input
Text output
|
★★★★ | ★ | $ |
Meta: Llama 4 Maverick | Apr 05, 2025 | 17B | 1M |
Text input
Image input
Text output
|
★★★★ | ★★★ | $$$ |
Meta: Llama 4 Scout | Apr 05, 2025 | 17B | 1M |
Text input
Image input
Text output
|
★★★★ | ★★★ | $$ |
Meta: Llama 3.3 70B Instruct | Dec 06, 2024 | 70B | 131K |
Text input
Text output
|
★★★★ | ★★★★★ | $ |
Meta: Llama 3.2 1B Instruct | Sep 24, 2024 | 1B | 131K |
Text input
Text output
|
★★ | ★ | $ |
Meta: Llama 3.2 3B Instruct | Sep 24, 2024 | 3B | 131K |
Text input
Text output
|
★★★ | ★ | $ |
Meta: Llama 3.2 11B Vision Instruct | Sep 24, 2024 | 11B | 128K |
Text input
Image input
Text output
|
★★★ | ★★ | $$ |
Meta: Llama 3.2 90B Vision Instruct | Sep 24, 2024 | 90B | 131K |
Text input
Image input
Text output
|
★★★ | ★★ | $$$$ |
Meta: Llama 3.1 405B (base) | Aug 01, 2024 | 405B | 32K |
Text input
Text output
|
★ | ★ | $$$$ |
Meta: Llama 3.1 70B Instruct | Jul 22, 2024 | 70B | 131K |
Text input
Text output
|
★★★★ | ★★ | $$ |
Meta: Llama 3.1 405B Instruct | Jul 22, 2024 | 405B | 32K |
Text input
Text output
|
★★★★ | ★★ | $$$$ |
Meta: Llama 3.1 8B Instruct | Jul 22, 2024 | 8B | 131K |
Text input
Text output
|
★★★ | ★★★ | $ |
Meta: LlamaGuard 2 8B | May 12, 2024 | 8B | 8K |
Text input
Text output
|
★★★★ | ★ | $$ |
Meta: Llama 3 8B Instruct | Apr 17, 2024 | 8B | 8K |
Text input
Text output
|
★★★ | ★★ | $ |
Meta: Llama 3 70B Instruct | Apr 17, 2024 | 70B | 8K |
Text input
Text output
|
★★★★ | ★★ | $$$ |
Meta: Llama 2 70B Chat Unavailable | Jun 19, 2023 | 70B | 4K |
Text input
Text output
|
— | — | $$$$ |