{"uid":"cap_ZPFLoJYmVQu2pzV9io1Of","slug":"toxicity-detection-129590df","name":"Toxicity Detection","description":"Pay-per-call tools for AI agents: web search + content, documents, live market data, and multi-chain wallet/gas reads. Mainnet test from $0.000001 USDC on Base. Pay-per-call tools for AI agents in USDC on Base (x402/MPP): search, pdf, web-read, extract, summarize, fact-check, translate, jobs, discover. See GET /capabilities.","url":"https://x402.agentindex.world/toxicity?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to classify, up to 4000 characters."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["label","probability","engine"],"properties":{"label":{"type":"string","description":"The best-fitting label."},"engine":{"enum":["jev","fallback"],"type":"string","description":"Which engine answered: Jev (primary) or the Groq-hosted LLM fallback."},"probability":{"type":"number","description":"Confidence in `label`, 0 to 1."},"x402_receipt":{"type":"object","description":"Billing and provenance receipt for this call."},"alternate_label":{"type":["string","null"],"description":"The second-best label, if any."},"alternate_probability":{"type":["number","null"],"description":"Confidence in `alternate_label`, if known."}}}}}}},"responseSchema":{"type":"json","example":{"input":"Honestly, anyone who thinks that is a complete idiot who shouldn't be allowed to have an opinion.","label":"toxic","engine":"jev","probability":0.9,"alternate_label":"not_toxic","alternate_probability":0.1}},"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_XADxc_zetUh-AyuHHlTo7","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":"Classifies text as toxic or not toxic (hate speech, harassment, threats, severe offensive language) and returns a confidence score, with guaranteed sub-4.5s response via LLM fallback.","exampleAgentPrompt":"Can you check this comment for toxicity and tell me if it's hate speech, harassment, or a threat — and how confident you are: 'You're a disgrace and I hope something terrible happens to you'?","exampleUseCases":[{"title":"User comment moderation pipeline","prompt":"Before I post this user comment to our forum, check if it's toxic — is it hate speech, harassment, a threat, or severely offensive? Here's the text: 'People like you shouldn't be allowed to exist on this platform.'"},{"title":"Customer support message screening","prompt":"Screen this incoming support ticket for toxicity before routing it to our team: 'Your product is garbage and your staff are complete idiots who deserve to get fired.'"},{"title":"Social media reply safety check","prompt":"I need to know if this tweet reply is toxic or safe to leave up — classify it and give me a confidence score: 'Shut up you worthless piece of trash, nobody wants to hear from you.'"}],"resultDescription":"Returns a toxicity classification (toxic or not toxic), the detected category if toxic (e.g. hate speech, harassment, threats, severe offensive language), and a confidence score indicating how certain the model is in its classification.","failureModes":["Text exceeds 4000 character limit — request rejected","Both Jev and Groq fallback unavailable — may timeout beyond 4.5s SLA","Empty or whitespace-only text input — undefined classification behavior","Non-English text may yield lower accuracy if not explicitly supported","Payment not provided or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call toxicity classification with a guaranteed latency SLA (under 4.5s) and no need to self-host or manage a moderation model. Ideal for real-time content moderation pipelines, agent safety filters, or any workflow where a per-call cost model is preferred over subscription. The dual-provider architecture (Jev + Groq fallback) provides higher reliability than single-provider alternatives.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T00:42:58.294Z","isFirstParty":false,"canonicalSlug":"toxicity-detection-129590df"}