---
title: "Vidu Q2Pro Task"
method: POST
path: "/api/v1/video/generate/task"
---

# Vidu Q2Pro Task

`POST /api/v1/video/generate/task`

## Request

- Base URL: `https://api.videofaceswap.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.videofaceswap.io/api/v1/video/generate/task`
- Auth: HTTP bearer

VIDU Q2-PRO 参考生视频（图/视频参考）

## Query parameters

- `app_id` string, required

## Request body

- ViduUnifiedRequest
  - `task_type` 'img2video' | 'text2video' | 'reference2video'
  - `model_type` string: 模型编码，参考 GLOBAL_VIDU_MODEL_MAP
  - `images` string[], nullable: 参考图，1-7张；若传videos则1-4张
  - `videos` string[], nullable: 参考视频，仅Q2-PRO支持，最多1个8s或2个5s
  - `prompt` string, required: 描述提示词
  - `duration` integer: 视频时长 0-10s，0=自动
  - `resolution` string: 540p|720p|1080p
  - `aspect_ratio` string: 16:9|9:16|1:1|3:4|4:3
  - `seed` integer: 随机种子
  - `movement_amplitude` string: auto/small/medium/large
  - `bgm` boolean: 是否添加背景音乐
  - `off_peak` boolean: 是否闲时模式(便宜)
  - `payload` string: 透传字段
  - `platform` string: 页面来源
  - `is_verify` boolean: 是否进行NSFW检测

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/videofaceswap/apis/videofaceswap-api.md) - [All operations](https://skmtc.dev/videofaceswap/apis/videofaceswap-api/llms.txt) - [OpenAPI document](https://skmtc.dev/videofaceswap/apis/videofaceswap-api/revisions/1b3dd1817626?raw)
