Create moderation
Moderations
Create moderation
Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.
POST
Create moderation
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
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."
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"