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

# Vidu 2.0 Start-End Frame

Vidu 2.0 Start-End Frame generates dynamic videos from start and end frames, incorporating creative storytelling and animation effects.

<Tip>
  This is an **async** API that only returns the task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

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

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

## Request Body

<ParamField body="images" type="string[]" required={true}>
  Two images: the first as the start frame, the second as the end frame.

  Notes:

  1. Supports public URL or Base64 format
  2. Aspect ratios must be close: the ratio between the start frame and end frame must be between 0.8 and 1.25
  3. Supported formats: png, jpeg, jpg, webp
  4. Maximum size: 50MB
  5. Base64 decoded length must be less than 10MB and must include the appropriate content type string. For example:

  ```
  data:image/png;base64,{base64_encode}
  ```
</ParamField>

<ParamField body="prompt" type="string" required={false}>
  Prompt description, maximum 1500 characters.
</ParamField>

<ParamField body="duration" type="integer" required={false}>
  Video duration (in seconds). Default: 4 seconds. Options: `4` seconds or `8` seconds.
</ParamField>

<ParamField body="seed" type="integer" required={false}>
  Random seed for video generation.

  * Default: Random seed value
  * Manually set values will override the default random seed
</ParamField>

<ParamField body="resolution" type="string" required={false}>
  Resolution options based on duration:

  * 4 seconds: Default 360p, options: `360p`, `720p`, `1080p`
  * 8 seconds: Default 720p, options: `720p`
</ParamField>

<ParamField body="movement_amplitude" type="string" required={false}>
  Motion amplitude of objects in the scene. Default: `auto`<br />
  Possible values: `auto`, `small`, `medium`, `large`
</ParamField>

<ParamField body="bgm" type="boolean" required={false}>
  Whether to add background music to the generated video. Default: `false`<br />
  Possible values: `true`, `false`

  When set to true, the system will automatically add suitable BGM. There is no duration limit for BGM; the system will automatically adapt it.
</ParamField>

## Response

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