Skip to main content
POST
/
v3
/
async
/
vidu-q1-startend2video
Vidu Q1 Start and End Frames
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/vidu-q1-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 Q1 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 will only return the task_id of the asynchronous task. 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. Supports public URLs or Base64 format
  2. Aspect ratio 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 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 (seconds). Defaults to 5 seconds. Currently, only the 5-second option is supported.
seed
integer
Random seed for video generation.
  • Defaults to a random seed value
  • Manually set values will override the default random seed
resolution
string
Output video resolution. Defaults to 1080p. Currently, only the 1080p option is supported.
movement_amplitude
string
The range of motion of objects in the frame. Default value: auto
Optional values: auto, small, medium, large
bgm
boolean
Whether to add background music to the generated video. Default value: false
Optional values: 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