{"uid":"cap_-vIM6fknFJsLlvVeZoBiB","slug":"x402-deployer-x402-deployer-workers-dev-e30f7238","name":"x402-deployer Content Moderation & Safety Classifier","description":"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.","url":"https://x402-deployer.x402-deployer.workers.dev/moderate-content","method":"POST","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":null,"example":{"request":{"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"}},"response":{"model":"hermes-3-llama-3.1-405b","source":"morpheus","summary":"The text expresses a very positive sentiment about the product quality and includes a strong recommendation. No concerning content.","verdict":"allow","categories":{"recommendation":{"score":0.9,"flagged":true,"evidence":"would recommend it to others"},"product_quality":{"score":0.9,"flagged":true,"evidence":"This is a great product! I really enjoyed using it"}},"input_chars":84,"flagged_count":2,"categories_evaluated":["product_quality","recommendation"]}},"exampleRequest":{"text":"This is a great product! I really enjoyed using it and would recommend it to others.","custom_categories":["product_quality","recommendation"]},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N0bIG-r056udqZwj1B3rp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies text for toxicity and harmful content across default and custom categories, returning a verdict of allow, review, or block","exampleAgentPrompt":"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!'","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:48.468Z","isFirstParty":false}