Moderations

moderations

Methods

Create Moderation -> { id, model, results }
post/moderations

Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.

Domain types

Moderation = { categories, category_applied_input_types, category_scores, 1 more... }
ModerationImageURLInput = { image_url, type }
ModerationModel = "omni-moderation-latest" | "omni-moderation-2024-09-26" | "text-moderation-latest" | 1 more...
ModerationMultiModalInput = |
ModerationTextInput = { text, type }