Skip to main content
POST
/
gemini
/
video
/
extend
Extend video duration
curl --request POST \
  --url https://api.mountsea.ai/gemini/video/extend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "videoId": "task-uuid-xxx",
  "model": "veo31_fast",
  "prompt": "the camera slowly zooms out to reveal more of the landscape"
}
'
{
  "taskId": "<string>"
}

Overview

Extend the duration of a previously generated video. You can optionally provide a prompt to guide the content of the extended section.
Only VEO 3.1 series models (veo31_fast, veo31_quality) are supported for video extension.
  • Extended videos can be further extended
  • Extended videos cannot be used for insertion, removal, or reshoot operations
  • Requires a valid videoId from a completed video generation task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
videoId
string
required

Video ID from a previously generated video task

Example:

"task-uuid-xxx"

model
enum<string>
required

Video model (only VEO 3.1 series supported for extend)

Available options:
veo31_fast,
veo31_quality
Example:

"veo31_fast"

prompt
string

Prompt text for the extended section

Example:

"the camera slowly zooms out to reveal more of the landscape"

Response

201 - application/json
taskId
string
required

task id, used to get task result later