{"uid":"cap_NQyYLkWgfGY44s6oHcsq_","slug":"agent402-tools-text-moderation-6b809a86","name":"agent402.tools Text Moderation","description":"Check text for harmful content using OpenAI moderation (omni-moderation-latest). Returns flagged status, category breakdown (harassment, hate, self-harm, sexual, violence, etc.), and confidence scores. No API key needed; pay per call via x402. Text capped at 10k chars.","url":"https://agent402.tools/api/moderate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to check for policy violations (max 10,000 chars)"}}},"responseSchema":{"type":"json","example":{"model":"omni-moderation-latest","flagged":false,"categories":{"hate":false,"sexual":false,"violence":false,"self-harm":false,"harassment":false,"hate/threatening":false,"harassment/threatening":false},"category_scores":{"hate":0.00003,"harassment":0.00012}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hyLsYKGBCJxm8yLhFW6X2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks text for harmful content using OpenAI's omni-moderation-latest model, returning flagged status, category scores (harassment, hate, self-harm, sexual, violence, etc.), and confidence levels.","exampleAgentPrompt":"Can you check if this message is safe to post? Here's the text: 'You're worthless and I hope something terrible happens to you.' — flag any harmful categories and tell me the confidence scores.","exampleUseCases":null,"resultDescription":"Returns whether the text is flagged, a breakdown of harmful content categories (harassment, hate speech, self-harm, sexual content, violence, etc.), and confidence/probability scores for each category.","failureModes":["Text exceeds 10,000 character limit — request rejected","Empty or missing text field — validation error","Payment failure via x402 — call not processed","OpenAI moderation API downstream outage — service unavailable"],"whenToPreferThis":"Use this endpoint when you need fast, per-call text moderation without managing an OpenAI API key, paid via micro-transaction. Ideal for agents that need on-demand content safety checks without a long-term subscription or key management overhead. Prefer over raw OpenAI API when you need pay-per-use billing via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:53:36.968Z","isFirstParty":false}