Moderations
Create moderation
Classify text inputs for harmful content
/v1/moderationsCheck one or more text inputs for harmful content. This endpoint's schema is compatible with the OpenAI Moderations API. It works with the OpenAI SDK.
The response includes standard OpenAI moderation categories and AILuminate safety classifications for more detailed signals.
See Errors in the Moderation guide for status codes and what to do.
A string, an array of strings, or an array of {"type": "text", "text": ...} parts to classify. Image inputs are not supported. Up to 16 inputs of up to 32 KB each. Only about 3 KB of a long input is classified, half from its beginning and half from its end; the middle is not checked, and the response doesn't say so.
Array of moderation results, one per input.
Show child attributes
true when ailuminate.safety is unsafe. A category can be true while flagged is false, when the content is controversial.
OpenAI-compatible category flags, derived from the AILuminate classification. sexual/minors, harassment/threatening, hate, hate/threatening, self-harm/intent and violence/graphic are currently always false.
1 or 0 for each category, mirroring categories. The classifier returns labels, not calibrated probabilities, so thresholding these scores has no effect. Returned as integers.
Additional safety classifications based on the AILuminate benchmark by MLCommons. Extends the standard OpenAI moderation categories with more granular signals.
Show child attributes
Boolean flags for AILuminate-specific safety categories.
Additional classification signals.