> ## 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 Q3 Pro First/Last Frame Video Generation

Vidu Q3 Pro First/Last Frame Video Generation can generate high-quality videos from first-frame and last-frame images, using text-guided motion interpolation and supporting resolutions up to 1080p.

<Tip>
  This is an **asynchronous** API and will only return the task\_id of the asynchronous task. You should use this task\_id to request the [Get Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generation 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="seed" type="integer">
  Random seed, used for reproducible results. Pass 0 for a random seed.
</ParamField>

<ParamField body="audio" type="boolean" default={true}>
  Whether to generate audio while generating the video.
</ParamField>

<ParamField body="images" type="string[]" required={true}>
  Two image URLs or Base64-encoded images. The first image is the first-frame image, and the second image is the last-frame image. Supports png, jpeg, jpg, and webp formats; each image must not exceed 50MB, must be at least 128x128 pixels, and the aspect ratio must be less than 1:4 or greater than 4:1. The resolutions of the first-frame and last-frame images must be similar (the first-frame/last-frame ratio must be between 0.8 and 1.25).

  Array length: 2 - 2
</ParamField>

<ParamField body="is_rec" type="boolean">
  Whether to enable recommendation mode.
</ParamField>

<ParamField body="prompt" type="string">
  Text describing the desired video motion effect between the first and last frames.

  Length limit: 0 - 1500
</ParamField>

<ParamField body="wm_url" type="string">
  Custom watermark image URL.
</ParamField>

<ParamField body="duration" type="integer" default={5}>
  Duration of the generated video (seconds), range 1-16.

  Value range: \[1, 16]
</ParamField>

<ParamField body="off_peak" type="boolean" default={false}>
  Whether to use off-peak mode for lower cost.
</ParamField>

<ParamField body="watermark" type="boolean">
  Whether to add a watermark.
</ParamField>

<ParamField body="resolution" type="string" default="720p">
  Resolution of the generated video.

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

<ParamField body="wm_position" type="integer" default={3}>
  Watermark position: 1=top-left, 2=top-right, 3=bottom-right, 4=bottom-left.

  Value range: \[1, 4]
</ParamField>

## Response Information

<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>
