All Products
Search
Document Center

AI Guardrails:/green/image/feedback

Last Updated:Mar 31, 2026

Submits feedback on an incorrect image moderation result. The feedback takes effect the next time the same image is moderated.

This operation is free of charge.

QPS limits

This operation supports up to 20 calls per second per account. Exceeding this limit triggers throttling, which may affect your service.

Request parameters

For common parameters required in all Alibaba Cloud AI Guardrails API requests, see Common parameters.

The request body is a JSON object. The following table describes the parameters.

ParameterTypeRequiredExampleDescription
taskIdStringNoxxxThe ID of the moderation task, returned by the AI Guardrails server. Uniquely identifies the moderation task.
suggestionStringNoblockThe expected moderation result. If specified, you must also specify scenes. Valid values: pass, block. See the Suggestion values table below.
urlStringNohttp://www.aliyundoc.comThe URL of the image. Required to add the image to the feedback-based image library in the Alibaba Cloud AI Guardrails console.
scenesStringArrayNo["ad","terrorism"]The moderation scenarios to apply feedback to. Valid values: porn, terrorism, ad. Multiple values are supported.
noteStringNoxxxA description for the feedback record.
labelStringNonormalThe expected result category for the image in the specified moderation scenario. For valid values per scenario, see the scenes and label parameters in Synchronous moderation.

Suggestion values

ValueMeaningEffect
passThe image is normal.The image is added to the feedback-based image library in the Alibaba Cloud AI Guardrails console.
blockThe image contains violations.

Scenes values

ValueDescription
pornPornography detection
terrorismTerrorist content detection
adAd detection

Response parameters

The data field in the response body is empty. For common response parameters, see Common response parameters.

Examples

The following example submits feedback that an image at a given URL should be classified as block for the ad and terrorism scenarios. Specifying url adds the image to the feedback-based image library in the console.

Sample request

http(s)://[Endpoint]/green/image/feedback
&<Common request parameters>
{
  "suggestion": "block",
  "scenes": [
    "ad",
    "terrorism"
  ],
  "url": "http://www.aliyundoc.com"
}

Sample response

{
  "code": 200,
  "msg": "OK",
  "requestId": "EE5A1189-4D7B-4C24-AD78-4C1FAA3E7A0C"
}