Skip to main content
Meta · Text Generation · 8B

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

Not Set
0.7
93 chars
Press Ctrl + Enter to run
Idle

Output will stream here once you run a prompt.

API Call Cost Estimator

Published RatePre-Run Char Estimate

Input (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


Official Model Card

About Llama Guard 3 8B

Model specifications sourced from the official model card, separated cleanly from provider-specific availability and pricing.

Llama Guard 3 8B model-card specifications
AttributeVerified Value
Model NameLlama Guard 3 8B
Canonical IDllama-guard-3-8b
MakerMeta
FamilyMeta Llama Guard 3
TaskText Generation
Parameters8B
ArchitectureDense Transformer (Llama 3.1 base)
Context Window128K tokens
CapabilitiesStreaming
LicenseLlama 3.1 Community License
Release2024-07

Confirmed Providers

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.

Cloudflare Workers AIStandard AccessNo Key Saved
Model ID: @cf/meta/llama-guard-3-8b$0.484 in / $0.030 out per 1M tokens

Included in Cloudflare Workers AI 10,000 free daily Neurons (resets 00:00 UTC).

Add Key

Benchmark Runner

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.


Integration

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
}'

Head-to-Head

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