omni-moderation-latest Content Moderation
Supports text, image, and mixed text+image content moderation
All documentationPOST
/v1/moderations- Compatible with single text, text array, and content block array inputs
- Images support public URLs and base64 Data URIs
Use omni-moderation-latest to perform safety moderation on input content. This model belongs to the Moderation Series and is not part of the image, video, or audio generation series.
Request examples
curl --request POST \
--url https://api.apisea.ai/v1/moderations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "omni-moderation-latest",
"input": [
{
"type": "text",
"text": "Please moderate whether this image is compliant"
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.example.com/files/1779955589195-wh950j4imqd.jpeg"
}
}
],
"stream": false
}'Supported Models
| Model | Description | Supported Inputs |
|---|---|---|
omni-moderation-latest | General-purpose content moderation model | Text, image, mixed text+image |
Authorizations
AuthorizationstringrequiredAll endpoints require authentication using a Bearer Token.
Get an API Key:
Visit the API Key management page to obtain your API Key.
Add the following header in your request:
Authorization: Bearer YOUR_API_KEYBody
modelstringrequiredModeration model name.
omni-moderation-latest- General-purpose content moderation model
inputstring | string[] | object[]requiredContent to be moderated. Supports plain text, text array, or content block array.
Content blocks can include:
text- Text content blockimage_url- Image URL content block
streambooleandefault: falseWhether to stream the response.
false: Non-streaming response (default; the only value currently supported,trueis not supported)
input Request Modes
Mixed Text + Image
{
"model": "omni-moderation-latest",
"input": [
{
"type": "text",
"text": "Please moderate whether this image is compliant"
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.example.com/files/1779955589195-wh950j4imqd.jpeg"
}
}
],
"stream": false
}Plain Text (Single)
{
"model": "omni-moderation-latest",
"input": "I want to kill someone",
"stream": false
}Plain Text (Array)
{
"model": "omni-moderation-latest",
"input": [
"hello",
"I hate you"
],
"stream": false
}Image Only (Image URL)
{
"model": "omni-moderation-latest",
"input": [
{
"type": "image_url",
"image_url": {
"url": "https://cdn.example.com/files/1779955589195-wh950j4imqd.jpeg"
}
}
],
"stream": false
}Image Only (base64 Data URI)
{
"model": "omni-moderation-latest",
"input": [
{
"type": "image_url",
"image_url": {
"url": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAA..."
}
}
],
"stream": false
}Notes
- When
inputis a content block array, each element usestypeto distinguish content type. - For image moderation, prefer using publicly accessible URLs. If using base64, follow the standard Data URI format:
data:image/{format};base64,{data}. - Unless required otherwise, set
stream: falseconsistently.
Models using this endpoint
Found a problem in these docs? Email support@apisea.ai.