Last refreshed 2026-04-24. Next refresh: weekly.
Why use Llama Guard 3 8B on Cloudflare Workers AI?
Cloudflare Workers AI offers Llama Guard 3 8B with pay-as-you-go pricing at $0.48/1M input tokens. Cloudflare is a leading connectivity cloud company that provides a comprehensive suite of cloud-native products and developer tools to enhance web performance, security, and reliability.
Compare Llama Guard 3 8B across 5 providers to find the best fit for your use caseSetup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: @cf/meta/llama-guard-3-8b@cf/meta/llama-guard-3-8bRequest example
@cf/meta/llama-guard-3-8b.Gotchas
- Use provider model ID "@cf/meta/llama-guard-3-8b", not the LLMReference slug "llama-guard-3-8b".
Compare Llama Guard 3 8B Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Cloudflare Workers AI | $0.48 | $0.03 |
| Microsoft Foundry | $0.37 | $1.10 |
| OpenRouter | $0.48 | $0.03 |
| Fireworks AI | $0.20 | $0.20 |
| Replicate API | $0.30 | $0.30 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.48 |
| Output tokens | $0.03 |
Capabilities
About Llama Guard 3 8B
Llama Guard 3 8B is a specialized large language model developed by Meta for content safety classification. Fine-tuned from Llama 3.1, this 8-billion parameter model excels in moderation tasks, classifying both inputs and outputs across 14 hazard categories based on the MLCommons taxonomy. It supports multiple languages, including English, French, German, Hindi, Italian, Portuguese, Spanish, and Thai. Designed for AI engineers focusing on safe and responsible AI systems, Llama Guard 3 offers improved accuracy and reduced false positive rates in identifying unsafe content, making it a valuable tool for developing robust content moderation systems in conversational AI applications .
FAQ
What does Llama Guard 3 8B cost on Cloudflare Workers AI?
On Cloudflare Workers AI, Llama Guard 3 8B costs $0.484 per 1M input tokens and $0.030 per 1M output tokens.
What is the context window for Llama Guard 3 8B on Cloudflare Workers AI?
Llama Guard 3 8B supports a 8k token context window on Cloudflare Workers AI.
How does Cloudflare Workers AI compare to other Llama Guard 3 8B providers?
Llama Guard 3 8B is available from 5 providers. The cheapest input pricing is $0.2/1M tokens from Fireworks AI.
What API model ID do I use for Llama Guard 3 8B on Cloudflare Workers AI?
Use the model ID @cf/meta/llama-guard-3-8b when calling Cloudflare Workers AI's API.
Who created Llama Guard 3 8B?
Llama Guard 3 8B was created by AI at Meta as part of the Llama Guard model family.
Is Llama Guard 3 8B open source?
Llama Guard 3 8B is open source according to the seed data.