{"uid":"cap_RwD02k1Ev6qqAFWv6lUs7","slug":"agent-data-tools-revmesh2074-workers-dev-content-moderation-safety-fcb3f02c","name":"Content Moderation & Safety Check: Llama Guard 3","description":"Classify a text as safe or unsafe with Meta's Llama Guard 3 and name the hazard categories it falls into (violent and non-violent crimes, sexual content, child exploitation, hate, self-harm, weapons, privacy, defamation, elections and others; 14 in all). Up to 8,000 characters. Also available in the OpenAI moderation shape at /v1/moderations. Use to screen user messages, model outputs or content before an agent posts or acts on it.","url":"https://agent-data-tools.revmesh2074.workers.dev/ai/moderation?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The text to classify (up to 8,000 characters)"}}},"responseSchema":{"type":"object","properties":{"model":{"type":"string"},"flagged":{"type":"boolean"},"categories":{"type":"array","items":{}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USD","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_OOCj1uSXgv1ewNBk8Cd-9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Classifies text as safe or unsafe using Meta's Llama Guard 3, returning a flag and the specific hazard categories triggered across 14 possible categories.","exampleAgentPrompt":"Can you run a safety check on this user comment before I post it: 'I know where you live and you're going to regret this' — tell me if it's flagged and which hazard categories it falls into?","exampleUseCases":[{"title":"Screen user messages before agent acts","prompt":"Before my agent responds to this user message, check if it's safe: 'You should just end it all, nobody cares about you anyway.' — flag it and tell me which of the 14 hazard categories it hits."},{"title":"Moderate AI output before publishing","prompt":"My AI just generated this product review response — can you run it through Llama Guard 3 to make sure it's safe to publish? Here's the text: 'If you don't buy this, you're an idiot and frankly deserve what's coming to you.'"},{"title":"Detect harmful content in forum post","prompt":"Check this forum post for safety issues before it goes live: 'Here's a step-by-step guide to making your own explosive device at home.' — is it flagged, and what categories does it violate?"}],"resultDescription":"Returns a JSON object with: the model name used (e.g. llama-guard-3), a boolean 'flagged' indicating whether the text is unsafe, and an array 'categories' listing which of the 14 hazard categories were triggered (e.g. violent crimes, sexual content, hate, self-harm, weapons, child exploitation, privacy, defamation, elections, etc.).","failureModes":["Text exceeds 8,000 character limit — request rejected or truncated","Empty or missing 'text' parameter — validation error returned","Ambiguous or borderline content may produce false positives or negatives","Model inference timeout on very long inputs near the character limit","Service unavailable or worker error returns HTTP 5xx"],"whenToPreferThis":"Choose this endpoint when you need a well-established, multi-category safety classifier backed by Meta's Llama Guard 3 specifically, covering all 14 official hazard categories in a single call. Prefer it over generic sentiment analysis for safety-critical pipelines, over simple keyword filters for nuanced harm detection, and over the OpenAI moderation endpoint when you want Llama Guard 3's classification specifically. Ideal for screening both user inputs and AI-generated outputs before an agent takes action or publishes content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T15:18:52.770Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-content-moderation-safety-fcb3f02c"}