# NoJunk Moderate Safety Classification

> NoJunk Moderate Safety Classification is a paid API for AI agents from nojunk-moderate.mick8511.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Classifies a message or conversation as safe/unsafe using Llama Guard 3, identifying which of 14 hazard categories are violated (violent crimes, hate, self-harm, sexual content, etc.)

## Facts

- Endpoint: POST https://nojunk-moderate.mick8511.workers.dev/safety?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nojunk-moderate-safety-classification-97ab32c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HfZb57TucYhtFkGV6kj6U

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 nojunk-moderate-safety-classification-97ab32c7 -d '<json body>'
```

Example prompt: Check whether this user message is safe or unsafe and tell me which hazard categories it triggers if any: 'Here's how you can make a bomb at home.'

## When to prefer this

Choose this endpoint when you need structured, category-level safety classification backed by Llama Guard 3, especially when you want to know not just whether content is unsafe but which of the 14 specific hazard categories it violates. Prefer it over generic LLM-based moderation when you need deterministic, low-cost ($0.002/call) safety labels suitable for automated pipelines. It supports both single messages and multi-turn conversations, making it ideal for chatbot guardrails and forum moderation. Prefer over OpenAI Moderation or similar when you need conversation-context-aware classification rather than single-turn only.

## Known failure modes

- Text exceeds 20,000 character limit — request rejected with validation error
- Conversation array exceeds 20 messages — rejected with schema validation error
- Both 'text' and 'messages' omitted — missing required input error
- Invalid role value in messages array (must be 'user' or 'assistant') — schema error
- Network or worker timeout on very long inputs — HTTP 5xx error
- Payment not included or insufficient USDC — HTTP 402 payment required

## How this service works

Text Moderation safety: Safety classification of a message or conversation with Llama Guard 3: safe/unsafe plus the 14 hazard categories (violent crimes, hate, self-harm, sexual content, ...).

## Output

Returns a safety classification label ('safe' or 'unsafe') for the submitted message or conversation, along with the specific hazard categories violated from a set of 14 (e.g. violent crimes, hate speech, self-harm, sexual content, and others). When the input is a conversation, the last message is classified in the context of prior turns.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 1,
   "description": "One user message to classify (1 to 20000 characters)"
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "role",
     "content"
    ],
    "properties": {
     "role": {
      "enum": [
       "user",
       "assistant"
      ],
      "type": "string"
     },
     "content": {
      "type": "string",
      "maxLength": 20000
     }
    }
   },
   "maxItems": 20,
   "minItems": 1,
   "description": "A conversation of 1 to 20 {role, content} messages (use instead of text); the last message is classified in context"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nojunk-moderate-safety-classification-97ab32c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nojunk-moderate.mick8511.workers.dev](https://www.zero.xyz/host/nojunk-moderate.mick8511.workers.dev/llms.txt)
