> ## 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 Turbo First and Last Frame Video Generation

Vidu Q3 Turbo First and 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 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="seed" type="integer">
  Random seed for reproducible results. Pass 0 for random.
</ParamField>

<ParamField body="audio" type="boolean" default={true}>
  Whether to use direct audio-video output capability. Defaults to true. false outputs a muted video, while true outputs an audio-synchronized video (including dialogue and sound effects). Supported only by Q3 series models.
</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, with each image no larger than 50MB. The resolutions of the first and last frame images must be similar (the first-frame/last-frame ratio must be between 0.8 and 1.25). The aspect ratio must be less than 1:4 or greater than 4:1.

  Array length: 2 - 2
</ParamField>

<ParamField body="is_rec" type="boolean">
  Whether to use the recommended prompt. When enabled, the system automatically generates a prompt.
</ParamField>

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

  Length limit: 0 - 1500
</ParamField>

<ParamField body="duration" type="integer" default={5}>
  Video duration (seconds), ranging from 1 to 16.

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

<ParamField body="off_peak" type="boolean" default={false}>
  Whether to use off-peak mode. The task will be processed within 48 hours at a lower cost.
</ParamField>

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

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

## Response Information

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