数字人wan2.2-s2v图像检测
方法: POST路径: /qwen/api/v1/services/aigc/image2video/face-detect
数字人wan2.2-s2v-detect 模型,用于检测输入图片是否符合 wan2.2-s2v 模型的输入规范。
请求参数
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。
图像格式:支持jpg,jpeg,png,bmp,webp。
图像分辨率:图像的宽度和高度范围为[400, 7000]像素。
上传图片仅支持公网可访问的 HTTP/HTTPS 链接。本地文件可通过上传文件获取临时URL。
示例
{
"model"
:
"wan2.2-s2v-detect"
,
"input"
:
{
"image_url"
:
"https://img.alicdn.com/imgextra/i3/O1CN011FObkp1T7Ttowoq4F_!!6000000002335-0-tps-1440-1797.jpg"
}
}请求示例代码
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": "wan2.2-s2v-detect",
"input": {
"image_url": "https://img.alicdn.com/imgextra/i3/O1CN011FObkp1T7Ttowoq4F_!!6000000002335-0-tps-1440-1797.jpg"
}
}'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
object示例
json
{}