Llama Guard 3 8B
Llama Guard 3 8B is a text generation model by Meta (Meta Llama Guard 3, 8B). 8-billion-parameter safety moderation model by Meta fine-tuned from Llama 3.1 to classify prompts and assistant responses against the MLCommons hazard taxonomy.
Selected Model
Llama Guard 3 8B
llama-guard-3-8b
Connect Your API Key for the Selected Provider to Run Live
Cloudflare Workers AI
Transport: Stateless proxy · Key setup guide
Output will stream here once you run a prompt.
API Call Cost Estimator
Published RatePre-Run Char EstimateInput (33 tok)
$0.000016
$0.484 / 1M
Output (0 tok)
$0.00
$0.030 / 1M
Approx. Call Cost
$0.000016
Est. ~4 chars/tok
Total Tokens
33
Estimated count
About Llama Guard 3 8B
Model specifications sourced from the official model card, separated cleanly from provider-specific availability and pricing.
| Attribute | Verified Value |
|---|---|
| Model Name | Llama Guard 3 8B |
| Canonical ID | llama-guard-3-8b |
| Maker | Meta |
| Family | Meta Llama Guard 3 |
| Task | Text Generation |
| Parameters | 8B |
| Architecture | Dense Transformer (Llama 3.1 base) |
| Context Window | 128K tokens |
| Capabilities | Streaming |
| License | Llama 3.1 Community License |
| Release | 2024-07 |
Where to Run Llama Guard 3 8B
Only providers whose official model lists confirm this model are listed below, each with verified per-million token pricing, account requirements, key status, and a direct launch action.
@cf/meta/llama-guard-3-8b$0.484 in / $0.030 out per 1M tokensIncluded in Cloudflare Workers AI 10,000 free daily Neurons (resets 00:00 UTC).
Measured Results
Dated outputs, latency, and token metrics produced by scripts/run-benchmarks.ts with the provider used and measurement date.
No Measured Benchmark Results Yet for Llama Guard 3 8B
Benchmark measurements are never fabricated. Run scripts/run-benchmarks.ts with a supported provider API key and commit data/results/{model-id}.json to publish dated outputs, latency, and token metrics.
API Code Snippets
Copy ready-to-run curl, JavaScript, and Python code snippets for any confirmed provider offering this model.
curl -X POST "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run/@cf/meta/llama-guard-3-8b" \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a concise technical assistant."
},
{
"role": "user",
"content": "Explain the core capabilities and ideal use cases of Llama Guard 3 8B in two crisp sentences."
}
],
"temperature": 0.7,
"max_tokens": 512,
"stream": true
}'Model Comparisons
Explore enabled comparison pages or launch an interactive side-by-side test in the Compare tool.
No Pre-Built Comparison Pages Enabled for Llama Guard 3 8B
Launch the interactive Compare tool to test this model side by side against any other model or provider right now.
Frequently Asked Questions
What Is Llama Guard 3 8B Best Suited For?
Llama Guard 3 8B is designed for text generation workloads by Meta. 8-billion-parameter safety moderation model by Meta fine-tuned from Llama 3.1 to classify prompts and assistant responses against the MLCommons hazard taxonomy.
How Can I Run Llama Guard 3 8B Live in the Browser?
Select one of the 1 confirmed provider listed in the Where to Run section, add your browser-stored API key for that provider, and run prompts directly in the live playground above.
Related Models and Tools
Text Generation Tool
Open the dedicated text generation tool.
Compare Side by Side
Benchmark Llama Guard 3 8B against other models with your own prompt.
AI Model Cost Calculator
Forecast daily and monthly token spend for Llama Guard 3 8B.
AI Models Finder
Return to the searchable directory of 33 AI models.