跳转到主要内容
视频生成

万相数字人 — 创建任务

基于单张图片和音频,异步生成数字人视频

POST
/services/aigc/image2video/video-synthesis
cURL
curl 'https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/video-synthesis/' \
 --header 'X-DashScope-Async: enable' \
 --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
 --header 'Content-Type: application/json' \
 --data '{
     "model": "wan2.2-s2v",
     "input": {
            "image_url": "https://img.alicdn.com/imgextra/i3/O1CN011FObkp1T7Ttowoq4F_!!6000000002335-0-tps-1440-1797.jpg",
            "audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250825/iaqpio/input_audio.MP3"
        },
        "parameters": {
            "resolution": "480P"
        }
    }'
{
  "output": {
    "task_id": "a8532587-fa8c-4ef8-82be-xxxxxx",
    "task_status": "PENDING"
  },
  "request_id": "7574ee8f-38a3-4b1e-9280-xxxxxx"
}
wan2.2-s2v 模型能基于单张图片和音频,生成动作自然的说话、唱歌或表演视频。 计费说明:按生成视频的时长计费,480P 为 0.5 元/秒,720P 为 0.9 元/秒。新用户享有 100 秒免费额度。 限制:每个账号 QPS 上限为 5,单次任务音频时长上限为 20 秒。

鉴权

string
header
必填

千问云 API Key。详见获取 API Key

Header 参数

enum<string>
必填

固定值为 enable,表示使用异步调用方式。

enable

请求体

application/json
enum<string>
必填

指明需要调用的模型。

wan2.2-s2v
wan2.2-s2v
object
必填
object

响应

200-application/json
object
string

本次请求的唯一ID。

7574ee8f-38a3-4b1e-9280-11c33ab46e51