Skip to main content
POST
/
v3
/
async
/
vidu-2.0-startend2video
Vidu 2.0 Start and End Frames
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/vidu-2.0-startend2video \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "images": [
    "<string>"
  ],
  "prompt": "<string>",
  "duration": 123,
  "seed": 123,
  "resolution": "<string>",
  "movement_amplitude": "<string>",
  "bgm": true
}
'
{
  "task_id": "<string>"
}
Vidu 2.0 Start and End Frames generates dynamic videos from a starting frame and an ending frame, incorporating creative storytelling and animation effects.
This is an asynchronous API and only returns the async task’s task_id. You should use this task_id to request the Get Task Result API to retrieve the video generation result.

Request Headers

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

Request Body

images
string[]
required
Two images: the first is the starting frame, and the second is the ending frame.Notes:
  1. Public URLs or Base64 format are supported
  2. The aspect ratios must be close: the ratio between the starting frame and ending frame must be between 0.8 and 1.25
  3. Supported formats: png, jpeg, jpg, webp
  4. Maximum size: 50MB
  5. The length after base64 decoding must be less than 10MB, and it must include the appropriate content type string. For example:
data:image/png;base64,{base64_encode}
prompt
string
Prompt description, up to 1500 characters.
duration
integer
Video duration in seconds. Defaults to 4 seconds; options are 4 seconds or 8 seconds.
seed
integer
The random seed for video generation.
  • Defaults to a random seed value
  • A manually set value will override the default random seed
resolution
string
Duration-based resolution options:
  • 4 seconds: defaults to 360p; options are 360p, 720p, 1080p
  • 8 seconds: defaults to 720p; option is 720p
movement_amplitude
string
The movement amplitude of objects in the frame. Default: auto
Options: auto, small, medium, large
bgm
boolean
Whether to add background music to the generated video. Default: false
Options: true, false
When set to true, the system will automatically add suitable BGM. There is no duration limit for the BGM; the system will adapt it automatically.

Response Information

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generation result