extend_video
Extends a completed Gemini Omni video generation or extension task by adding seconds from a continuation prompt, returning a task ID, status, and output URLs.
Instructions
Create a Gemini Omni task on RunAPI (extend video). Returns a task id, status, and output URLs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_task_id": "<source_task_id>",
"prompt": "<prompt>",
"duration_seconds": "<duration_seconds>"
},
"name": "extend_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Continuation prompt. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| source_task_id | Yes | Own completed 1.2 generation or extension Task, at most 15 seconds and 360p or 720p. Declared type: string. | |
| duration_seconds | Yes | Additional seconds to generate and bill. Declared type: integer. | |
| poll_interval_ms | No | ||
| reference_image_urls | No | Optional reference images for the extension. Declared type: array. |