LLM Reference
Cloudflare Workers AI

Llama Guard 3 8B on Cloudflare Workers AI

Llama Guard · AI at Meta

ServerlessOpen Source

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 case
Input / 1M
$0.484
Output / 1M
$0.030
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: @cf/meta/llama-guard-3-8b
Model ID
@cf/meta/llama-guard-3-8b

Request example

Curated snippets for this provider are not sourced yet. Use Cloudflare Workers AI documentation with model ID @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

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

TypePrice (per 1M)
Input tokens$0.48
Output tokens$0.03

Capabilities

Structured Outputs

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.

Get Started

Model Specs

Released2024-07-23
Parameters8B
Context8k
ArchitectureDecoder Only
Knowledge cutoff2023-12