POST /moderations
Provider capabilities
The table below summarizes gateway support for this endpoint by provider.Legend:
- ✅ Supported by Provider and Truefoundry
- Provided by provider, but not by Truefoundry
- Provider does not support this feature
For every gateway endpoint and provider, see Supported APIs.
Supported Providers
- OpenAI
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.
violence category score of greater than 0.8.
Key Fields
flagged:trueif any content is considered harmful.categories: Dictionary of category flags,truemeans the input falls under that harmful category.category_scores: Probability scores (0 to 1) for each category.category_applied_input_types: Indicates whether the category was triggered by the text or image.