/moderationsCreate a content moderation request
Creates a moderation request that classifies text, strings, or multimodal inputs for potentially harmful content. Supply input as a string, an array of strings, or an array of multimodal input objects; model defaults to omni-moderation-latest when omitted.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Moderation request containing the content to classify and, optionally, the moderation model.
One documented failure
slow_downYour request rate increased too quickly. Please reduce the request rate and gradually increase it again.
Traffic increased too quickly
One documented failure
server_is_overloadedThe model is temporarily overloaded. Please retry your request after a brief delay.
The requested model is temporarily overloaded
input is required and must be a string, an array of strings, or an array of multimodal input objects. A 429 is returned when the request rate exceeds the limit. A 503 is returned when the requested moderation model is temporarily unavailable or overloaded.