data: URI。Authorization: Bearer <key> + Content-Type: application/json + X-DashScope-Async: enable(万相独有且必填)。task_id(id 与 task_id 同值),随后用 GET /api/v1/tasks/{task_id} 轮询。duration 必须是数字:写成字符串会让整个 parameters 被丢弃,出片回落 5 秒 / 1080P。duration。{
"model": "wan3.0-video",
"input": {
"prompt": "把视频1里的人物换成图片1里的角色,动作与镜头保持一致",
"media": [
{
"type": "reference_image",
"url": "https://example.com/ref.png"
},
{
"type": "reference_video",
"url": "https://example.com/clip.mp4"
},
{
"type": "reference_audio",
"url": "https://example.com/voice.mp3"
}
]
},
"parameters": {
"resolution": "480P",
"ratio": "9:16",
"duration": 12,
"audio": true,
"prompt_extend": true,
"watermark": false
}
}curl --location 'https://aipipe.vip/api/v1/services/aigc/video-generation/video-synthesis' \
--header 'Authorization: Bearer ' \
--header 'X-DashScope-Async: enable' \
--header 'Content-Type: application/json' \
--data '{
"model": "wan3.0-video",
"input": {
"prompt": "把视频1里的人物换成图片1里的角色,动作与镜头保持一致",
"media": [
{
"type": "reference_image",
"url": "https://example.com/ref.png"
},
{
"type": "reference_video",
"url": "https://example.com/clip.mp4"
},
{
"type": "reference_audio",
"url": "https://example.com/voice.mp3"
}
]
},
"parameters": {
"resolution": "480P",
"ratio": "9:16",
"duration": 12,
"audio": true,
"prompt_extend": true,
"watermark": false
}
}'task_id;用 GET /api/v1/tasks/{task_id} 轮询。{
"aigc": {
"Label": 1,
"ContentProducer": "TokenBazaar",
"ProduceID": "MS-20261123210439-39dfa87a09bf8c"
},
"id": "task_7scvFwBHbxs9uwShgD0MP0ZbBwgFCpsh",
"task_id": "task_7scvFwBHbxs9uwShgD0MP0ZbBwgFCpsh",
"object": "video",
"model": "wan3.0-video",
"status": "queued",
"progress": 0,
"created_at": 1795439079
}