Wan3.0 视频生成模型

wan3.0-video 与 wan3.0-video-prime 是通义万相 3.0 全能参考生成模型, 支持 文生视频、图生视频(首帧 / 尾帧)、参考图 / 参考视频 / 参考音频 多种输入与组合。按生成秒数 × 分辨率档位计费,采用异步任务模式。

接口地址
POST /api/openai/videosGenerations

支持的模型

模型名说明支持分辨率
wan3.0-video主力 · 性价比480P / 720P / 1080P
wan3.0-video-primePrime · 旗舰画质480P / 720P / 1080P

参考输入参数

参数类型必填上限说明
promptstring是—视频描述
first_frame_urlstring否1首帧图,作为视频开头
last_frame_urlstring否1尾帧图,作为视频结尾
image_url / image_urlsstring / array否10参考图
video_url / video_urlsstring / array否5参考视频
audio_url / audio_urlsstring / array否5参考音频

其他参数:duration(秒,默认5)、ratio(如 16:9 / 9:16 / 1:1,默认 adaptive)、size 或 resolution(480P/720P/1080P)。

请求示例

文生视频

POST /api/openai/videosGenerations
Authorization: Bearer sk-xxxxxxxx
Content-Type: application/json

{
  "model": "wan3.0-video",
  "prompt": "烟雨江南,小船穿桥而过",
  "duration": 5,
  "ratio": "16:9",
  "resolution": "1080P"
}

首帧 + 尾帧 + 参考图

{
  "model": "wan3.0-video-prime",
  "prompt": "人物转身,场景切换到黄昏",
  "first_frame_url": "https://example.com/first.jpg",
  "last_frame_url": "https://example.com/last.jpg",
  "image_urls": [
    "https://example.com/style1.jpg",
    "https://example.com/style2.jpg"
  ],
  "duration": 5,
  "resolution": "720P"
}

参考视频 + 参考音频

{
  "model": "wan3.0-video",
  "prompt": "跟随镜头,节奏舒缓",
  "video_url": "https://example.com/clip.mp4",
  "audio_url": "https://example.com/bgm.mp3",
  "duration": 5
}

成功返回

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": 76,
    "provider_task_id": "c0f4277d-...",
    "status": "pending"
  }
}

提交后通过 Video Task 查询接口 轮询,成功返回 video_url。

参考输入说明与容错

  • 所有参考 URL 均为网络可访问地址,无需先上传本平台
  • 支持单值或复数数组;超出上限部分会自动截断到上限
  • 首帧 / 尾帧与其他参考图为不同参数,可同时使用互不冲突
  • 传了不支持的分辨率会返回友好提示:{"code":400,"msg":"该模型不支持 XXP 分辨率,支持档位:480P/720P/1080P"}
  • wan3.0 系列不支持 negative_prompt

计费说明

  • 按 生成秒数 × 实际生成分辨率的档位单价 计费,具体单价以控制台实时报价为准
  • 任务成功后才扣费,任务失败不扣费