> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VIDU Q2 Reference-to-Video

Generate a new video from reference images. Supports three resolutions: 540p, 720p, and 1080p.

<Tip>
  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](/en/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API key}}.
</ParamField>

## Request Body

<ParamField body="bgm" type="boolean" default={false}>
  Whether to add background music
</ParamField>

<ParamField body="seed" type="integer">
  Random seed used to control the randomness of the generated result. The same seed will produce similar results.
</ParamField>

<ParamField body="audio" type="boolean" default={false}>
  Whether to generate audio
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text prompt. You can use placeholders such as @1 and @2 to reference subjects
</ParamField>

<ParamField body="duration" type="integer" required={true} default={5}>
  Video duration (seconds). Supports 1-10 seconds

  Optional values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`
</ParamField>

<ParamField body="subjects" type="object[]" required={true}>
  Subject list. Each subject contains id, images, and voice\_id

  Array length: 1 - unlimited

  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="id" type="string" required={true}>
      Subject ID, referenced with @id in the prompt
    </ParamField>

    <ParamField body="images" type="string[]" required={true}>
      List of subject image URLs

      Array length: 1 - unlimited
    </ParamField>

    <ParamField body="voice_id" type="string" default="">
      Voice ID, optional
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="watermark" type="boolean" default={false}>
  Whether to add a watermark
</ParamField>

<ParamField body="resolution" type="string" default="720p">
  Output video resolution. The default value is 720p.

  Optional values: `540p`, `720p`, `1080p`
</ParamField>

<ParamField body="aspect_ratio" type="string">
  Video aspect ratio, such as 16:9, 9:16, 1:1, etc.
</ParamField>

<ParamField body="movement_amplitude" type="string">
  Movement amplitude, which controls the movement intensity of objects in the video

  Optional values: `auto`, `small`, `medium`, `high`
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  Use the task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>

<ResponseField name="provider_request_id" type="string" required={false}>
  Provider request ID (optional)
</ResponseField>
