omni-moderation-latest: This model and all snapshots support more categorization options and multi-modal inputs.text-moderation-latest(Legacy): Older model that supports only text inputs and fewer input categorizations. The newer omni-moderation models will be the best choice for new applications.
Quickstart
Use the tabs below to see how you can moderate text inputs or image inputs, using our official SDKs and the omni-moderation-latest model:- Moderate text inputs
- Moderate images and text
violence category score of greater than 0.8.
We plan to continuously upgrade the moderation endpoint’s underlying model. Therefore, custom policies that rely on
category_scores may need recalibration over time.Content classifications
The table below describes the types of content that can be detected in the moderation API, along with which models and input types are supported for each category.Categories marked as “Text only” do not support image inputs. If you send only images (without accompanying text) to the
omni-moderation-latest model, it will return a score of 0 for these unsupported categories.