Moderations
OpenAI-compatible
Moderations
POST /v1/moderations — OpenAI content-safety classification
POST
Moderations
Score text (or images) across several content categories, returning a flag and score for each category.
Request
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
model | string | omni-moderation-latest (recommended) or text-moderation-latest | |
input | string | array | ✅ | The text to check, or a multimodal array (the omni model supports images) |
Response
flagged: true means any category was triggered.
Multimodal (image) input
Categories
| Category | Meaning |
|---|---|
sexual | Sexual content |
sexual/minors | Involving minors |
harassment | Harassment |
harassment/threatening | Threatening harassment |
hate | Hate |
hate/threatening | Threatening hate |
illicit | Illicit behavior |
illicit/violent | Violent illicit |
self-harm | Self-harm |
self-harm/intent | Self-harm intent |
self-harm/instructions | Self-harm instructions |
violence | Violence |
violence/graphic | Graphic violence |