跳转到主要内容
PixVerse

PixVerse — 创建任务

提交 PixVerse 参考生视频任务

POST
/services/aigc/video-generation/video-synthesis
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis' \
  -H 'X-DashScope-Async: enable' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "pixverse/pixverse-c1-r2v",
  "input": {
    "media": [
      {
        "type": "image_url",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260320/knsple/wan-r2v-role-frame.jpg"
      },
      {
        "type": "image_url",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/qpzxps/wan-r2v-object4.png"
      },
      {
        "type": "image_url",
        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/wfjikw/wan-r2v-backgroud5.png"
      }
    ],
    "prompt": "男人坐在靠窗的椅子上,手持吉他,在咖啡厅旁演奏一首舒缓的美国乡村民谣"
  },
  "parameters": {
    "size": "1280*720",
    "duration": 5,
    "audio": false,
    "watermark": true
  }
}'
{
  "request_id": "<string>",
  "output": {
    "task_id": "<string>",
    "task_status": "PENDING"
  }
}
基于参考图片与文本提示词,使用 PixVerse 模型生成视频。
  • 双模型可选pixverse/pixverse-c1-r2v 适用于打斗、法术特效及高速运动等动态场景以及多宫格场景;pixverse/pixverse-v5.6-r2v 适用于通用场景。
  • 参考图绑定:通过 media 数组提供最多 7 张参考图片,在提示词中使用 @ref_name 精确绑定角色或物体。
  • 灵活分辨率:支持从 360P 到 1080P 多种分辨率与画面比例(16:9、4:3、1:1、3:4、9:16 等)。
  • 音频与水印:可选生成带音频的视频,支持添加"AI生成"水印。
  • 可复现结果:通过 seed 参数固定随机种子,实现结果复现。

鉴权

string
header
必填

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

Header 参数

enum<string>
必填

异步处理配置参数。HTTP 请求只支持异步,必须设置为 enable。缺少此请求头将报错:"current user api does not support synchronous calls"。

enable
string
必填

请求内容类型。此参数必须设置为 application/json

string
必填

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

请求体

application/json
enum<string>
必填

模型名称。可选值:pixverse/pixverse-c1-r2v(适用于打斗、法术特效及高速运动等动态场景以及多宫格场景)、pixverse/pixverse-v5.6-r2v(通用场景)。

pixverse/pixverse-c1-r2v,pixverse/pixverse-v5.6-r2v
pixverse/pixverse-c1-r2v
object
必填

输入的基本信息,包括参考图片和提示词。

object

视频生成参数,如设置视频分辨率、时长、是否生成音频等。

响应

200-application/json
string

请求唯一标识。可用于请求明细溯源和问题排查。

object

任务输出信息。