Skip to main content
POST
/
v3
/
async
/
veo-3.1-generate-extend
Veo 3.1 Video Extension
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/veo-3.1-generate-extend \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "seed": 123,
  "video": "<string>",
  "prompt": "<string>",
  "resolution": "<string>",
  "aspect_ratio": "<string>",
  "sample_count": 123,
  "generate_audio": true,
  "negative_prompt": "<string>",
  "person_generation": "<string>"
}
'
{
  "task_id": "<string>"
}
Use the Google Veo 3.1 model to extend an input video by 7 seconds. Supports 720p and 1080p resolutions, and 16:9 and 9:16 aspect ratios. Input video requirements: MP4 format, 24fps, duration of 1–30 seconds.
This is an asynchronous API and only returns the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

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

Request Body

seed
integer
Random seed used to reproduce generation results.Value range: [0, 4294967295]
video
string
required
Input video. Supports a video URL or Base64-encoded data. Video requirements: MP4 format, 24fps, duration of 1–30 seconds, 720p/1080p resolution, and 16:9 or 9:16 aspect ratio.
prompt
string
required
Text prompt describing the content for the video extension.
resolution
string
default:"720p"
Output video resolution.Optional values: 720p, 1080p
aspect_ratio
string
default:"16:9"
Output video aspect ratio.Optional values: 16:9, 9:16
sample_count
integer
default:1
Number of video samples to generate (1–4).Value range: [1, 4]
generate_audio
boolean
default:false
Whether to generate audio at the same time. Note: video extension itself does not support audio generation; this parameter is only used to distinguish SKU billing.
negative_prompt
string
Describes content to avoid in the generated video.
person_generation
string
default:"allow_adult"
Whether to allow generation of adult people. allow_adult: allow generation of adults; dont_allow: do not allow generating people.Optional values: allow_adult, dont_allow

Response Information

task_id
string
Use task_id to request the Get Task Result API to retrieve the generated output.