Skip to main content
Send text or images to POST /v1/moderations to find out whether they’re flagged, and by which categories. The examples use a client created as in Installation.

Parameters

Field names are the JSON body fields in every SDK. The full schema is in the Moderations API reference.

Response

ModerationsResponse. Each result has flagged, a categories map of booleans and a category_scores map of scores:
Last modified on November 5, 2026