From 7347bac4ab7e136157fc94777e6cf87ef9e08599 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 13 Feb 2026 10:54:11 +0800 Subject: first commit --- data/zh_cn/green/2022-03-02/api-docs.php | 4955 ++++++++++++++++++++++++++++++ 1 file changed, 4955 insertions(+) create mode 100644 data/zh_cn/green/2022-03-02/api-docs.php (limited to 'data/zh_cn/green/2022-03-02') diff --git a/data/zh_cn/green/2022-03-02/api-docs.php b/data/zh_cn/green/2022-03-02/api-docs.php new file mode 100644 index 0000000..2691a0f --- /dev/null +++ b/data/zh_cn/green/2022-03-02/api-docs.php @@ -0,0 +1,4955 @@ + '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'Green', + 'version' => '2022-03-02', + ], + 'directories' => [ + 'TextModerationPlus', + 'TextModeration', + 'ImageModeration', + 'ImageAsyncModeration', + 'DescribeImageModerationResult', + 'VoiceModeration', + 'VoiceModerationResult', + 'VoiceModerationCancel', + 'VideoModeration', + 'VideoModerationResult', + 'VideoModerationCancel', + 'FileModeration', + 'DescribeFileModerationResult', + [ + 'id' => 188835, + 'title' => '其他', + 'type' => 'directory', + 'children' => [ + 'DescribeImageResultExt', + 'UrlAsyncModeration', + 'DescribeUrlModerationResult', + 'DescribeUploadToken', + 'ImageBatchModeration', + 'ManualCallback', + 'ManualModeration', + 'ManualModerationResult', + ], + ], + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'MultiModalGuard', + 'MultiModalAgent', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'TextModerationPlus' => [ + 'summary' => '文本审核增强版升级PLUS服务,面向大语言模型的输入指令和生成文字分别提供审核服务,特定的模型输入指令支持检索标准回答,同时开放审核标签的开启和关闭功能。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '207632', + 'abilityTreeNodes' => [ + 'FEATURElvwangXYAQ5C', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务类型', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'chat_detection_pro' => '私聊互动内容检测_专业版', + 'llm_response_moderation' => '大语言模型生成文字检测', + 'llm_query_moderation' => '大语言模型输入文字检测', + 'aigc_moderation_byllm' => 'AIGC场景文本审核大模型服务', + 'nickname_detection_pro' => '用户昵称检测_专业版', + 'comment_detection_pro' => '公聊评论内容检测_专业版', + 'ugc_moderation_byllm' => 'UGC场景文本审核大模型服务', + 'ad_compliance_detection_pro' => '广告法合规检测_专业版', + ], + 'example' => 'ugc_moderation_byllm', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集。JSON字符串格式', + 'type' => 'string', + 'required' => false, + 'example' => '{'."\n" + .' "content": "测试内容"'."\n" + .' }', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => '审核结果数据。', + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'description' => '结果', + 'type' => 'array', + 'items' => [ + 'description' => '返回集合。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标签', + 'type' => 'string', + 'example' => 'porn', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'RiskWords' => [ + 'description' => '命中风险关键词', + 'type' => 'string', + 'example' => 'XXX', + ], + 'CustomizedHit' => [ + 'description' => '自定义关键词命中', + 'type' => 'array', + 'items' => [ + 'description' => '自定义命中', + 'type' => 'object', + 'properties' => [ + 'LibName' => [ + 'description' => '库名称', + 'type' => 'string', + 'example' => '测试词库', + ], + 'KeyWords' => [ + 'description' => '命中的关键词,逗号分隔', + 'type' => 'string', + 'example' => 'xxx', + ], + ], + ], + ], + 'Description' => [ + 'description' => '标签描述', + 'type' => 'string', + 'example' => '未检测出风险', + ], + 'RiskPositions' => [ + 'description' => '风险词位置信息。', + 'type' => 'array', + 'items' => [ + 'description' => '风险词位置信息。', + 'type' => 'object', + 'properties' => [ + 'RiskWord' => [ + 'description' => '违规关键词。', + 'type' => 'string', + 'example' => '词A', + ], + 'StartPos' => [ + 'description' => '敏感词的开始位置。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '4', + ], + 'EndPos' => [ + 'description' => '敏感词的结束位置。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '6', + ], + ], + ], + ], + ], + ], + ], + 'Advice' => [ + 'description' => '建议', + 'type' => 'array', + 'items' => [ + 'description' => '代答内容', + 'type' => 'object', + 'properties' => [ + 'Answer' => [ + 'description' => '回答', + 'type' => 'string', + 'example' => 'XXX', + ], + 'HitLabel' => [ + 'description' => '命中标签', + 'type' => 'string', + 'example' => 'XXX', + ], + 'HitLibName' => [ + 'description' => '命中库名称', + 'type' => 'string', + 'example' => 'XXX', + ], + ], + ], + ], + 'Score' => [ + 'description' => '分数。', + 'type' => 'number', + 'format' => 'float', + 'example' => '1', + ], + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + 'DataId' => [ + 'description' => '检测对象对应的数据ID。'."\n" + .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。', + 'type' => 'string', + 'example' => 'text1234', + ], + 'SensitiveResult' => [ + 'description' => '敏感数据检测结果', + 'type' => 'array', + 'items' => [ + 'description' => '敏感数据检测结果', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标签。', + 'type' => 'string', + 'example' => '1234', + ], + 'SensitiveLevel' => [ + 'description' => '敏感等级', + 'type' => 'string', + 'example' => 'S1', + ], + 'SensitiveData' => [ + 'description' => '敏感数据列表', + 'type' => 'array', + 'items' => [ + 'description' => '敏感数据', + 'type' => 'string', + 'example' => '上海', + ], + ], + 'Description' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => '省份', + ], + ], + ], + ], + 'AttackResult' => [ + 'description' => '提示词攻击检测结果', + 'type' => 'array', + 'items' => [ + 'description' => '提示词攻击检测结果', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标签', + 'type' => 'string', + 'example' => 'safe', + ], + 'Confidence' => [ + 'description' => '置信分', + 'type' => 'number', + 'format' => 'float', + 'example' => '0', + ], + 'AttackLevel' => [ + 'description' => '攻击等级', + 'type' => 'string', + 'example' => 'none', + ], + 'Description' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => 'safe', + ], + ], + ], + ], + 'SensitiveLevel' => [ + 'description' => '敏感等级', + 'type' => 'string', + 'example' => 'S0', + ], + 'AttackLevel' => [ + 'description' => '攻击等级', + 'type' => 'string', + 'example' => 'none', + ], + 'ManualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'DetectedLanguage' => [ + 'description' => '识别语种', + 'type' => 'string', + 'example' => 'en', + ], + 'TranslatedContent' => [ + 'description' => '翻译后内容', + 'type' => 'string', + 'example' => 'hello', + ], + 'AccountId' => [ + 'description' => '客户入参AccountId', + 'type' => 'string', + 'example' => '123456789', + ], + 'Ext' => [ + 'description' => '文本辅助参考信息。', + 'type' => 'object', + 'properties' => [ + 'LlmContent' => [ + 'description' => '大模型输出内容', + 'type' => 'object', + 'properties' => [ + 'OutputText' => [ + 'description' => '输出内容。', + 'type' => 'string', + 'example' => '正常。文本中无风险内容。', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"porn\\",\\n \\"Confidence\\": 81.22,\\n \\"RiskWords\\": \\"XXX\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"测试词库\\",\\n \\"KeyWords\\": \\"xxx\\"\\n }\\n ],\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"词A\\",\\n \\"StartPos\\": 4,\\n \\"EndPos\\": 6\\n }\\n ]\\n }\\n ],\\n \\"Advice\\": [\\n {\\n \\"Answer\\": \\"XXX\\",\\n \\"HitLabel\\": \\"XXX\\",\\n \\"HitLibName\\": \\"XXX\\"\\n }\\n ],\\n \\"Score\\": 1,\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"text1234\\",\\n \\"SensitiveResult\\": [\\n {\\n \\"Label\\": \\"1234\\",\\n \\"SensitiveLevel\\": \\"S1\\",\\n \\"SensitiveData\\": [\\n \\"上海\\"\\n ],\\n \\"Description\\": \\"省份\\"\\n }\\n ],\\n \\"AttackResult\\": [\\n {\\n \\"Label\\": \\"safe\\",\\n \\"Confidence\\": 0,\\n \\"AttackLevel\\": \\"none\\",\\n \\"Description\\": \\"safe\\"\\n }\\n ],\\n \\"SensitiveLevel\\": \\"S0\\",\\n \\"AttackLevel\\": \\"none\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DetectedLanguage\\": \\"en\\",\\n \\"TranslatedContent\\": \\"hello\\",\\n \\"AccountId\\": \\"123456789\\",\\n \\"Ext\\": {\\n \\"LlmContent\\": {\\n \\"OutputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]', + 'title' => '文本审核Plus版', + 'description' => '请确保在使用该接口前,已[开通内容安全增强版服务](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)且充分了解文本审核增强PLUS版产品的[收费方式和价格](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n)。', + ], + 'TextModeration' => [ + 'summary' => '采用动态策略和模型强化变异对抗性,提供多种业务场景的审核服务,识别出多种违规风险。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '128601', + 'abilityTreeNodes' => [ + 'FEATURElvwang8G4HBD', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务类型,包括:'."\n" + .'nickname_detection:用户昵称'."\n" + .'chat_detection:聊天互动'."\n" + .'comment_detection:动态评论'."\n" + .'pgc_detection:教学物料PGC', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [ + 'pgc_detection' => 'PGC通用物料检测', + 'nickname_detection' => '用户昵称检测', + 'comment_multilingual_pro' => '国际业务多语言检测', + 'chat_detection' => '私聊互动内容检测', + 'ad_compliance_detection' => '广告法合规检测', + 'comment_detection' => '公聊评论内容检测', + 'ai_art_detection' => 'AIGC类文字检测', + ], + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集。JSON字符串格式,关于每个字符串的描述', + 'type' => 'string', + 'required' => false, + 'example' => '{"content":"地图还是黑的"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应体', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => '错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '请求消息的响应消息。', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => '审核结果数据。', + 'type' => 'object', + 'properties' => [ + 'labels' => [ + 'description' => '标签,多个用英文逗号分隔。包括:'."\n" + .'ad:广告'."\n" + .'profanity:辱骂'."\n" + .'contraband:违禁品'."\n" + .'sexual_content:色情'."\n" + .'violence:暴恐'."\n" + .'nonsense:灌水'."\n" + .'spam:垃圾信息'."\n" + .'negative_content:不良场景'."\n" + .'cyberbullying:网络暴力'."\n" + .'C_customized:用户库命中', + 'type' => 'string', + 'example' => 'porn', + ], + 'reason' => [ + 'description' => '原因定位的JSON字符串,包含以下字段:'."\n" + .'1. riskTips:细分标签'."\n" + .'2. riskWords:命中风险词'."\n" + .'3. adNums:命中广告号'."\n" + .'4. customizedWords:命中用户词'."\n" + .'5. customizedLibs:命中用户词库名'."\n" + .'6. riskLevel:风险等级,根据系统推荐的风险等级返回,返回值包括:'."\n" + .'- high:高风险'."\n" + .'- medium:中风险'."\n" + .'- low:低风险', + 'type' => 'string', + 'example' => '{\\"riskLevel\\":\\"high\\",\\"riskTips\\":\\"色情_低俗词\\",\\"riskWords\\":\\"色情服务\\"}', + ], + 'accountId' => [ + 'description' => '客户入参传入的accountId', + 'type' => 'string', + 'example' => '123456', + ], + 'deviceId' => [ + 'description' => '客户入参传入的deviceId', + 'type' => 'string', + 'example' => 'xxxxxx', + ], + 'dataId' => [ + 'description' => '检测对象对应的数据ID。'."\n" + .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。', + 'type' => 'string', + 'example' => 'text1234', + ], + 'descriptions' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '疑似广告内容', + ], + 'manualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'ext' => [ + 'description' => '文本辅助参考信息。', + 'type' => 'object', + 'properties' => [ + 'llmContent' => [ + 'description' => '大模型输出内容。', + 'type' => 'object', + 'properties' => [ + 'outputText' => [ + 'description' => '输出内容。', + 'type' => 'string', + 'example' => '正常。文本中无风险内容。', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"labels\\": \\"porn\\",\\n \\"reason\\": \\"{\\\\\\\\\\\\\\"riskLevel\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"high\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskTips\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情_低俗词\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\"}\\",\\n \\"accountId\\": \\"123456\\",\\n \\"deviceId\\": \\"xxxxxx\\",\\n \\"dataId\\": \\"text1234\\",\\n \\"descriptions\\": \\"疑似广告内容\\",\\n \\"manualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"ext\\": {\\n \\"llmContent\\": {\\n \\"outputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]', + 'title' => '文本审核增强版', + 'description' => '请确保在使用该接口前,已充分了解文本审核增强版产品的[收费方式和价格](https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq)。', + ], + 'ImageModeration' => [ + 'summary' => '图片审核。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '142557', + 'abilityTreeNodes' => [ + 'FEATURElvwang78REFZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '图片审核增强版支持的检测类型。取值:'."\n" + .'- baselineCheck:通用基线检测'."\n" + .'- baselineCheck_pro:通用基线检测_专业版'."\n" + .'- baselineCheck_cb:通用基线检测_海外版'."\n" + .'- tonalityImprove:内容治理检测'."\n" + .'- aigcCheck:AIGC图片检测'."\n" + .'- aigcViolationDetection:AIGC图片侵权检测'."\n" + .'- aigcDetector:图片是否AIGC生成判定'."\n" + .'- profilePhotoCheck:头像图片检测'."\n" + .'- postImageCheck:帖子评论图片检测'."\n" + .'- advertisingCheck:营销素材检测'."\n" + .'- liveStreamCheck:视频/直播截图检测'."\n" + .'- generalOcr:通用图文OCR'."\n" + .'- generalRecognition:图片万物识别'."\n" + .'- postImageCheckByVL:大小模型融合图片审核服务'."\n" + .'- postImageCheckByVL_cb:大小模型融合图片审核服务_出海版'."\n" + .'- baselineCheckByVL:通用图片审核大模型服务', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamCheck' => '视频截图检测', + 'generalOcr' => '通用图文OCR', + 'postImageCheck' => '帖子评论图片检测', + 'postImageCheckByVL_cb' => '大小模型融合图片审核服务_出海版', + 'baselineCheck_pro' => '通用基线检测_专业版', + 'advertisingCheck' => '营销素材检测', + 'baselineCheck_cb' => '通用基线检测_出海版', + 'tonalityImprove' => '内容治理检测', + 'profilePhotoCheck' => '头像图片检测', + 'baselineCheck' => '通用基线检测', + 'postImageCheckByVL' => '大小模型融合图片审核服务', + 'generalRecognition' => '图片万物识别', + 'aigcCheck' => 'AIGC图片检测', + 'aigcViolationDetection' => 'AIGC图片侵权检测', + 'baselineCheckByVL' => '通用图片审核大模型服务', + 'aigcDetector' => '图片是否AIGC生成判定', + ], + 'example' => 'baselineCheck', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '内容检测对象的相关参数集。JSON字符串格式。'."\n" + .'- imageUrl:待检测对象的URL,必填。'."\n" + .'- dataId:检测对象对应的数据ID,可选。'."\n" + .'- referer:referer请求头,用于防盗链等场景,可选。', + 'type' => 'string', + 'required' => false, + 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img1234567"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'Body返回值。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => '图片内容检测后的结果。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => '检测对象对应的数据ID。'."\n" + ."\n" + .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。', + 'type' => 'string', + 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2', + ], + 'Result' => [ + 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => '描述。', + 'type' => 'string', + 'example' => '未检测出风险', + ], + 'RiskLevel' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'Ext' => [ + 'description' => '图片辅助参考信息。', + 'type' => 'object', + 'properties' => [ + 'Recognition' => [ + 'description' => '图片万物识别结果。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Classification' => [ + 'description' => '图片万物识别的类别。', + 'type' => 'string', + 'example' => '办公大楼'."\n", + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。返回nonLabel时无置信分。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22'."\n" + ."\n", + ], + ], + ], + ], + 'OcrResult' => [ + 'description' => '图文OCR识别结果。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Text' => [ + 'description' => '识别出来的单条文本信息。', + 'type' => 'string', + 'example' => 'abcd', + ], + 'Location' => [ + 'description' => '文字行及坐标信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => '文字区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'H' => [ + 'description' => '文字区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + ], + ], + ], + 'TextInImage' => [ + 'description' => '返回命中的图片中文字信息。', + 'type' => 'object', + 'properties' => [ + 'OcrResult' => [ + 'description' => '返回识别到的图片中的每行文字信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Text' => [ + 'description' => '文字信息。', + 'type' => 'string', + 'example' => 'abcd', + ], + 'Location' => [ + 'description' => '文字行及坐标信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'H' => [ + 'description' => '文字区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'W' => [ + 'description' => '文字区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + ], + ], + ], + 'RiskWord' => [ + 'description' => '命中风险关键词', + 'type' => 'array', + 'items' => [ + 'description' => '文字信息。', + 'type' => 'string', + 'example' => 'abcd', + ], + ], + 'CustomText' => [ + 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => '自定义库ID', + 'type' => 'string', + 'example' => '123456'."\n", + ], + 'LibName' => [ + 'description' => '自定义库名称。', + 'type' => 'string', + 'example' => '自定义库1'."\n", + ], + 'KeyWords' => [ + 'description' => '自定义词,多个词用逗号分隔。', + 'type' => 'string', + 'example' => '自定义词1,自定义词2'."\n", + ], + ], + ], + ], + ], + ], + 'CustomImage' => [ + 'description' => '自定义图库命中信息列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => '命中的自定义图库ID。', + 'type' => 'string', + 'example' => '图库123'."\n", + ], + 'ImageId' => [ + 'description' => '命中的自定义图片ID。', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => '命中的自定义图库名。', + 'type' => 'string', + 'example' => '图库123'."\n", + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => '人物信息列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FigureName' => [ + 'description' => '识别出的人物名称信息。', + 'type' => 'string', + 'example' => 'yzazhzou', + ], + 'FigureId' => [ + 'description' => '识别出的人物编码信息。', + 'type' => 'string', + 'example' => 'xxx001', + ], + 'Location' => [ + 'description' => '标识的位置信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,识别区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,识别区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => '识别区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '330', + ], + 'H' => [ + 'description' => '识别区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '440', + ], + ], + ], + ], + ], + ], + ], + 'LogoData' => [ + 'description' => '标识信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Location' => [ + 'description' => '标识的位置信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,识别区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,识别区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => '识别区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '330', + ], + 'H' => [ + 'description' => '识别区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '440', + ], + ], + ], + 'Logo' => [ + 'description' => '标识信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标识类别。', + 'type' => 'string', + 'example' => 'logo_sns', + ], + 'Name' => [ + 'description' => '标识名。', + 'type' => 'string', + 'example' => '钉钉', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.1', + ], + ], + ], + ], + ], + ], + ], + 'FaceData' => [ + 'description' => '人脸属性检测结果。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Age' => [ + 'description' => '年龄识别结果。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '18', + ], + 'Bang' => [ + 'description' => '是否有刘海的识别结果。', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => '是否有刘海的识别结果,取值:'."\n" + .'- Has:有刘海。'."\n" + .'- None:无刘海。', + 'type' => 'string', + 'example' => 'Has', + ], + 'Confidence' => [ + 'description' => '刘海识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.88'."\n", + ], + ], + ], + 'Gender' => [ + 'description' => '性别识别结果。', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => '性别识别结果,取值:'."\n" + ."\n" + .'- Male:男性。'."\n" + ."\n" + .'- FeMale:女性。', + 'type' => 'string', + 'example' => 'FeMale', + ], + 'Confidence' => [ + 'description' => '性别识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.88', + ], + ], + ], + 'Glasses' => [ + 'description' => '是否佩戴眼镜的识别结果,取值:'."\n" + ."\n" + .'- None:未佩戴眼镜。'."\n" + ."\n" + .'- Common:佩戴普通眼镜。'."\n" + ."\n" + .'- Sunglass:佩戴太阳镜。', + 'type' => 'string', + 'example' => 'Common', + ], + 'Hairstyle' => [ + 'description' => '发型识别结果。', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => '发型识别结果,取值:'."\n" + ."\n" + .'- Bald:光头。'."\n" + ."\n" + .'- Long:长发。'."\n" + ."\n" + .'- Short:短发。', + 'type' => 'string', + 'example' => 'Short', + ], + 'Confidence' => [ + 'description' => '发型识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.88'."\n" + ."\n", + ], + ], + ], + 'Hat' => [ + 'description' => '是否佩戴帽子的识别结果。', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => '是否佩戴帽子的识别结果,取值:'."\n" + ."\n" + .'- Wear:佩戴帽子。'."\n" + ."\n" + .'- None:未佩戴帽子。', + 'type' => 'string', + 'example' => 'Wear', + ], + 'Confidence' => [ + 'description' => '佩戴帽子结果的置信度,取值范围:0~100。取值越高表示结果越可信。', + 'type' => 'number', + 'format' => 'float', + 'example' => '88.88'."\n" + ."\n", + ], + ], + ], + 'Location' => [ + 'description' => '人脸位置信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,人脸区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '41'."\n" + ."\n", + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,人脸区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '84', + ], + 'W' => [ + 'description' => '人脸区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '83', + ], + 'H' => [ + 'description' => '人脸区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '26', + ], + ], + ], + 'Mask' => [ + 'description' => '是否佩戴口罩的识别结果。', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => '是否佩戴口罩的识别结果,取值:'."\n" + ."\n" + .'- Wear:佩戴口罩。'."\n" + ."\n" + .'- None:未佩戴口罩。', + 'type' => 'string', + 'example' => 'Wear', + ], + 'Confidence' => [ + 'description' => '佩戴口罩结果的置信度,取值范围:0~100。取值越高表示结果越可信。', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.99', + ], + ], + ], + 'Mustache' => [ + 'description' => '是否有胡须的识别结果。', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => '是否有胡须的识别结果,取值:'."\n" + ."\n" + .'- Has:有胡须。'."\n" + ."\n" + .'- None:无胡须。', + 'type' => 'string', + 'example' => 'Has', + ], + 'Confidence' => [ + 'description' => '胡须识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.99', + ], + ], + ], + 'Quality' => [ + 'description' => '人脸图片的质量信息。', + 'type' => 'object', + 'properties' => [ + 'Blur' => [ + 'description' => '人脸图片的模糊度,取值范围:0~100。分数越高表示越模糊。'."\n" + ."\n" + .'建议取值范围:0~25。', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.88'."\n" + ."\n", + ], + 'Integrity' => [ + 'description' => '人脸的完整度,取值范围:0~100。分数越高表示越完整。'."\n" + ."\n" + .'建议取值范围:80~100。', + 'type' => 'number', + 'format' => 'float', + 'example' => '100.0', + ], + 'Pitch' => [ + 'description' => '人脸的抬头或低头角度。'."\n" + ."\n" + .'建议取值范围:-30~30。', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.88', + ], + 'Roll' => [ + 'description' => '人脸的平面旋转角度。'."\n" + ."\n" + .'建议取值范围:-30~30。', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.18', + ], + 'Yaw' => [ + 'description' => '人脸的左右摇头角度。'."\n" + ."\n" + .'建议取值范围:-30~30。', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.18', + ], + ], + ], + 'Smile' => [ + 'description' => '人脸的微笑程度。取值范围:0~100。分数越高表示微笑程度越大。', + 'type' => 'number', + 'format' => 'float', + 'example' => '85.88'."\n" + ."\n", + ], + ], + ], + ], + 'VlContent' => [ + 'description' => '输出内容。', + 'type' => 'object', + 'properties' => [ + 'OutputText' => [ + 'description' => '输出内容。', + 'type' => 'string', + 'example' => '这是一段描述', + ], + ], + ], + 'AigcData' => [ + 'description' => '返回图片中的AIGC隐式标识检测信息。', + 'type' => 'object', + 'properties' => [ + 'AIGC' => [ + 'description' => 'AIGC隐式标识检测信息。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '表示内容是否由AI生成,取值:'."\n" + ."\n" + .'- 1:属于人工智能内容生成合成的。'."\n" + ."\n" + .'- 2:(仅传播平台)可能为人工智能生成合成内容的。'."\n" + ."\n" + .'- 3:(仅传播平台)疑似人工智能内容生成合成的。', + 'type' => 'string', + 'example' => '1', + ], + 'ContentProducer' => [ + 'description' => '服务提供者的编码或名称,用于标识内容的生产者。', + 'type' => 'string', + 'example' => '001191******M000100Y43', + ], + 'ProduceID' => [ + 'description' => '内容制作编号,用于制作平台溯源合成内容的唯一识别编号。', + 'type' => 'string', + 'example' => '123******456'."\n" + ."\n", + ], + 'ReservedCode1' => [ + 'description' => '预留字段。'."\n" + ."\n" + .'可存储用于生成合成服务提供者自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。', + 'type' => 'string', + 'example' => 'd41d**********427e'."\n", + ], + 'ContentPropagator' => [ + 'description' => '传播平台名称,编号或代码,针对提供人工智能生成合成内容服务,可保持与ContentProducer一致。', + 'type' => 'string', + 'example' => '001191******M000100Y43', + ], + 'PropagateID' => [ + 'description' => '内容传播编号,是传播平台对所传播生成合成内容的唯一编号。', + 'type' => 'string', + 'example' => '123******456'."\n", + ], + 'ReservedCode2' => [ + 'description' => '预留字段。'."\n" + ."\n" + .'可用于内容传播服务提供者企业自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。', + 'type' => 'string', + 'example' => 'd41d**********427e', + ], + ], + ], + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'AccountId' => [ + 'description' => '客户入参AccountId', + 'type' => 'string', + 'example' => 'testaccountid123', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"Recognition\\": [\\n {\\n \\"Classification\\": \\"办公大楼\\\\n\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n }\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\\\n\\",\\n \\"LibName\\": \\"自定义库1\\\\n\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\\\n\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"图库123\\\\n\\",\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\\\n\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"yzazhzou\\",\\n \\"FigureId\\": \\"xxx001\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"钉钉\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n ],\\n \\"FaceData\\": [\\n {\\n \\"Age\\": 18,\\n \\"Bang\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Gender\\": {\\n \\"Value\\": \\"FeMale\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Glasses\\": \\"Common\\",\\n \\"Hairstyle\\": {\\n \\"Value\\": \\"Short\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Hat\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 88.88\\n },\\n \\"Location\\": {\\n \\"X\\": 41,\\n \\"Y\\": 84,\\n \\"W\\": 83,\\n \\"H\\": 26\\n },\\n \\"Mask\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Mustache\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Quality\\": {\\n \\"Blur\\": 5.88,\\n \\"Integrity\\": 100,\\n \\"Pitch\\": 5.88,\\n \\"Roll\\": 5.18,\\n \\"Yaw\\": 5.18\\n },\\n \\"Smile\\": 85.88\\n }\\n ],\\n \\"VlContent\\": {\\n \\"OutputText\\": \\"这是一段描述\\"\\n },\\n \\"AigcData\\": {\\n \\"AIGC\\": {\\n \\"Label\\": \\"1\\",\\n \\"ContentProducer\\": \\"001191******M000100Y43\\",\\n \\"ProduceID\\": \\"123******456\\\\n\\\\n\\",\\n \\"ReservedCode1\\": \\"d41d**********427e\\\\n\\",\\n \\"ContentPropagator\\": \\"001191******M000100Y43\\",\\n \\"PropagateID\\": \\"123******456\\\\n\\",\\n \\"ReservedCode2\\": \\"d41d**********427e\\"\\n }\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"testaccountid123\\"\\n }\\n}","type":"json"}]', + 'title' => '图片审核增强版', + 'description' => '请确保在使用该接口前完成以下操作:'."\n" + .'1. 已[开通内容安全增强版](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)。'."\n" + .'2. 充分了解图片审核增强版产品的[收费方式和价格](https://help.aliyun.com/document_detail/467826.html?#section-h06-qz6-1pt)。'."\n" + .'3. 更多接口使用和参数请参考[API接口文档](https://help.aliyun.com/document_detail/467829.html)。', + 'requestParamsDescription' => '业务参数的请求示例:'."\n" + .'```JSON'."\n" + .'{'."\n" + .' "service": "baselineCheck",'."\n" + .' "serviceParameters": '."\n" + .' {'."\n" + .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n" + .' "dataId": "img1234567"'."\n" + .' }'."\n" + .'}'."\n" + .'```', + 'responseParamsDescription' => '返回参数示例'."\n" + .'```'."\n" + .'{'."\n" + .' "Msg": "OK",'."\n" + .' "Code": 200,'."\n" + .' "Data": {'."\n" + .' "DataId": "img123****",'."\n" + .' "Result": ['."\n" + .' {'."\n" + .' "Label": "pornographic_adultContent",'."\n" + .' "Confidence": 81,'."\n" + .' "Description": "成人色情"'."\n" + .' },'."\n" + .' {'."\n" + .' "Label": "sexual_partialNudity",'."\n" + .' "Confidence": 98,'."\n" + .' "Description": "肢体裸露或性感"'."\n" + .' },'."\n" + .' {'."\n" + .' "Label": "violent_explosion",'."\n" + .' "Confidence": 70,'."\n" + .' "Description": "烟火类内容"'."\n" + .' },'."\n" + .' {'."\n" + .' "Label": "violent_explosion_lib",'."\n" + .' "Confidence": 81,'."\n" + .' "Description": "烟火类内容_命中自定义库"'."\n" + .' }'."\n" + .' ],'."\n" + .' "RiskLevel": "high"'."\n" + .' },'."\n" + .' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n" + .'}'."\n" + .'```', + 'extraInfo' => '无', + ], + 'ImageAsyncModeration' => [ + 'summary' => '图片异步检测接口,异步检测任务不会实时返回检测结果,您需要通过callback或者轮询的方式获取检测结果。检测结果最长保留3天。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '197491', + 'abilityTreeNodes' => [ + 'FEATURElvwang78REFZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'query', + 'schema' => [ + 'description' => '图片检测增强版支持的检测服务。取值:'."\n" + .'- baselineCheck:通用基线检测'."\n" + .'- baselineCheck_pro:通用基线检测_专业版'."\n" + .'- baselineCheck_cb:通用基线检测_海外版'."\n" + .'- tonalityImprove:内容治理检测'."\n" + .'- aigcCheck:AIGC图片检测'."\n" + .'- profilePhotoCheck:头像图片检测'."\n" + .'- advertisingCheck:营销素材检测'."\n" + .'- liveStreamCheck:视频\\直播截图检测', + 'type' => 'string', + 'required' => false, + 'example' => 'baselineCheck', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'query', + 'schema' => [ + 'description' => '内容检测对象的相关参数集。JSON字符串格式。', + 'type' => 'string', + 'required' => false, + 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img123****"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', + 'type' => 'string', + 'example' => '4A926AE2-4C96-573F-824F-0532960799F8', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '图片异步检测后的结果。', + 'type' => 'object', + 'properties' => [ + 'ReqId' => [ + 'description' => '图片异步审核增强版API返回的reqId字段,可用此字段查询检测结果。', + 'type' => 'string', + 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\"\\n }\\n}","type":"json"}]', + 'title' => '图片异步检测', + 'description' => '- 图片支持以下格式:PNG、JPG、JPEG、BMP、WEBP、TIFF、ICO、HEIC、SVG。'."\n" + ."\n" + .' - 图片大小限制在10MB以内,像素建议大于200*200(px),像素过低会影响内容安全检测算法的效果。'."\n" + ."\n" + .'- 图片下载时间限制为3秒内,如果下载时间超过3秒,返回下载超时。', + 'responseParamsDescription' => '以下为接口返回code的含义说明。'."\n" + ."\n" + .'| **Code** | **说明** |'."\n" + .'| --- | --- |'."\n" + .'| 200 | 请求正常。 |'."\n" + .'| 400 | 请求参数为空。 |'."\n" + .'| 401 | 请求参数错误。 |'."\n" + .'| 402 | 请求参数长度不符合接口规定,请检查并修改。 |'."\n" + .'| 403 | 请求超过QPS限制,请检查并调整并发。 |'."\n" + .'| 408 | 该账号无权限调用该接口,可能是账号未开通或者已欠费,或者调用账号未被授权访问。 |'."\n" + .'| 500 | 系统异常。 |', + ], + 'DescribeImageModerationResult' => [ + 'summary' => '获取图片审核增强版审核任务结果。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '198839', + 'abilityTreeNodes' => [ + 'FEATURElvwangLRLIH6', + ], + ], + 'parameters' => [ + [ + 'name' => 'ReqId', + 'in' => 'query', + 'schema' => [ + 'description' => '图片异步审核增强版API返回的ReqId字段', + 'type' => 'string', + 'required' => false, + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', + 'type' => 'string', + 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3', + ], + 'Code' => [ + 'description' => '错误码,和HTTP状态码一致。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '图片内容检测后的结果。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1', + ], + 'Result' => [ + 'description' => '图片检测的风险标签、置信分等参数结果。', + 'type' => 'array', + 'items' => [ + 'description' => '返回集合。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '图片内容检测运算后返回的标签。', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => '未检测出风险', + ], + 'RiskLevel' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'FrameNum' => [ + 'description' => '结果帧数量', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Frame' => [ + 'description' => '图片截帧信息。', + 'type' => 'string', + 'example' => '[{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]', + ], + 'ReqId' => [ + 'description' => '图片异步审核增强版API返回的reqId字段。', + 'type' => 'string', + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n", + ], + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'AccountId' => [ + 'description' => '客户入参AccountId', + 'type' => 'string', + 'example' => '123456789', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameNum\\": 1,\\n \\"Frame\\": \\"[{\\\\\\"result\\\\\\":[{\\\\\\"confidence\\\\\\":81.22,\\\\\\"label\\\\\\":\\\\\\"violent_explosion\\\\\\"}]}]\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"123456789\\"\\n }\\n}","type":"json"}]', + 'title' => '查询图片异步检测结果', + 'description' => '- 计费信息:该接口不计费。'."\n" + .'- QPS限流:本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。', + 'responseParamsDescription' => '以下为接口返回code的含义说明,系统仅对code返回为200的请求计量计费,其他code不会计费。'."\n" + ."\n" + .'| **Code** | **说明** |'."\n" + .'| --- | --- |'."\n" + .'| 200 | 请求正常。 |'."\n" + .'| 280 | 检测中。 |'."\n" + .'| 400 | 请求参数为空。 |'."\n" + .'| 401 | 请求参数错误。 |'."\n" + .'| 402 | 请求参数长度不符合接口规定,请检查并修改。 |'."\n" + .'| 403 | 请求超过QPS限制,请检查并调整并发。 |'."\n" + .'| 404 | 传入的图片下载遇到错误,请检查或重试。 |'."\n" + .'| 405 | 传入的图片下载超时,可能是因为图片无法访问,请检查调整后重试。 |'."\n" + .'| 406 | 传入的图片过大,请检查调整图片大小后再重试。 |'."\n" + .'| 407 | 传入的图片格式暂不支持,请检查调整后重试。 |'."\n" + .'| 408 | 该账号无权限调用该接口,可能是账号未开通或者已欠费,或者调用账号未被授权访问。 |'."\n" + .'| 409 | 传入的reqId不存在,可能是查询间隔过快,或者已经超过30天有效期。 |'."\n" + .'| 500 | 系统异常。 |', + ], + 'VoiceModeration' => [ + 'summary' => '提交语音审核增强版检测任务。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '162159', + 'abilityTreeNodes' => [ + 'FEATURElvwang6QCU1H', + 'FEATURElvwangPAXR7J', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '语音审核ServiceCode', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'audio_media_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n" + ."\n" + .'url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n" + .'dataId:选填,检测对象对应的数据ID。'."\n" + .'更多信息,请参见ServiceParameter。', + 'type' => 'string', + 'required' => false, + 'example' => '{"url": "http://aliyundoc.com/test.flv", "dataId": "data1234"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => '错误代码', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => '返回任务信息数据结构', + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'description' => '任务Id', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => 'data1234', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]', + 'title' => '语音审核增强版任务提交', + ], + 'VoiceModerationResult' => [ + 'summary' => '语音审核增强版检测结果获取接口。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '162180', + 'abilityTreeNodes' => [ + 'FEATURElvwang6QCU1H', + 'FEATURElvwangPAXR7J', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务类型,包括:'."\n" + .'nickname_detection:用户昵称'."\n" + .'待定', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '网关向后端服务发送API请求的参数描述。'."\n" + ."\n" + .'更多信息,请参见[ServiceParameter](~~43988~~)。', + 'type' => 'string', + 'required' => false, + 'example' => '暂无', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3', + ], + 'Code' => [ + 'description' => '错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '请求消息的响应消息。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'Url' => [ + 'description' => '任务URL', + 'type' => 'string', + 'example' => '暂无', + ], + 'LiveId' => [ + 'description' => '直播的唯一标识ID。', + 'type' => 'string', + 'example' => 'liveId', + ], + 'TaskId' => [ + 'description' => '任务ID', + 'type' => 'string', + 'example' => 'kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb', + ], + 'SliceDetails' => [ + 'description' => '分段结果', + 'type' => 'array', + 'items' => [ + 'description' => '分段结果条目', + 'type' => 'object', + 'properties' => [ + 'StartTime' => [ + 'description' => '分段开始时间(秒)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'EndTime' => [ + 'description' => '分段结束时间(秒)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'StartTimestamp' => [ + 'description' => '切片开始时间戳,单位:毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1678854649720', + ], + 'EndTimestamp' => [ + 'description' => '切片结束时间戳,单位:毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1678854649720', + ], + 'Url' => [ + 'description' => '分段语音文件临时地址', + 'type' => 'string', + 'example' => '暂无', + ], + 'Text' => [ + 'description' => '分段语音转写文本', + 'type' => 'string', + 'example' => '今天天气真不错', + ], + 'Labels' => [ + 'description' => '命中违规标签', + 'type' => 'string', + 'example' => 'sexual_sounds', + ], + 'Score' => [ + 'description' => '风险分数,默认范围 0-99', + 'type' => 'number', + 'format' => 'float', + 'example' => '87.01', + ], + 'Extend' => [ + 'description' => '扩展字段', + 'type' => 'string', + 'example' => '{\\"riskWords\\":\\"色情服务\\","adNums":"\\","riskTips":"涉政_人物,涉政_红歌"}', + ], + 'RiskTips' => [ + 'description' => '命中风险详情', + 'type' => 'string', + 'example' => '涉政_人物', + ], + 'RiskWords' => [ + 'description' => '命中风险关键词', + 'type' => 'string', + 'example' => '色情服务', + ], + 'OriginAlgoResult' => [ + 'description' => '保留字段', + 'type' => 'object', + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + 'Descriptions' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '疑似违禁内容', + ], + ], + ], + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => 'data1234', + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"Url\\": \\"暂无\\",\\n \\"LiveId\\": \\"liveId\\",\\n \\"TaskId\\": \\"kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb\\",\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 10,\\n \\"StartTimestamp\\": 1678854649720,\\n \\"EndTimestamp\\": 1678854649720,\\n \\"Url\\": \\"暂无\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"sexual_sounds\\",\\n \\"Score\\": 87.01,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\",\\\\\\"adNums\\\\\\":\\\\\\"\\\\\\\\\\\\\\",\\\\\\"riskTips\\\\\\":\\\\\\"涉政_人物,涉政_红歌\\\\\\"}\\",\\n \\"RiskTips\\": \\"涉政_人物\\",\\n \\"RiskWords\\": \\"色情服务\\",\\n \\"OriginAlgoResult\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"DataId\\": \\"data1234\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]', + 'title' => '查询语音审核结果', + ], + 'VoiceModerationCancel' => [ + 'summary' => '语音审核增强版取消任务接口。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '164076', + 'abilityTreeNodes' => [ + 'FEATURElvwang6QCU1H', + 'FEATURElvwangPAXR7J', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务类型,包括:'."\n" + .'nickname_detection:用户昵称'."\n" + .'待定', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '待取消任务TaskId', + 'type' => 'string', + 'required' => false, + 'example' => '{'."\n" + .' "taskId": "xxxxx-xxxx"'."\n" + .' }', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '4A926AE2-4C96-573F-824F-0532960799F8', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '请求消息的响应消息。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\"\\n}","type":"json"}]', + 'title' => '取消语音流审核任务', + ], + 'VideoModeration' => [ + 'summary' => '内容安全视频审核增强版,帮助您检测视频文件中的风险或违规内容。本接口为检测任务提交接口。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '187556', + 'abilityTreeNodes' => [ + 'FEATURElvwang53TCRC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '视频审核ServiceCode', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamDetection' => '视频直播流审核', + 'videoDetection' => '视频文件审核', + 'liveStreamDetection_cb' => '视频直播流审核_海外版', + 'videoDetection_cb' => '视频文件审核_海外版', + ], + 'example' => 'videoDetection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n" + .'- url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n" + .'- dataId:选填,检测对象对应的数据ID。'."\n" + ."\n" + .'更多信息,请参见[ServiceParameter](https://help.aliyun.com/document_detail/2505810.html)。', + 'type' => 'string', + 'required' => false, + 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => '请求消息的响应消息。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'description' => '任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => 'data1234', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]', + 'title' => '视频审核增强版任务提交', + 'description' => '请确保在使用该接口前,已[开通内容安全增强版](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)服务,并充分了解视频审核增强版产品的[收费方式](https://help.aliyun.com/document_detail/2505807.html)和[价格](https://www.aliyun.com/price/product?#/lvwang/detail/cdibag)。', + ], + 'VideoModerationResult' => [ + 'summary' => '获取视频审核增强版审核任务结果。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '187919', + 'abilityTreeNodes' => [ + 'FEATURElvwang53TCRC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '视频审核ServiceCode', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamDetection' => '视频直播流审核', + 'videoDetection' => '视频文件审核', + 'liveStreamDetection_cb' => '视频直播流审核_海外版', + 'videoDetection_cb' => '视频文件审核_海外版', + ], + 'example' => 'videoDetection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId。', + 'type' => 'string', + 'required' => false, + 'example' => '{"taskId":"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '返回信息。', + 'type' => 'string', + 'example' => 'success finished', + ], + 'Data' => [ + 'description' => '审核结果数据。', + 'type' => 'object', + 'properties' => [ + 'LiveId' => [ + 'description' => '直播的唯一标识ID。', + 'type' => 'string', + 'example' => 'liveId', + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => 'product_content-2055763', + ], + 'AudioResult' => [ + 'description' => '视频语音审核分段结果。', + 'type' => 'object', + 'properties' => [ + 'SliceDetails' => [ + 'description' => '语音分段列表', + 'type' => 'array', + 'items' => [ + 'description' => '分段详情', + 'type' => 'object', + 'properties' => [ + 'StartTime' => [ + 'description' => '分段开始时间(秒)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'EndTime' => [ + 'description' => '分段结束时间(秒)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30', + ], + 'StartTimestamp' => [ + 'description' => '开始时间戳,精确到毫秒', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1659935002123', + ], + 'EndTimestamp' => [ + 'description' => '结束时间戳', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1685245261939', + ], + 'Url' => [ + 'description' => '分段语音文件临时地址', + 'type' => 'string', + 'example' => 'http://xxxx.abc.img', + ], + 'Text' => [ + 'description' => '分段语音转写文本', + 'type' => 'string', + 'example' => '今天天气真不错', + ], + 'Labels' => [ + 'description' => '命中违规标签', + 'type' => 'string', + 'example' => 'porn', + ], + 'Score' => [ + 'description' => '风险分数,默认范围 0-99', + 'type' => 'number', + 'format' => 'float', + 'example' => '5', + ], + 'Extend' => [ + 'description' => '扩展字段', + 'type' => 'string', + 'example' => '{\\"consoleProduct\\":\\"slbnext\\"}', + ], + 'RiskTips' => [ + 'description' => '命中风险详情', + 'type' => 'string', + 'example' => '""', + ], + 'RiskWords' => [ + 'description' => '命中风险关键词', + 'type' => 'string', + 'example' => '""', + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + 'Descriptions' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '疑似违禁内容', + ], + ], + ], + ], + 'AudioSummarys' => [ + 'description' => '语音标签汇总。', + 'type' => 'array', + 'items' => [ + 'description' => '对象', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '视频语音标签。', + 'type' => 'string', + 'example' => 'profanity', + ], + 'LabelSum' => [ + 'description' => '标签出现次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'Description' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '疑似违禁内容', + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + 'FrameResult' => [ + 'description' => '视频截帧结果列表', + 'type' => 'object', + 'properties' => [ + 'FrameNum' => [ + 'description' => '结果帧数量', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'Frames' => [ + 'description' => '包含命中标签的视频截帧的信息。', + 'type' => 'array', + 'items' => [ + 'description' => '对象', + 'type' => 'object', + 'properties' => [ + 'TempUrl' => [ + 'description' => '截帧图片临时访问地址', + 'type' => 'string', + 'example' => 'http://xxxx.abc.jpg', + ], + 'Offset' => [ + 'description' => '截帧偏移值。', + 'type' => 'number', + 'format' => 'float', + 'example' => '338', + ], + 'Results' => [ + 'description' => '帧检测结果详情', + 'type' => 'array', + 'items' => [ + 'description' => '对象', + 'type' => 'object', + 'properties' => [ + 'Service' => [ + 'description' => '图片审核服务类型', + 'type' => 'string', + 'example' => 'tonalityImprove', + ], + 'Result' => [ + 'description' => '命中结果详情', + 'type' => 'array', + 'items' => [ + 'description' => '对象', + 'type' => 'object', + 'properties' => [ + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '50', + ], + 'Label' => [ + 'description' => '检测结果的分类', + 'type' => 'string', + 'example' => 'bloody', + ], + 'Description' => [ + 'description' => '对Labal字段的说明。', + 'type' => 'string', + 'example' => '未检测出风险', + ], + ], + ], + ], + 'TextInImage' => [ + 'description' => '返回命中的图片中文字信息。', + 'type' => 'object', + ], + 'CustomImage' => [ + 'description' => '如果命中自定义图库,返回命中的自定义图库信息。', + 'type' => 'array', + 'items' => [ + 'description' => '对象', + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => '命中的自定义图库ID。', + 'type' => 'string', + 'example' => '12345678', + ], + 'ImageId' => [ + 'description' => '命中的自定义图片ID。', + 'type' => 'string', + 'example' => '1234', + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => '视频中包含特定人物时,返回识别出来的人物编码。', + 'type' => 'array', + 'items' => [ + 'description' => '对象', + 'type' => 'object', + 'properties' => [ + 'FigureId' => [ + 'description' => '识别出的人物编码信息。', + 'type' => 'string', + 'example' => 'xxx001', + ], + 'FigureName' => [ + 'description' => '识别出的人物名称', + 'type' => 'string', + 'example' => '张三', + ], + 'Location' => [ + 'description' => '识别出的人物的位置', + 'type' => 'array', + 'items' => [ + 'description' => '位置对象', + 'type' => 'object', + 'properties' => [ + 'W' => [ + 'description' => '宽', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + 'H' => [ + 'description' => '高', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '222', + ], + 'X' => [ + 'description' => '起始点横坐标', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + 'Y' => [ + 'description' => '起始点纵坐标', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '222', + ], + ], + ], + ], + ], + ], + ], + 'LogoData' => [ + 'description' => '视频中包含logo时,返回的logo信息', + 'type' => 'array', + 'items' => [ + 'description' => 'logo信息对象', + 'type' => 'object', + 'properties' => [ + 'Location' => [ + 'description' => '文字行及坐标信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '222', + ], + 'W' => [ + 'description' => '文字区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + 'H' => [ + 'description' => '文字区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + ], + ], + 'Logo' => [ + 'description' => '标识信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'logo对象', + 'type' => 'object', + 'properties' => [ + 'label' => [ + 'description' => '命中标签', + 'type' => 'string', + 'example' => 'pt_logotoSocialNetwork', + ], + 'name' => [ + 'description' => '标识名。', + 'type' => 'string', + 'example' => '**卫视', + ], + 'confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '99.1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'Timestamp' => [ + 'description' => '绝对时间戳,单位:毫秒。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1684559739000', + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'FrameSummarys' => [ + 'description' => '视频截帧标签汇总。', + 'type' => 'array', + 'items' => [ + 'description' => '视频截帧标签对象', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '视频截帧标签。', + 'type' => 'string', + 'example' => 'violent_armedForces', + ], + 'LabelSum' => [ + 'description' => '标签出现次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'Description' => [ + 'description' => '对Labal字段的说明。', + 'type' => 'string', + 'example' => '未检测出风险', + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + 'TaskId' => [ + 'description' => '任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success finished\\",\\n \\"Data\\": {\\n \\"LiveId\\": \\"liveId\\",\\n \\"DataId\\": \\"product_content-2055763\\",\\n \\"AudioResult\\": {\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 30,\\n \\"StartTimestamp\\": 1659935002123,\\n \\"EndTimestamp\\": 1685245261939,\\n \\"Url\\": \\"http://xxxx.abc.img\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Score\\": 5,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"consoleProduct\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"slbnext\\\\\\\\\\\\\\"}\\",\\n \\"RiskTips\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskWords\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"AudioSummarys\\": [\\n {\\n \\"Label\\": \\"profanity\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"FrameResult\\": {\\n \\"FrameNum\\": 10,\\n \\"Frames\\": [\\n {\\n \\"TempUrl\\": \\"http://xxxx.abc.jpg\\",\\n \\"Offset\\": 338,\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"tonalityImprove\\",\\n \\"Result\\": [\\n {\\n \\"Confidence\\": 50,\\n \\"Label\\": \\"bloody\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"12345678\\",\\n \\"ImageId\\": \\"1234\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"xxx001\\",\\n \\"FigureName\\": \\"张三\\",\\n \\"Location\\": [\\n {\\n \\"W\\": 111,\\n \\"H\\": 222,\\n \\"X\\": 111,\\n \\"Y\\": 222\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 111,\\n \\"Y\\": 222,\\n \\"W\\": 111,\\n \\"H\\": 111\\n },\\n \\"Logo\\": [\\n {\\n \\"label\\": \\"pt_logotoSocialNetwork\\",\\n \\"name\\": \\"**卫视\\",\\n \\"confidence\\": 99.1\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"Timestamp\\": 1684559739000,\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameSummarys\\": [\\n {\\n \\"Label\\": \\"violent_armedForces\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]', + 'title' => '查询视频审核任务结果', + 'description' => '该接口不计费,建议您将查询间隔设置为30秒(即在提交异步检测任务30秒后查询结果),最长不能超出24小时,否则结果将会自动删除。', + ], + 'VideoModerationCancel' => [ + 'summary' => '取消视频直播审核任务。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '201471', + 'abilityTreeNodes' => [ + 'FEATURElvwang53TCRC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务类型', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamDetection' => '视频直播流检测', + 'videoDetection' => '视频文件检测', + 'liveStreamDetection_cb' => '视频直播流审核_海外版', + 'videoDetection_cb' => '视频文件审核_海外版', + ], + 'example' => 'videoDetection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '待取消任务TaskId', + 'type' => 'string', + 'required' => false, + 'example' => '{\\"taskId\\":\\"vi_s_4O9gp7GfNQdx9GOqdekFmk-1z2RJT\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '6CF2815C-****-****-B52E-FF6E2****492', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '返回信息。', + 'type' => 'string', + 'example' => 'OK', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]', + 'title' => '取消视频直播审核任务', + ], + 'FileModeration' => [ + 'summary' => '文档检测', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '204033', + 'abilityTreeNodes' => [ + 'FEATURElvwangCXKRID', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件检测增强版支持的服务', + 'type' => 'string', + 'required' => false, + 'example' => 'document_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n" + .'- url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n" + .'- dataId:选填,检测对象对应的数据ID。', + 'type' => 'string', + 'required' => false, + 'example' => '{"url":"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => '错误码,和HTTP状态码一致。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'description' => '任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]', + 'title' => '文档检测任务提交', + ], + 'DescribeFileModerationResult' => [ + 'summary' => '文档审核结果', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205895', + 'abilityTreeNodes' => [ + 'FEATURElvwang6CEZ66', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '文件检测增强版支持的服务', + 'type' => 'string', + 'required' => false, + 'example' => 'document_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n" + .'- taskId:必填,待检测对象的URL,请确保该URL能通过公网访问到。', + 'type' => 'string', + 'required' => false, + 'example' => '{\\"taskId\\":\\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => '数据ID。', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'Url' => [ + 'description' => '文件下载URL路径。', + 'type' => 'string', + 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf', + ], + 'DocType' => [ + 'description' => '可选,文档类型', + 'type' => 'string', + 'example' => 'doc', + ], + 'PageResult' => [ + 'description' => '检测结果列表', + 'type' => 'array', + 'items' => [ + 'description' => '结果内容', + 'type' => 'object', + 'properties' => [ + 'PageNum' => [ + 'description' => '页码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ImageUrl' => [ + 'description' => '图片地址', + 'type' => 'string', + 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg', + ], + 'TextUrl' => [ + 'description' => '文本内容保存地址', + 'type' => 'string', + 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt', + ], + 'ImageResult' => [ + 'description' => '图片检测结果', + 'type' => 'array', + 'items' => [ + 'description' => '结果内容', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => '这个是标题', + ], + 'Service' => [ + 'description' => '调用的服务', + 'type' => 'string', + 'example' => 'baselineCheck', + ], + 'Location' => [ + 'description' => '位置信息', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '坐标点的X值。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '坐标点的Y值。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => '坐标点的W值。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'H' => [ + 'description' => '坐标点的H值。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + 'LabelResult' => [ + 'description' => '标签信息', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标签', + 'type' => 'string', + 'example' => 'nonlabel', + ], + 'Confidence' => [ + 'description' => '分险分', + 'type' => 'number', + 'format' => 'float', + 'example' => '25.0', + ], + 'Description' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => '这个是标题'."\n", + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'TextResult' => [ + 'description' => '文本审核结果。', + 'type' => 'array', + 'items' => [ + 'description' => '结果内容', + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'description' => '描述', + 'type' => 'string', + 'example' => '这是一个标题', + ], + 'Service' => [ + 'description' => '服务', + 'type' => 'string', + 'example' => 'chat_detection', + ], + 'Text' => [ + 'description' => '文本内容', + 'type' => 'string', + 'example' => '吧啦吧啦', + ], + 'TextSegment' => [ + 'description' => '文本分段信息', + 'type' => 'string', + 'example' => '[0,999]', + ], + 'Labels' => [ + 'description' => '标签的值。', + 'type' => 'string', + 'example' => 'porn', + ], + 'Descriptions' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '疑似广告内容', + ], + 'RiskWords' => [ + 'description' => '命中风险关键词', + 'type' => 'string', + 'example' => 'xxx', + ], + 'RiskTips' => [ + 'description' => '命中风险详情', + 'type' => 'string', + 'example' => 'xxx', + ], + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + ], + ], + ], + 'PageSummary' => [ + 'description' => '汇总信息', + 'type' => 'object', + 'properties' => [ + 'PageSum' => [ + 'description' => '总页数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ImageSummary' => [ + 'description' => '图片汇总信息', + 'type' => 'object', + 'properties' => [ + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + 'ImageLabels' => [ + 'description' => '图片标签。', + 'type' => 'array', + 'items' => [ + 'description' => '图片标签。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标签。', + 'type' => 'string', + 'example' => 'contraband', + ], + 'LabelSum' => [ + 'description' => '标签出现次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Description' => [ + 'description' => '标签描述', + 'type' => 'string', + 'example' => 'test', + ], + ], + ], + ], + ], + ], + 'TextSummary' => [ + 'description' => '文本汇总信息', + 'type' => 'object', + 'properties' => [ + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + 'TextLabels' => [ + 'description' => '文本标签。', + 'type' => 'array', + 'items' => [ + 'description' => '文本标签。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标签。', + 'type' => 'string', + 'example' => 'contraband', + ], + 'LabelSum' => [ + 'description' => '标签出现次数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Description' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '未检测出风险', + ], + ], + ], + ], + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级', + 'type' => 'string', + 'example' => 'high', + ], + 'AccountId' => [ + 'description' => '客户入参AccountId', + 'type' => 'string', + 'example' => 'accountIdtest123', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Url\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf\\",\\n \\"DocType\\": \\"doc\\",\\n \\"PageResult\\": [\\n {\\n \\"PageNum\\": 1,\\n \\"ImageUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg\\",\\n \\"TextUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt\\",\\n \\"ImageResult\\": [\\n {\\n \\"Description\\": \\"这个是标题\\",\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n },\\n \\"LabelResult\\": [\\n {\\n \\"Label\\": \\"nonlabel\\",\\n \\"Confidence\\": 25,\\n \\"Description\\": \\"这个是标题\\\\n\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"TextResult\\": [\\n {\\n \\"Description\\": \\"这是一个标题\\",\\n \\"Service\\": \\"chat_detection\\",\\n \\"Text\\": \\"吧啦吧啦\\",\\n \\"TextSegment\\": \\"[0,999]\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Descriptions\\": \\"疑似广告内容\\",\\n \\"RiskWords\\": \\"xxx\\",\\n \\"RiskTips\\": \\"xxx\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ]\\n }\\n ],\\n \\"PageSummary\\": {\\n \\"PageSum\\": 1,\\n \\"ImageSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"ImageLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"test\\"\\n }\\n ]\\n },\\n \\"TextSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"TextLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"AccountId\\": \\"accountIdtest123\\"\\n }\\n}","type":"json"}]', + 'title' => '查询文档检测结果', + ], + 'DescribeImageResultExt' => [ + 'summary' => '图片审核增强版辅助信息API用于获取图片审核增强版API接口识别的更多辅助信息,包含图片文字识别结果、自定义图库命中信息等。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '178655', + 'abilityTreeNodes' => [ + 'FEATURElvwangLRLIH6', + ], + ], + 'parameters' => [ + [ + 'name' => 'ReqId', + 'in' => 'formData', + 'schema' => [ + 'description' => '图片审核增强版API返回的requestId字段', + 'type' => 'string', + 'required' => false, + 'example' => '638EDDC65C82AB39319A9F60', + ], + ], + [ + 'name' => 'InfoType', + 'in' => 'formData', + 'schema' => [ + 'description' => '需要获取的信息内容,多个值使用英文逗号隔开,取值:'."\n" + .'- customImage:自定义图库命中信息'."\n" + .'- textInImage:图片中文字信息', + 'type' => 'string', + 'required' => false, + 'example' => 'customImage,textInImage', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回对象。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => '状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '请求信息的响应信息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'CustomImage' => [ + 'description' => '自定义图库命中信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '自定义图库命中信息。', + 'type' => 'object', + 'properties' => [ + 'ImageId' => [ + 'description' => '图片ID。', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => '图库名。', + 'type' => 'string', + 'example' => '图库123', + ], + 'LibId' => [ + 'description' => '图库ID。', + 'type' => 'string', + 'example' => '123456', + ], + ], + ], + ], + 'TextInImage' => [ + 'description' => '返回命中的图片中文字信息。', + 'type' => 'object', + 'properties' => [ + 'OcrDatas' => [ + 'description' => '返回识别到的图片中的文字信息。', + 'type' => 'array', + 'items' => [ + 'description' => '文字信息。', + 'type' => 'string', + 'example' => 'abcd', + ], + ], + 'RiskWords' => [ + 'description' => '命中风险关键词', + 'type' => 'array', + 'items' => [ + 'description' => '文字信息。', + 'type' => 'string', + 'example' => 'abcd', + ], + ], + 'CustomTexts' => [ + 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => '自定义库ID', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => '自定义库名称。', + 'type' => 'string', + 'example' => '自定义库1', + ], + 'KeyWords' => [ + 'description' => '自定义词,多个词用逗号分隔。', + 'type' => 'string', + 'example' => '自定义词1,自定义词2', + ], + ], + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => '人物信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '人物信息。', + 'type' => 'object', + 'properties' => [ + 'FigureId' => [ + 'description' => '人物ID。', + 'type' => 'string', + 'example' => 'yzazhzou', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"CustomImage\\": [\\n {\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\",\\n \\"LibId\\": \\"123456\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrDatas\\": [\\n \\"abcd\\"\\n ],\\n \\"RiskWords\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomTexts\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"yzazhzou\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '图片辅助信息获取接口', + 'description' => '本接口需要配合图片审核增强版API使用,在调用图片审核增强版API接口之后,可以调用本接口,获取更多的接口检测信息。此接口免费。', + 'requestParamsDescription' => '建议调用图片审核增强版接口5秒钟之后查询,辅助信息存储最长时间为30天,建议您需要时及时获取辅助信息,并做好日志存储。', + ], + 'UrlAsyncModeration' => [ + 'summary' => 'URL异步检测服务,识别URL链接是否存在欺诈、色情、赌博等风险,守护平台内容生态。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '211718', + 'abilityTreeNodes' => [ + 'FEATURElvwang7UL554', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'query', + 'schema' => [ + 'description' => '服务名称:URL风险链接检测', + 'type' => 'string', + 'required' => false, + 'example' => 'URL风险链接检测:url_detection_pro', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'query', + 'schema' => [ + 'description' => '内容检测对象的相关参数集,JSON字符串格式,请参见ServiceParameters说明。', + 'type' => 'string', + 'required' => false, + 'example' => '{'."\n" + .' "url": "https://help.aliyun.com/",'."\n" + .' "dataId": "url123******"'."\n" + .'}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '6CF2815C-****-****-B52E-FF6E2****492', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'ReqId' => [ + 'description' => 'URL 异步审核增强版API返回的ReqId字段,可用此字段查询检测结果。', + 'type' => 'string', + 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\"\\n }\\n}","type":"json"}]', + 'title' => 'URL风险异步检测', + 'description' => 'URL 异步检测服务支持按量后付费和资源包抵扣两种付费方式。'."\n" + ."\n" + .'- 当您开通文本审核增强版服务后,默认付费方式是按量后付费,且按照实际用量结算当日费用,不调用服务不收费,30元/万次。'."\n" + ."\n" + .'- 如果您的审核量较大,或有相对固定的审核需求,建议预先购买资源包的方式。购买资源包规格越大,享受的折扣越大,支持叠加购买和使用。', + 'requestParamsDescription' => '### ServiceParameters 说明'."\n" + .'| **名称** | **类型** | **是否必选** | **示例值** | **描述** |'."\n" + .'| --- | --- | --- | --- | --- |'."\n" + .'| url | String | 是 | [https://help.aliyun.com/](https://help.aliyun.com/) | 待检测的URL。说明 请确保该URL符合URL格式要求。且一次请求请确保仅传入1条URL。 |'."\n" + .'| **dataId** | String | 否 | url123**** | 检测对象对应的数据ID。由大小写英文字母、数字、下划线(_)、短划线(-)、英文句号(.)组成,不超过64个字符,可以用于唯一标识您的业务数据。 |'."\n" + .'| **callback** | String | 否 | http://www.aliyun.com | 检测结果回调通知您的URL,支持使用HTTP和HTTPS协议的地址。该字段为空时,您必须定时轮询检测结果。callback接口必须支持POST方法、UTF-8编码的传输数据,以及表单参数**ReqId**,**Checksum**和**Content**。内容安全按照以下规则和格式设置**ReqId**,**Checksum**和**Content**,调用您的callback接口返回检测结果。- **ReqId**:提交异步检测任务返回的请求ID。- **Checksum**:字符串格式,由用户uid + seed + content拼成字符串,通过SHA256算法生成。用户UID即阿里云账号ID,可以在[阿里云控制台](https://account.console.aliyun.com/#/secure)查询。为防篡改,您可以在获取到推送结果时,按上述算法生成字符串,与**Checksum**做一次校验。**说明**用户UID必须是阿里云账号的UID,而不是RAM用户的UID。- **Content**:JSON字符串格式,请自行解析反转成JSON对象。关于**Content**结果的示例,请参见查询检测结果的返回示例。**说明** 您的服务端callback接口收到内容安全推送的结果后,如果返回的HTTP状态码为200,则表示接收成功,其他的HTTP状态码均视为接收失败。接收失败时,内容安全将最多重复推送16次检测结果,直到接收成功。重复推送16次后仍未接收成功,则不再推送,建议您检查callback接口的状态。 |'."\n" + .'| **seed** | String | 否 | abc**** | 随机字符串,该值用于回调通知请求中的签名。由英文字母、数字、下划线(_)组成,不超过64个字符。由您自定义,用于在接收到内容安全的回调通知时校验请求由阿里云内容安全服务发起。**说明** 当使用callback时,该字段必须提供。 |'."\n" + .'| **cryptType** | String | 否 | SHA256 | 使用回调通知时(callback),设置对回调通知内容进行加密的算法。内容安全会将返回结果(由**用户uid + seed + content**拼接的字符串)按照您设置的加密算法加密后,再发送到您的回调通知地址。取值:●**SHA256**(默认):使用SHA256加密算法。●**SM3**:使用国密HMAC-SM3加密算法,返回十六进制的字符串,且字符串由小写字母和数字组成。例如,abc经国密SM3加密后返回。 |', + ], + 'DescribeUrlModerationResult' => [ + 'summary' => '根据 URL 异步检测返回的 ReqId查询检测结果。', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '211720', + 'abilityTreeNodes' => [ + 'FEATURElvwang7UL554', + ], + ], + 'parameters' => [ + [ + 'name' => 'ReqId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'URL异步检测接口返回的ReqId字段', + 'type' => 'string', + 'required' => false, + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '本次请求的ID。', + 'type' => 'string', + 'example' => '01F9144A-2088-5D87-935B-2DB865284B1A', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'ReqId' => [ + 'description' => 'URL异步检测接口返回的ReqId字段', + 'type' => 'string', + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n", + ], + 'Result' => [ + 'description' => '返回集合。', + 'type' => 'array', + 'items' => [ + 'description' => '返回集合。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'URL检测运算后返回的标签。', + 'type' => 'string', + 'example' => 'sexual_url', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + ], + ], + ], + 'ExtraInfo' => [ + 'description' => '补充信息。', + 'type' => 'object', + 'properties' => [ + 'IcpType' => [ + 'description' => 'ICP备案类型。', + 'type' => 'string', + 'example' => '企业', + ], + 'IcpNo' => [ + 'description' => 'ICP备案号。', + 'type' => 'string', + 'example' => 'ICP备123456789', + ], + 'SiteType' => [ + 'description' => '网站类型', + 'type' => 'string', + 'example' => 'game', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"01F9144A-2088-5D87-935B-2DB865284B1A\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"sexual_url\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"ExtraInfo\\": {\\n \\"IcpType\\": \\"企业\\",\\n \\"IcpNo\\": \\"ICP备123456789\\",\\n \\"SiteType\\": \\"game\\"\\n }\\n }\\n}","type":"json"}]', + 'title' => '查询URL异步检测结果', + 'description' => '- 计费信息:该接口不计费。'."\n" + .'- 查询超时:建议您将查询间隔设置为480秒(即在提交异步检测任务480秒之后查询结果),最长不能超出3天,否则结果将会自动删除。'."\n" + .'- 本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。', + ], + 'DescribeUploadToken' => [ + 'summary' => '查询上传token', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '186981', + 'abilityTreeNodes' => [ + 'FEATURElvwang78REFZ', + ], + ], + 'parameters' => [], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'AccessKeyId' => [ + 'description' => '文件上传临时凭证的AccessKeyId。', + 'type' => 'string', + 'example' => 'STS.NUEUjvDqMuvH6oQA1TXxxH4wVR', + ], + 'AccessKeySecret' => [ + 'description' => '临时授权secret。', + 'type' => 'string', + 'example' => 'xxxx', + ], + 'SecurityToken' => [ + 'description' => '文件上传临时凭证的安全令牌。', + 'type' => 'string', + 'example' => 'xxxx', + ], + 'FileNamePrefix' => [ + 'description' => '文件前缀。', + 'type' => 'string', + 'example' => 'upload/1xxb89/', + ], + 'OssInternalEndPoint' => [ + 'description' => 'oss内网地址。', + 'type' => 'string', + 'example' => 'https://oss-cn-shanghai-internal.aliyuncs.com', + ], + 'OssInternetEndPoint' => [ + 'description' => 'oss公网地址。', + 'type' => 'string', + 'example' => 'https://oss-cn-shanghai.aliyuncs.com', + ], + 'BucketName' => [ + 'description' => '存储空间名称。', + 'type' => 'string', + 'example' => 'oss-cip-shanghai', + ], + 'Expiration' => [ + 'description' => '失效时间点。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1720577200', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"AccessKeyId\\": \\"STS.NUEUjvDqMuvH6oQA1TXxxH4wVR\\",\\n \\"AccessKeySecret\\": \\"xxxx\\",\\n \\"SecurityToken\\": \\"xxxx\\",\\n \\"FileNamePrefix\\": \\"upload/1xxb89/\\",\\n \\"OssInternalEndPoint\\": \\"https://oss-cn-shanghai-internal.aliyuncs.com\\",\\n \\"OssInternetEndPoint\\": \\"https://oss-cn-shanghai.aliyuncs.com\\",\\n \\"BucketName\\": \\"oss-cip-shanghai\\",\\n \\"Expiration\\": 1720577200\\n }\\n}","type":"json"}]', + 'title' => '查询上传token', + ], + 'ImageBatchModeration' => [ + 'summary' => '图片批量调用', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '214644', + 'abilityTreeNodes' => [ + 'FEATURElvwang78REFZ', + 'FEATURElvwangRPPHPG', + 'FEATURElvwangRBUEEU', + 'FEATURElvwang7UTKSK', + 'FEATURElvwangYHRCHH', + 'FEATURElvwang8B97ZG', + 'FEATURElvwangT9BDZM', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'query', + 'schema' => [ + 'description' => '图片审核增强版支持的检测类型,多个使用英文逗号隔开。取值:'."\n" + ."\n" + .'- baselineCheck:通用基线检测'."\n" + .'- baselineCheck_pro:通用基线检测_专业版'."\n" + .'- tonalityImprove:内容治理检测'."\n" + .'- aigcCheck:AIGC图片检测', + 'type' => 'string', + 'required' => false, + 'example' => 'baselineCheck,tonalityImprove', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'query', + 'schema' => [ + 'description' => '内容检测对象的相关参数集。', + 'type' => 'string', + 'required' => false, + 'example' => '{'."\n" + .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n" + .' "dataId": "img123****"'."\n" + .' }', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Body返回值', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'."\n", + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => '本次请求的响应消息。', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => '图片内容检测后的结果。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => '检测对象对应的数据ID。', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'Results' => [ + 'description' => '每个Service图片检测的风险标签、置信分等参数结果,数组结构。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'Service' => [ + 'description' => '图片检测增强版支持的检测服务。', + 'type' => 'string', + 'example' => 'baselineCheck', + ], + 'Result' => [ + 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => '描述。', + 'type' => 'string', + 'example' => '未检测出风险', + ], + ], + ], + ], + 'Ext' => [ + 'description' => '图片辅助参考信息。', + 'type' => 'object', + 'properties' => [ + 'TextInImage' => [ + 'description' => '返回命中的图片中文字信息。', + 'type' => 'object', + 'properties' => [ + 'OcrResult' => [ + 'description' => '返回识别到的图片中的每行文字信息。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构', + 'type' => 'object', + 'properties' => [ + 'Text' => [ + 'description' => '文字信息。', + 'type' => 'string', + 'example' => 'abcd', + ], + 'Location' => [ + 'description' => '文字行坐标信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'H' => [ + 'description' => '文字区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'W' => [ + 'description' => '文字区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + ], + ], + ], + 'RiskWord' => [ + 'description' => '命中风险关键词。', + 'type' => 'array', + 'items' => [ + 'description' => '文字信息。', + 'type' => 'string', + 'example' => '火箭', + ], + ], + 'CustomText' => [ + 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => '自定义库ID。', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => '自定义库名称。', + 'type' => 'string', + 'example' => '自定义库1', + ], + 'KeyWords' => [ + 'description' => '自定义词,多个词用逗号分隔。', + 'type' => 'string', + 'example' => '自定义词1,自定义词2', + ], + ], + ], + ], + ], + ], + 'CustomImage' => [ + 'description' => '自定义图库命中信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => '自定义库ID', + 'type' => 'string', + 'example' => '1965304870002', + ], + 'ImageId' => [ + 'description' => '命中的自定义图片ID。', + 'type' => 'string', + 'example' => '1965304870002', + ], + 'LibName' => [ + 'description' => '命中的自定义图库名。', + 'type' => 'string', + 'example' => '白名单', + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => '人物信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'FigureName' => [ + 'description' => '识别出的人物名称信息。', + 'type' => 'string', + 'example' => 'xxxxx', + ], + 'FigureId' => [ + 'description' => '识别出的人物编码信息。', + 'type' => 'string', + 'example' => '12324222', + ], + 'Location' => [ + 'description' => '标识的位置信息。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => '文字区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '330', + ], + 'H' => [ + 'description' => '文字区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '440', + ], + ], + ], + ], + ], + ], + ], + 'LogoData' => [ + 'description' => 'Logo标识信息。', + 'type' => 'object', + 'properties' => [ + 'Location' => [ + 'description' => '标识的位置信息。', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'Logo区域的宽度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '330', + ], + 'H' => [ + 'description' => 'Logo区域的高度,单位:像素。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '440', + ], + ], + ], + 'Logo' => [ + 'description' => '标识信息。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '标识类别。', + 'type' => 'string', + 'example' => 'logo_sns', + ], + 'Name' => [ + 'description' => '标识名。', + 'type' => 'string', + 'example' => '阿里云', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.1', + ], + ], + ], + ], + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'Result' => [ + 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。', + 'type' => 'array', + 'items' => [ + 'description' => '数据结构。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => '描述。', + 'type' => 'string', + 'example' => '未检测出风险', + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'description' => '人审任务ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\\\n\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"火箭\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"1965304870002\\",\\n \\"ImageId\\": \\"1965304870002\\",\\n \\"LibName\\": \\"白名单\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"xxxxx\\",\\n \\"FigureId\\": \\"12324222\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"阿里云\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]', + 'title' => '图片多Service同步检测', + 'requestParamsDescription' => '```'."\n" + .'{'."\n" + .' "Service": "baselineCheck,tonalityImprove",'."\n" + .' "ServiceParameters": {'."\n" + .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n" + .' "dataId": "img123****"'."\n" + .' }'."\n" + .'}'."\n" + ."\n" + .'```', + 'responseParamsDescription' => '```'."\n" + .'{'."\n" + .' "Msg": "success",'."\n" + .' "Code": 200,'."\n" + .' "Data": {'."\n" + .' "DataId": "img123****",'."\n" + .' "Result": ['."\n" + .' {'."\n" + .' "Label": "violent_explosion",'."\n" + .' "Confidence": 70,'."\n" + .' "Description": "烟火类内容"'."\n" + .' },'."\n" + .' {'."\n" + .' "Label": "violent_explosion_lib",'."\n" + .' "Confidence": 81,'."\n" + .' "Description": "烟火类内容_命中自定义库"'."\n" + .' }'."\n" + .' ],'."\n" + .' "RiskLevel": "high",'."\n" + .' "Results": ['."\n" + .' {'."\n" + .' "Result": ['."\n" + .' {'."\n" + .' "Label": "violent_explosion",'."\n" + .' "Confidence": 70,'."\n" + .' "Description": "烟火类内容"'."\n" + .' }'."\n" + .' ],'."\n" + .' "RiskLevel": "high",'."\n" + .' "Service": "baselineCheck_pro"'."\n" + .' },'."\n" + .' {'."\n" + .' "Result": ['."\n" + .' {'."\n" + .' "Label": "violent_explosion_lib",'."\n" + .' "Confidence": 81,'."\n" + .' "Description": "烟火类内容_命中自定义库"'."\n" + .' }'."\n" + .' ],'."\n" + .' "RiskLevel": "high",'."\n" + .' "Service": "baselineCheck"'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n" + .'}'."\n" + .'```', + ], + 'ManualCallback' => [ + 'summary' => '内容安全人审结果渠道回调接口', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '264346', + 'abilityTreeNodes' => [ + 'FEATURElvwangIBEW89', + 'FEATURElvwangU90H4V', + 'FEATURElvwangBBY7QM', + 'FEATURElvwang870NMI', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Code', + 'in' => 'formData', + 'schema' => [ + 'description' => 'code码', + 'type' => 'string', + 'required' => false, + 'example' => '200', + ], + ], + [ + 'name' => 'Msg', + 'in' => 'formData', + 'schema' => [ + 'description' => '提示信息', + 'type' => 'string', + 'required' => false, + 'example' => 'OK', + ], + ], + [ + 'name' => 'Checksum', + 'in' => 'formData', + 'schema' => [ + 'description' => '校验码。', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'ReqId', + 'in' => 'formData', + 'schema' => [ + 'description' => '平台请求id,用于辅助排查问题', + 'type' => 'string', + 'required' => false, + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', + ], + ], + [ + 'name' => 'Data', + 'in' => 'formData', + 'schema' => [ + 'description' => '返回数据。', + 'type' => 'string', + 'required' => false, + 'example' => '{\'Result\': [{\'Confidence\': 100.0, \'CustomizedHit\': [{\'KeyWords\': u\'\\u4fdd\\u969c,\\u6700\\u5927,\\u9ad8\\u7ea7\', \'LibName\': u\'\\u4f18\\u8def\\u654f\\u611f\\u8bcd\'}], \'Label\': \'customized\'}]}', + ], + ], + [ + 'name' => 'Channel', + 'in' => 'formData', + 'schema' => [ + 'description' => '渠道字段', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ant' => 'ant', + ], + 'example' => 'ant', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'."\n", + ], + 'Message' => [ + 'description' => 'message信息', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => '错误码', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200\\n}","type":"json"}]', + 'title' => '人审渠道回调接口', + 'extraInfo' => '无', + ], + 'ManualModeration' => [ + 'summary' => '内容安全人审提交请求接口', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '264342', + 'abilityTreeNodes' => [ + 'FEATURElvwangIBEW89', + 'FEATURElvwangU90H4V', + 'FEATURElvwangBBY7QM', + 'FEATURElvwang870NMI', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '服务。', + 'type' => 'string', + 'required' => false, + 'example' => 'imageManualCheck', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n" + .'- url:待检测对象的URL,请确保该URL能通过公网访问到。'."\n" + .'- dataId:选填,检测对象对应的数据ID。', + 'type' => 'string', + 'required' => false, + 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => '状态码', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1', + ], + 'TaskId' => [ + 'description' => '任务Id', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]', + 'title' => '内容安全人审提交任务', + ], + 'ManualModerationResult' => [ + 'summary' => '获取人审结果', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '264414', + 'abilityTreeNodes' => [ + 'FEATURElvwangIBEW89', + 'FEATURElvwangU90H4V', + 'FEATURElvwangBBY7QM', + 'FEATURElvwang870NMI', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '服务需要的参数集,JSON字符串格式。'."\n" + .'- TaskId:提交任务时返回的任务id', + 'type' => 'string', + 'required' => false, + 'example' => '{\\"TaskId\\":\\"e5f2d886-4c23-440d-999c-bd98acde11b6\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => '错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => '返回数据。', + 'type' => 'object', + 'properties' => [ + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + 'DataId' => [ + 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', + 'type' => 'string', + 'example' => 'data1234', + ], + 'TaskId' => [ + 'description' => '任务Id', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'Result' => [ + 'description' => '返回详细标签结果。', + 'type' => 'array', + 'items' => [ + 'description' => '标签项结构。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '风险标签', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Description' => [ + 'description' => '标签描述', + 'type' => 'string', + 'example' => '未检测出风险', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"data1234\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '内容安全人审结果获取接口', + ], + 'MultiModalGuard' => [ + 'summary' => '同步检测接口', + 'path' => '', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATURElvwang828K27', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务类型,包括:'."\n" + ."\n" + .'- query_security_check:AI输入内容安全检测'."\n" + ."\n" + .'- response_security_check:AI生成内容安全检测', + 'type' => 'string', + 'required' => false, + 'example' => 'query_security_check', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集。JSON字符串格式', + 'type' => 'string', + 'required' => false, + 'example' => '{'."\n" + .' "content": "测试内容"'."\n" + .' }', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '请求ID。', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => '错误码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => '返回的数据内容。', + 'type' => 'object', + 'properties' => [ + 'Detail' => [ + 'description' => '检测详情。', + 'type' => 'array', + 'items' => [ + 'description' => '检测详情。', + 'type' => 'object', + 'properties' => [ + 'Suggestion' => [ + 'description' => '审核建议。取值:-**block**:违规。-**pass**:通过。', + 'type' => 'string', + 'example' => 'pass', + ], + 'Type' => [ + 'description' => '类型。', + 'type' => 'string', + 'example' => 'contentModeration', + ], + 'Level' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'none', + ], + 'Result' => [ + 'description' => '检测结果。', + 'type' => 'array', + 'items' => [ + 'description' => '检测结果。', + 'type' => 'object', + 'properties' => [ + 'Ext' => [ + 'description' => '检测结果扩展信息。', + 'type' => 'any', + 'example' => '{}', + ], + 'Description' => [ + 'description' => '标签描述。', + 'type' => 'string', + 'example' => '疑似违禁行为', + ], + 'Confidence' => [ + 'description' => '置信分值,0到100分,保留到小数点后2位。', + 'type' => 'number', + 'format' => 'float', + 'example' => '0', + ], + 'Label' => [ + 'description' => '标签。', + 'type' => 'string', + 'example' => 'contraband_act', + ], + 'Level' => [ + 'description' => '风险等级。', + 'type' => 'string', + 'example' => 'none', + ], + ], + ], + ], + ], + ], + ], + 'Suggestion' => [ + 'description' => '审核建议。取值:-block:违规。-pass:通过。', + 'type' => 'string', + 'example' => 'pass', + ], + 'DataId' => [ + 'description' => '检测对象对应的数据ID。', + 'type' => 'string', + 'example' => 'data1234', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'You don\'t have permission.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Detail\\": [\\n {\\n \\"Suggestion\\": \\"pass\\",\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"none\\",\\n \\"Result\\": [\\n {\\n \\"Ext\\": \\"{}\\",\\n \\"Description\\": \\"疑似违禁行为\\",\\n \\"Confidence\\": 0,\\n \\"Label\\": \\"contraband_act\\",\\n \\"Level\\": \\"none\\"\\n }\\n ]\\n }\\n ],\\n \\"Suggestion\\": \\"pass\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]', + 'title' => 'AI安全护栏同步检测', + ], + 'MultiModalAgent' => [ + 'summary' => '多模态AgentAPI同步检测接口', + 'path' => '', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATURElvwang828K27', + ], + ], + 'parameters' => [ + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId。', + 'type' => 'string', + 'required' => false, + 'example' => '{"content":"测试文本","dataId":"img1234567"}', + ], + ], + [ + 'name' => 'AppID', + 'in' => 'formData', + 'schema' => [ + 'description' => '白板应用唯一标识符。获取白板应用ID,请参见[CreateApp](~~204234~~)。', + 'type' => 'string', + 'required' => false, + 'example' => 'txt_check_agent_01', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => '返回码。返回200代表成功。', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '错误信息。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => '图片内容检测后的结果。', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => '数据ID', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'RiskLevel' => [ + 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n" + ."\n" + .'- high:高风险'."\n" + ."\n" + .'- medium:中风险'."\n" + .' '."\n" + .'- low:低风险'."\n" + ."\n" + .' - none:未检测到风险', + 'type' => 'string', + 'example' => 'high', + ], + 'Result' => [ + 'description' => '标签项结构。', + 'type' => 'array', + 'items' => [ + 'description' => '返回集合。', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => '风险标签', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Description' => [ + 'description' => '标签描述', + 'type' => 'string', + 'example' => '未检测出风险', + ], + 'Reason' => [ + 'description' => '结束该会话时的结果描述。'."\n" + .'- **SESSION_KILLED**:结束会话成功。'."\n" + .'- **SESSION_EXPIRED**:会话已过期。'."\n" + .'- **SESSION\\_NO\\_PERMISSION**:用于结束会话的账号权限不足。'."\n" + .'- **SESSION\\_ACCOUNT\\_ERROR**:用于结束会话的账号或密码错误。'."\n" + .'- **SESSION\\_IGNORED\\_USER**:不需要结束的账号的会话。'."\n" + .'- **SESSION\\_INTERNAL\\_USER\\_OR\\_COMMAND**:阿里云运维账号的会话或者命令。'."\n" + .'- **SESSION\\_KILL\\_TASK\\_TIMEOUT**:结束会话超时。'."\n" + .'- **SESSION\\_OTHER\\_ERROR**:其他错误。', + 'type' => 'string', + 'example' => 'TRACER_SLB_ALL_DEST_WEIGHT_0', + ], + ], + ], + ], + 'Usage' => [ + 'description' => 'Token使用情况', + 'type' => 'object', + 'properties' => [ + 'PromptLength' => [ + 'description' => '提示词长度。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'ContentLength' => [ + 'description' => '内容长度。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'AgentDetail' => [ + 'description' => '智能体详细', + 'type' => 'object', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'You don\'t have permission.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\",\\n \\"Reason\\": \\"TRACER_SLB_ALL_DEST_WEIGHT_0\\"\\n }\\n ],\\n \\"Usage\\": {\\n \\"PromptLength\\": 100,\\n \\"ContentLength\\": 10,\\n \\"AgentDetail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n}","type":"json"}]', + 'title' => '内容审核Agent', + 'description' => '内容安全审核Agent。', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'green-cip.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'green-cip.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'green-cip.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'green-cip.ap-southeast-1.aliyuncs.com', + ], + ], +]; -- cgit v1.2.3