Content Safety Checker With Llama Guard
Evaluate user prompts or assistant outputs for safety risks using Meta Llama Guard 3 8B. Inspect the safe or unsafe verdict alongside parsed MLCommons hazard category codes, estimate token cost, and export ready-to-use API snippets.
Selected Model
Llama Guard 3 8B
Meta · 8B Parameters
Cloudflare Workers AI
Transport: Stateless proxy · Key setup guide
Raw Llama Guard 3 8B verdict (safe or unsafe + MLCommons hazard code) appears here.
API Call Cost Estimator
Published RatePre-Run Char EstimateInput (24 tok)
$0.000012
$0.484 / 1M
Output (0 tok)
$0.00
$0.030 / 1M
Approx. Call Cost
$0.000012
Est. ~4 chars/tok
Total Tokens
24
Estimated count
How to Screen Text With Llama Guard
Follow these steps to execute verified API requests directly from your browser.
- Select a confirmed provider above and save your browser-stored API credentials.
- Paste a user prompt or model response into the screening editor.
- Run Llama Guard 3 8B to receive a binary safe/unsafe verdict and MLCommons hazard category codes.
- Copy the generated API snippet to deploy pre-flight or post-generation guardrails in your application.
Understanding Safe and Unsafe Verdicts
Practical guidance on parameters, outputs, and production usage.
Prompt Input Moderation Checks
Screening user input before calling a larger generation model helps catch policy violations early and avoids wasting output tokens on disallowed requests.
Assistant Output Safety Verification
Running Llama Guard 3 8B as a post-generation check validates assistant replies before rendering them to end users in production chat or publishing workflows.
Frequently Asked Questions
Which Model Powers the Content Safety Checker?
This tool runs Meta Llama Guard 3 8B via your selected supported provider using your browser-stored API credentials.
Is Checked Text Logged on TextGeneration.dev?
No. Requests pass through the stateless proxy directly to your chosen provider endpoint without server-side logging or storage.