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

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

响应示例

状态码: 200

成功响应示例

{
    "result": [
        {
            "url": "https://bucketname.obs.myhwclouds.com/ObjectName1",
            "suggestion": "block",
            "category_suggestions": {
                "terrorism": "pass",
                "porn": "block"
            },
            "detail": {
                "terrorism": [
                    {
                        "confidence": 0,
                        "label": "xxx"
                    },
					{
                        "confidence": 1,
                        "label": "normal"
                    }
                ],
                "porn": [
                    {
                        "confidence": 0,
                        "label": "normal"
                    },
                    {
                        "confidence": 1,
                        "label": "xxx"
                    }
                ]
            }
        }
    ]
}

状态码: 400

失败响应示例

{
  "error_code" : "AIS.0005",
  "error_msg" : "The service does not exist."
}
support.huaweicloud.com/api-moderation/moderation_03_0036.html