内容审核 MODERATION-图像内容审核(V2):响应示例

时间:2024-11-04 10:07:10

响应示例

状态码: 200

成功响应示例

{
  "result" : {
    "detail" : {
      "terrorism" : [ {
        "confidence" : 0.7315528178215026,
        "label" : "xxx"
      }, {
        "confidence" : 0.26844718217849733,
        "label" : "yyy"
      } ]
    },
    "suggestion" : "block",
    "category_suggestions" : {
      "terrorism" : "review"
    }
  }
}

状态码: 400

失败响应示例

{
  "error_code" : "AIS.0402",
  "error_msg" : "The image format is not supported."
}
support.huaweicloud.com/api-moderation/moderation_03_0019.html