Skip to main content
POST
Create moderation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
input
default:""
required

Input (or inputs) to classify. Can be a single string, an array of strings, or an array of multi-modal input objects similar to other models.

Example:

"I want to kill them."

model
default:omni-moderation-latest

The content moderation model you would like to use. Learn more in the moderation guide, and learn about available models here.

Example:

"omni-moderation-2024-09-26"

Response

200 - application/json

OK

Represents if a given text input is potentially harmful.

id
string
required

The unique identifier for the moderation request.

model
string
required

The model used to generate the moderation results.

results
object[]
required

A list of moderation objects.