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

Classifies if text violates content policy

input
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.

model
string
required

The content moderation model you would like to use. Defaults to omni-moderation-latest

Response

Returns moderation classification results

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