Skip to main content
POST
/
v3
/
async
/
vidu-q2-reference2video
VIDU Q2 Reference-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/vidu-q2-reference2video \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "bgm": true,
  "seed": 123,
  "audio": true,
  "prompt": "<string>",
  "duration": 123,
  "subjects": [
    {
      "id": "<string>",
      "images": [
        {}
      ],
      "voice_id": "<string>"
    }
  ],
  "watermark": true,
  "resolution": "<string>",
  "aspect_ratio": "<string>",
  "movement_amplitude": "<string>"
}
'
{
  "task_id": "<string>",
  "provider_request_id": "<string>"
}
Generate a new video from reference images. Supports three resolutions: 540p, 720p, and 1080p.
This is an asynchronous API and will only return the async task’s task_id. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API key}}.

Request Body

bgm
boolean
default:false
Whether to add background music
seed
integer
Random seed used to control the randomness of the generated result. The same seed will produce similar results.
audio
boolean
default:false
Whether to generate audio
prompt
string
required
Text prompt. You can use placeholders such as @1 and @2 to reference subjects
duration
integer
default:5
required
Video duration (seconds). Supports 1-10 secondsOptional values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
subjects
array
required
Subject list. Each subject contains id, images, and voice_idArray length: 1 - unlimited
watermark
boolean
default:false
Whether to add a watermark
resolution
string
default:"720p"
Output video resolution. The default value is 720p.Optional values: 540p, 720p, 1080p
aspect_ratio
string
Video aspect ratio, such as 16:9, 9:16, 1:1, etc.
movement_amplitude
string
Movement amplitude, which controls the movement intensity of objects in the videoOptional values: auto, small, medium, high

Response

task_id
string
required
Use the task_id to request the Get Task Result API to retrieve the generated output.
provider_request_id
string
Provider request ID (optional)