# Agent Hub Content Moderation (Llama Guard 3)

> Agent Hub Content Moderation (Llama Guard 3) is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Checks text input for harmful or policy-violating content using Llama Guard 3, returning an OpenAI-compatible moderation response with flagged status, category scores, and raw Llama Guard codes.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/moderations?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-content-moderation-llama-guard-3-1a127e2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uh1GIBhHpxc8528kbzDlm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-hub-content-moderation-llama-guard-3-1a127e2b
```

Example prompt: Can you run this comment through content moderation and tell me if it's flagged as harmful, what categories it hits, and the confidence scores: 'You're worthless and should disappear'?

## When to prefer this

Choose this endpoint when you need OpenAI-compatible moderation responses (same schema as /v1/moderations) but want to use Llama Guard 3 as the underlying model, or when you need the raw Llama Guard category codes alongside the standard flagged/categories/category_scores fields. It is a drop-in replacement for OpenAI moderation with no API key required — pay per call at $0.002 USDC. Prefer it over OpenAI's moderation API when you want model transparency, open-weight reproducibility, or Llama Guard's specific category taxonomy.

## Known failure modes

- Missing required 'input' parameter returns a 400-level error
- Input exceeding token limits may be truncated or rejected
- GET method limited to a single text input; array inputs require POST
- Model parameter is accepted but ignored — model selection is fixed to Llama Guard 3
- Non-text inputs (images, audio) are not supported

## How this service works

OpenAI-compatible moderation (Llama Guard 3): same response shape as OpenAI /v1/moderations with flagged, categories and category_scores, plus the raw Llama Guard codes. Up to 10 inputs per call. Also callable as GET with the same fields as query parameters.

## Output

Returns an OpenAI-compatible moderation object containing: a 'flagged' boolean, a 'categories' map of category names to true/false, a 'category_scores' map of category names to float confidence scores, and the raw Llama Guard 3 category codes. Accepts up to 10 inputs per call when using POST; GET accepts a single input as a query parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Text to check (POST also accepts an array of up to 10)"
      },
      "model": {
       "type": "string",
       "description": "Ignored"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-content-moderation-llama-guard-3-1a127e2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
