Free Llama Guard 3 8b API

Updated 8/29/2026

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.

About the Model

为什么选择 Llama Guard 3 8b?

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.

核心优势与特性

  • 每日 10,000 Neurons 免费算力:Cloudflare 为所有开发者提供每日免费额度,0 成本调用。
  • 全球边缘网络超低延迟:部署于全球 300+ 城市边缘节点,享受 Serverless GPU 秒级冷启动。
  • 开箱即用无缝集成:无需自行部署与管理硬件,支持 REST API 与 Cloudflare Workers 原生绑定直连。
  • 支持 131,072 tokens 上下文窗口,适配长文本与复杂多轮任务。
  • 核心特性能力:LoRA。

免费调用与开发者福利

Cloudflare Workers AI 为所有免费账户提供每天 10,000 Neurons 的免费额度(约合每日 10k Tokens、数十次图像生成或多段音频转录)。无需绑定海外信用卡,支持 GitHub 账号一键快捷登录,通过 Workers 绑定或统一 REST API 即可全球低延迟直接调用。

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

How to call Llama Guard 3 8b

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?"}
    ]
  }'

Provider Details

The following platforms provide free access to Llama Guard 3 8b through free tiers, trial credits, or daily quotas.

ProviderContext WindowFree QuotaRequires CCRatingAction
Cloudflare Workers AI131KRate Limit
10000 requests per day
No
加载评分…
Details

Frequently Asked Questions

Community Feedback

Comments are tied to your GitHub account — sign in to join the discussion.

Know another free provider for Llama Guard 3 8b?
Help the community by sharing other ways to access this model for free.