{"uid":"cap_r5i2GkABM764feO68p-bC","slug":"sitecheck-content-moderation-2c1c3d75","name":"SiteCheck Content Moderation","description":"Safety check of a text or a chat turn with Llama Guard 3: safe or unsafe, and the violated categories (S1 to S14, named in plain words). Send text, or messages (up to 20 turns). Classifies only; it does not change or block anything.","url":"https://api.sitecheck-api.workers.dev/api/moderate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to check, up to 8,000 characters"},"messages":{"type":"array","items":{"type":"object"},"description":"Or chat turns: {role: user or assistant, content}, up to 20"}}},"responseSchema":{"type":"json","example":{"safe":true,"model":"@cf/meta/llama-guard-3-8b","source":"Llama Guard 3 (Workers AI)","checkedAt":"2026-10-14T07:05:00.000Z","categories":[]}},"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_4hU36uhJxv3n2sBq2zSVA","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 or a chat conversation for unsafe content using Llama Guard 3, returning a safety classification with flagged categories","exampleAgentPrompt":"Before I post this user comment — 'I know where you live and you'll regret this' — to our forum, can you run a content moderation check on it and tell me if it's safe or what harmful categories it falls into?","exampleUseCases":[{"title":"Pre-publish user comment screening","prompt":"A user just submitted this comment on our platform: 'You people are all subhuman trash and deserve to disappear.' Can you moderate it and tell me whether it's safe to publish and which safety categories it violates?"},{"title":"AI chatbot output safety check","prompt":"My AI assistant just generated this response to a customer: 'Here's a step-by-step guide to picking a lock.' Before I relay that to the user, can you run it through content moderation to make sure it's safe?"},{"title":"Multi-turn conversation audit","prompt":"Here's the last few turns of a conversation on our platform — user said 'how do I hurt someone without getting caught', assistant replied 'I can't help with that'. Can you run the full chat through content moderation and flag anything unsafe?"}],"resultDescription":"Returns a JSON object with a boolean 'safe' field indicating whether the content passed moderation, the model name used (Llama Guard 3 8B via Cloudflare Workers AI), the source description, a timestamp, and an array of flagged safety categories (empty if content is safe).","failureModes":["Text exceeds 8,000 character limit — request rejected","More than 20 chat message turns provided — request rejected","Malformed messages array (missing role or content fields) — validation error","Payment not provided or insufficient — 402 Payment Required","Network timeout on Workers AI inference — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call content moderation check powered by Meta's Llama Guard 3 model without managing your own moderation infrastructure. It accepts both raw text and structured multi-turn chat histories, making it suitable for screening both UGC and AI assistant outputs. Prefer it over OpenAI Moderation or AWS Rekognition when you want a single unified pay-as-you-go API with no subscription, and when you need Llama Guard 3's specific safety category taxonomy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:42:04.419Z","isFirstParty":false,"canonicalSlug":"sitecheck-content-moderation-2c1c3d75"}