# x402-deployer Content Moderation & Safety Classifier

> x402-deployer Content Moderation & Safety Classifier is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Classifies text for toxicity and harmful content across default and custom categories, returning a verdict of allow, review, or block

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/moderate-content
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-e30f7238
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-vIM6fknFJsLlvVeZoBiB

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 x402-deployer-x402-deployer-workers-dev-e30f7238 -d '<json body>'
```

Example prompt: Check this comment for harmful content and tell me whether to allow, review, or block it — specifically look for harassment, hate speech, and spam: 'You should be ashamed of yourself, nobody wants you here. Buy followers now at spamsite.com!'

## When to prefer this

Use this endpoint when you need a fast, structured safety verdict with named categories (including custom ones) and an actionable allow/review/block decision. Prefer it over generic LLM prompting for content moderation when you need consistent scoring, audit trails, or integration into automated content pipelines.

## Known failure modes

- Empty or missing text input returns a 400 validation error
- Extremely long text may be truncated or rejected
- Unsupported custom category definitions may be ignored or cause errors
- Payment failure via x402 protocol returns 402 Payment Required
- Ambiguous borderline content may return 'review' verdict without clear category scores

## How this service works

Content moderation / safety classifier / OpenAI-style toxicity API. Morpheus primary, Venice fallback. Scores harassment, hate_speech, violence, sexual_content, self_harm, spam, phishing, doxing, illegal_activity, plus custom categories, and returns allow/review/block.

## Output

Returns per-category scores (e.g. harassment, hate_speech, violence, sexual_content, self_harm, spam, phishing, doxing, illegal_activity), a top-level verdict of allow/review/block, and any flagged categories with confidence signals.

## Example request

```json
{
 "input": {
  "body": {
   "text": "This is a great product! I really enjoyed using it and would recommend it to others.",
   "custom_categories": [
    "product_quality",
    "recommendation"
   ]
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to moderate. Max 20,000 chars."
      },
      "custom_categories": {
       "type": "array",
       "description": "Optional. 1-20 category names to score instead of the default set (harassment, hate_speech, violence, sexual_content, self_harm, spam, phishing, doxing, illegal_activity)."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "source": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      },
      "flagged_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-e30f7238/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
