Omni Moderation API
openai/omni-moderation-latestOmni Moderation evaluates text prompts and up to one HTTPS image URL across OpenAI's safety taxonomy at 0 credits per request. The Omni Moderation API returns the complete verdict, category flags, confidence scores, and modality attribution in data.output.
Drag and drop files, paste from clipboard, or provide a URL. Optional. At most 1 public https:// image URL (no Base64).
1/1 files added
Examples
Click to load real moderation input and data.output verdictREST API
Quick Start
Run your first Omni Moderation check in three steps to inspect safety flags and category scores at 0 credits.
Connect to the Vidgo API
Send your API key in the Authorization: Bearer VIDGO_API_KEY header.
- Endpoint
- POST
https://api.vidgo.ai/api/generate/submit - Authentication
- Authorization: Bearer VIDGO_API_KEY
Submit a moderation task
Send text in prompt, one HTTPS image URL in image_urls, or both.
curl --request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "openai/omni-moderation-latest",
"input": {
"prompt": "An elderly grandfather and his granddaughter sit in a quiet rural railway waiting room on a rainy autumn night while a station attendant offers tea.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png"
]
}
}'Read data.output
Poll status until finished and inspect flagged and category_scores in data.output.results[0].
Track status
GET https://api.vidgo.ai/api/generate/status/{task_id}Poll every 1–2 seconds until finished; read results from data.output.
not_startedrunningfinishedfailed{
"code": 200,
"data": {
"task_id": "3K8RB0DB7SGSLQJG",
"status": "running",
"created_time": "2026-11-25T11:13:01"
}
}{
"code": 200,
"data": {
"task_id": "3K8RB0DB7SGSLQJG",
"status": "finished",
"files": [],
"created_time": "2026-11-25T11:13:01",
"error_message": null,
"progress": 100,
"output": {
"id": "modr-5372",
"model": "omni-moderation-latest",
"results": [
{
"categories": {
"harassment": false,
"harassment/threatening": false,
"hate": false,
"hate/threatening": false,
"illicit": false,
"illicit/violent": false,
"self-harm": false,
"self-harm/instructions": false,
"self-harm/intent": false,
"sexual": false,
"sexual/minors": false,
"violence": false,
"violence/graphic": false
},
"category_applied_input_types": {
"harassment": [
"text"
],
"harassment/threatening": [
"text"
],
"hate": [
"text"
],
"hate/threatening": [
"text"
],
"illicit": [
"text"
],
"illicit/violent": [
"text"
],
"self-harm": [
"text",
"image"
],
"self-harm/instructions": [
"text",
"image"
],
"self-harm/intent": [
"text",
"image"
],
"sexual": [
"text",
"image"
],
"sexual/minors": [
"text"
],
"violence": [
"text",
"image"
],
"violence/graphic": [
"text",
"image"
]
},
"category_scores": {
"harassment": 0.000004757645425657629,
"harassment/threatening": 0.0000011125607488784412,
"hate": 0.0000014285517650093407,
"hate/threatening": 1.101595360000069e-7,
"illicit": 0.0000018058518261159955,
"illicit/violent": 8.139692624947503e-7,
"self-harm": 0.000003169325442919291,
"self-harm/instructions": 1.5057017254045334e-7,
"self-harm/intent": 7.646537350121258e-7,
"sexual": 0.000016865275398914433,
"sexual/minors": 0.000003705296977158347,
"violence": 0.00048138973993243486,
"violence/graphic": 0.000005829126566113866
},
"flagged": false
}
]
}
}
}Complete runnable example
End-to-end script submitting a moderation check and reading data.output.
set -euo pipefail
: "${VIDGO_API_KEY:?Set VIDGO_API_KEY in your environment}"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "openai/omni-moderation-latest",
"input": {
"prompt": "An elderly grandfather and his granddaughter sit in a quiet rural railway waiting room on a rainy autumn night while a station attendant offers tea.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png"
]
}
}
JSON
)
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY")
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | jq -r '.data.task_id // .task_id // empty')
if [ -z "$TASK_ID" ]; then
printf 'Submit response did not include task_id:
%s
' "$SUBMIT_RESPONSE" >&2
exit 1
fi
while true; do
STATUS_RESPONSE=$(curl --silent --show-error --fail-with-body \
--url "https://api.vidgo.ai/api/generate/status/$TASK_ID" \
--header "Authorization: Bearer $VIDGO_API_KEY")
STATUS=$(printf '%s' "$STATUS_RESPONSE" | jq -r '.data.status // .status // empty')
case "$STATUS" in
finished)
printf '%s' "$STATUS_RESPONSE" | jq -r '(.data.files // .files // [])[]?.file_url'
break
;;
failed)
printf '%s' "$STATUS_RESPONSE" | jq -r '.data.error_message // .error_message // "Generation failed"' >&2
exit 1
;;
not_started|running)
sleep 2
;;
*)
printf 'Unexpected task status: %s
' "$STATUS" >&2
exit 1
;;
esac
doneRequest Parameters
POST model and input to /api/generate/submit; provide prompt, image_urls, or both.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | — | Fixed to openai/omni-moderation-latest. |
| callback_url | string (URL) | No | — | Public HTTP(S) URL that receives the terminal payload including output. |
| input.prompt | string | At least one | — | Text string to classify across safety categories. |
| input.image_urls | string[] | At least one | — | Array with at most 1 public HTTPS image URL (Base64 data URIs are not accepted). |
Response Fields
Unlike media tasks, data.files is always empty and the complete OpenAI response is returned in data.output.
| Field | Type | Description |
|---|---|---|
| code | integer | Business code; 0 or 200 indicates success. |
| data.task_id | string | Unique task identifier. |
| data.status | string | not_started | running | finished | failed |
| data.files | array | Always an empty array [] for moderation tasks. |
| data.output | object | null | null until finished; complete OpenAI moderation object containing results[].flagged, categories, category_scores, and category_applied_input_types. |
| data.error_message | string | null | Failure detail when status is failed. |
Task Lifecycle
Poll until finished or failed, then read data.output.
not_startedAccepted and queued.
runningModeration in progress; data.output is null.
finishedComplete; read data.output.results.
failedFailed; read data.error_message.
Polling and Errors
- HTTPS image ruleimage_urls accepts at most 1 https:// URL; http:// and Base64 data URIs are rejected with 400.
- Output fieldRead verdicts and category scores from data.output rather than data.files.
Model Specifications
| Specification | Value | Description |
|---|---|---|
| Model | openai/omni-moderation-latest | Multimodal content safety moderation for text and up to one HTTPS image. |
| Input | prompt / image_urls (max 1 HTTPS URL) | Supply prompt, one HTTPS image URL, or both. Base64 images are not accepted. |
| Output | data.output (OpenAI moderation JSON) | files is empty; the complete OpenAI moderation object is returned in data.output (null until finished). |
| Pricing | 0 credits (Free) | Free per moderation request. |
Related Models
Omni Moderation API FAQ
What is the Omni Moderation API?
Omni Moderation is an OpenAI multimodal content safety model that evaluates text and images for policy risk categories. The Omni Moderation API accepts text in prompt and/or up to one HTTPS image URL and returns flagged booleans, category confidence scores, and input-type attribution at 0 credits. Running through the unified Vidgo task flow makes it easy to place before paid generation calls. You can call it programmatically or try it from the playground above.
How much does the Omni Moderation API cost?
It costs 0 credits ($0.00) per request.
Can the Omni Moderation API review both text and images together?
Yes. You can pass prompt alone, one HTTPS URL in image_urls alone, or both in the same request.
Why does Omni Moderation reject Base64 or HTTP image URLs?
image_urls accepts a single public HTTPS URL with no whitespace; Base64 data URIs and plain HTTP URLs are rejected with a 400 validation error.
Where is the result returned in the Omni Moderation status response?
Unlike image or video models, data.files is always empty ([]) and the complete OpenAI moderation JSON is returned in data.output (null until finished).
Does the Omni Moderation API support webhook callbacks?
Yes. Supply a top-level callback_url when submitting and Vidgo will POST the terminal task object including output when finished.
How many images can Omni Moderation process per request?
At most 1 HTTPS image URL per request.



