v1

latestOpenAPI 3.1.02026-07-2611077199.5 KB

Extend a completed Gemini video task and receive a new jobId asynchronously. The source job must be SUCCESS. The omni-flash model does not support extension.

post/gemini/video/extend

Request body

jobIdstring required

jobId returned by a completed Gemini video generation or extension task

promptstring required

Prompt for the extended video

aspect_ratio'16:9' | '9:16' required

Video aspect ratio. Required.

resolution'720p' | '1080p'

Resolution level.

hookUrlstring

Callback URL for completion or failure notifications

Example request

{
  "jobId": "0ccf0606-3f32-4090-85bd-1786e4593be5",
  "prompt": "Continue the scene with the camera moving through the futuristic city",
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "hookUrl": "https://example.com/callback"
}

Response

Submitted successfully

statusstring required

Task status

messagestring required

Task message

Example response

{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "jobId": "0ccf0606-3f32-4090-85bd-1786e4593be5"
  }
}