1. Wan
2api.asia
  • AI 网关
    • 阿里百炼
      • 图片生成
      • 视频生成
        • HappyHorse
          • 文生视频
          • 图生视频-首帧
          • 参考生视频
          • 编辑视频
        • Wan
          • 文生视频
            POST
          • 图生视频
            POST
          • 参考生视频
            POST
          • 编辑视频
            POST
      • 查询任务结果
        GET
  • 常见问题
    • 怎么使用?
    • 怎么成为商家?
    • cc switch→claude,codex使用方法
    • 连接错误原因自检
首页
  1. Wan

参考生视频

POST
/v1/services/aigc/video-generation/video-synthesis
API参数参考:https://help.aliyun.com/zh/model-studio/wan-video-to-video-api-reference

请求参数

Authorization
JWT Bearer
在 Header 添加参数
Authorization
示例:
Authorization: ********************
or
Header 参数

Body 参数application/json

示例

返回响应

🟢200
application/json
Bodyapplication/json

🟠400
🟠401
🟠403
🔴500
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://2api.asia/v1/services/aigc/video-generation/video-synthesis' \
--header 'X-DashScope-Async: enable' \
--header 'Authorization: Bearer  <token>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "wan2.7-r2v",
    "input": {
        "prompt": "视频1抱着图3,在图4的椅子上弹奏一支舒缓的乡村民谣,并说道:“今天的阳光真好。”图1手中拿着图2,路过视频1,把手中的图2放到视频1旁边的桌子上,并说道:“真好听,能不能再唱一遍”。",
        "media": [
            {
                "type": "reference_image",
                "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260408/sjuytr/wan-r2v-object-girl.jpg",
                "reference_voice": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260408/gbqewz/wan-r2v-girl-voice.mp3"
            },
            {
                "type": "reference_video",
                "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/qigswt/wan-r2v-role2.mp4",
                "reference_voice": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260408/isllrq/wan-r2v-boy-voice.mp3"
            },
            {
                "type": "reference_image",
                "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/rtjeqf/wan-r2v-object3.png"
            },
            {
                "type": "reference_image",
                "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/qpzxps/wan-r2v-object4.png"
            },
            {
                "type": "reference_image",
                "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/wfjikw/wan-r2v-backgroud5.png"
            }
        ]
    },
    "parameters": {
        "resolution": "720P",
        "ratio": "16:9",
        "duration": 10,
        "prompt_extend": false,
        "watermark": true
    }
}'
响应示例响应示例
200 - 成功示例
{
    "output": {
        "task_status": "PENDING",
        "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
    },
    "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}
修改于 2026-07-08 05:29:52
上一页
图生视频
下一页
编辑视频
Built with