v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465453454.1 KB

Detects unsafe content in a specified JPEG or PNG format image. Use DetectModerationLabels to moderate images depending on your requirements. For example, you might want to filter images that contain nudity, but not images containing suggestive content.

To filter images, use the labels returned by DetectModerationLabels to determine which types of content are appropriate.

For information about moderation labels, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

post/#X-Amz-Target=RekognitionService.DetectModerationLabels

Headers

X-Amz-Target'RekognitionService.DetectModerationLabels' required

Request body

MinConfidencenumber float
<p>Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value.</p> <p>If you don't specify <code>MinConfidence</code>, the operation returns labels with confidence values greater than or equal to 50 percent.</p>

Response

Success

ModerationModelVersionstring

Version number of the moderation detection model that was used to detect unsafe content.