All Products
Search
Document Center

AI Guardrails:/green/video/feedback

Last Updated:Mar 31, 2026

Submits feedback on a video moderation result to help Alibaba Cloud AI Guardrails improve its algorithm model.

Description

Operation: /green/video/feedback

Use this operation to report the moderation result you expected for a video task. AI Guardrails uses your feedback to refine its detection models.

For request construction details, see Request structure. For SDK support, see SDK overview.

Billing: Free of charge.

QPS limits

This operation supports up to 20 calls per second per account. Exceeding this limit triggers throttling and may disrupt your service. Design your integration to stay within this limit.

Request parameters

All AI Guardrails API requests require common parameters. See Common parameters for details.

The request body is a JSON object with the following parameters:

ParameterTypeRequiredExampleDescription
taskIdStringYestaskId xxxThe ID of the moderation task, as returned by the AI Guardrails server.
dataIdStringNodataId xxxThe ID of the moderated video. Use the same value you set in the original moderation request.
urlStringNohttp://www.aliyundoc.com/d.mp4The URL of the moderated video. Use the same value you set in the original moderation request. Omit this parameter if the original request did not include a video URL.
suggestionStringNoblockThe moderation result you expected. Valid values:
  • pass: the video is normal
  • block: the video contains violations
scenesStringArrayNo["ad","terrorism"]The moderation scenarios to provide feedback for. Valid values:
  • porn: pornography detection
  • terrorism: terrorist content detection
  • ad: ad detection
You can specify multiple scenarios.
framesJSONArrayYesThe frames you consider to belong to the detected category. Each element is a frame object. See the following table for the frame structure.

frame object

ParameterTypeRequiredExampleDescription
urlStringYeshttp://www.aliyundoc.com/1.jpgThe URL of the frame.
offsetIntegerYes100The time offset from the start of the video to the frame. Unit: seconds.
noteStringNoblablaAdditional remarks.

Response parameters

For common response parameters, see Response.

The data field in the response body is empty for this operation.

Examples

Request example

http(s)://[Endpoint]/green/video/feedback
&<Common request parameters>
{
  "taskId":"taskId xxx",
  "dataId":"dataId xxx",
  "url":"http://www.aliyundoc.com/d.mp4",
  "frames":[
    {
      "url":"http://www.aliyundoc.com/1.jpg",
      "offset":100
    },
    {
      "url":"http://www.aliyundoc.com/2.jpg",
      "offset":200
    }
  ],
  "suggestion": "block",
  "scenes":[
    "ad",
    "terrorism"
  ],
  "note": "blabla"
}

Response example

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