interface ModerationCreateParams {
    input: string | string[] | ModerationMultiModalInput[];
    model?: string & {} | ModerationModel;
}

Properties

Properties

input: string | string[] | ModerationMultiModalInput[]

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 & {} | ModerationModel

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