Free Llama Guard 3 8b API via Cloudflare Workers AI with 10,000 daily free Neurons. Zero setup fee, no credit card required.
Llama Guard 3 is a Llama-3.1-8B pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM – it generates text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated.
Cloudflare Workers AI gives every free account 10,000 Neurons/day (~10k tokens, dozens of image generations, or audio transcriptions). Sign in with GitHub with no credit card required and call via Workers bindings or the REST API.
Cloudflare Workers AI gives every free account 10,000 Neurons of free usage per day (about 10k tokens a day, dozens of image generations, or several audio transcriptions). No overseas credit card is required. Sign in with a GitHub account in one click, then call it worldwide at low latency through a Workers binding or the unified REST API.
Llama Guard 3 is a Llama-3.1-8B pretrained model, fine-tuned for content safety classification. Similar to previous versions, it can be used to classify content in both LLM inputs (prompt classification) and in LLM responses (response classification). It acts as an LLM – it generates text in its output that indicates whether a given prompt or response is safe or unsafe, and if unsafe, it also lists the content categories violated.
Call it directly with your own Cloudflare account Account ID and an API Token that has Workers AI permission. Standard REST endpoints are supported, and you can also paste the key into this site's Playground to try it live.
Chat with free AI models right in your browser — multi-turn conversations, switch models mid-chat, and your API key stays in this browser.
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/meta/llama-guard-3-8b \
-H "Authorization: Bearer $CF_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello! How can I use Workers AI?"}
]
}'
Community Feedback
Comments are tied to your GitHub account — sign in to join the discussion.