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 model fine-tuned for content safety classification, demonstrates exceptional performance in terms of speed and cost-efficiency. It consistently ranks among the fastest models and offers among the most competitive pricing across all benchmarks. However, its performance on general benchmarks is notably low, reflecting its specialized purpose. In categories like General Knowledge, Ethics, Mathematics, Email Classification, Instruction Following, and Coding, the model achieved very low accuracy scores, often in the single digits or 0%. For instance, it scored 5.3% in General Knowledge and 0.5% in Ethics, indicating it is not designed for general-purpose reasoning or task execution. Its duration for these tasks also varied significantly, with some benchmarks like Instruction Following taking exceptionally long. This model's strength lies in its intended application: content safety classification, particularly for LLM inputs and responses, aligned with the MLCommons standardized hazards taxonomy. Its optimization for 8 languages and support for search and code interpreter tool calls further highlight its specialized utility. The benchmark results clearly indicate that Llama Guard 3 8B is not a general-purpose AI but a highly specialized tool for content moderation, where its speed and cost-effectiveness are significant advantages.
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 | Strategy | 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 | 327K |
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
|
— | — | $$$$ |