Skip to content
EN

EMO图像检测

方法: POST路径: /qwen/api/v1/services/aigc/image2video/face-detect

官方api 文档

EMO-detect模型,用于确认输入的人物肖像图片是否符合EMO视频生成模型的输入规范。本文档介绍了该模型提供的图像检测能力的API调用方法。

请求参数

Header 参数

text
Content-Type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}

Body 参数 application/json 必填

text
model
string
必需
input
object
必需
image_url
string
必需
需要检测的图像URL。
图像最小边长≥400像素,最大边长≤7000像素。
格式支持:jpg、jpeg、png、bmp、webp。
说明
上传文件仅支持HTTP链接方式,不支持本地链接方式。您也可在此获取临时公网URL。
parameters
object
必需
ratio
string
必需
希望检测确认的画幅,可选 "1:1"或"3:4"。默认值为"1:1"。
1:1适用于头像图片。
3:4适用于半身像图片。
示例
{
"model"
:
"emo-detect-v1"
,
"input"
:
{
"image_url"
:
"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250911/yhdvfg/emo-%E5%9B%BE%E7%89%87.png"
}
,
"parameters"
:
{
"ratio"
:
"1:1"
}
}

请求示例代码

Shell

bash
curl --location --request POST '/qwen/api/v1/services/aigc/image2video/face-detect' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "emo-detect-v1",
  "input": {
      "image_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250911/yhdvfg/emo-%E5%9B%BE%E7%89%87.png"
  },
  "parameters": {
      "ratio": "1:1"
  }
}'

返回响应

🟢 200 成功

内容类型: application/json

响应结构

text
object

示例

json
{}