Stars API includes a content moderation module that screens text prompts, images, and videos for unsafe content. Each modality is exposed as its own endpoint with a focused pipeline tuned to that medium. Audio and chat modalities are in development.Documentation Index
Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt
Use this file to discover all available pages before exploring further.
Why moderation
AI generation platforms need to prevent harmful content from being created or distributed. The moderation module automates this by analysing inputs against the configured content categories and returning anis_prohibited
verdict.
Modalities
Prompt moderation
Screen a text prompt against your blocklist and an LLM prohibition check before generation.- Input:
prompttext field - Pipeline: a blocklist scan followed by an LLM prohibition check (your account administrator can enable additional optional steps)
- Output:
is_prohibitedverdict, plus areasonwhen a prompt is rejected
Image moderation
Screen a single image with vision-language and NSFW classifiers, plus any per-client custom categories you have configured.- Input:
image_urlfield — a public HTTP/HTTPS URL (direct file upload is currently paused) - Pipeline: VLM classification + NSFW classification + optional custom VLM children, all in parallel
- Output:
is_prohibitedverdict and flagged categories
Video moderation
Analyse a video by extracting frames and checking each one individually, then merging the results.- Input:
video_urlfield — a public HTTP/HTTPS URL up to 300 MB (direct file upload is currently paused) - Pipeline: frame extraction followed by per-frame analysis
- Output:
is_prohibitedverdict and flagged categories merged across frames
Coming soon
Asynchronous processing
All modalities run asynchronously. When you submit a request, the API returns ajob_id immediately
with status: "queued". You can then:
- Poll the job status endpoint for results.
- Stream real-time updates via SSE.
- Receive results via webhook when the job completes.
