Extend Video
extend_videoExtend a finished video by providing its job ID or HTTPS URL. Add an optional prompt and duration to control the continuation.
Instructions
Extend a finished video via POST /v1/videos/extensions {model, video:{url}, prompt?, duration?}. source is a job id or https URL — local paths are rejected before any HTTP call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Kenari video-generation model id to use for the extension. | |
| prompt | No | Optional continuation prompt describing how the video should continue. | |
| source | Yes | A Kenari video job id (from create_video/extend_video) or an https URL of a finished video. Local file paths are rejected before any HTTP call. | |
| duration | No | Extension length in seconds. Optional; capped by KENARI_MAX_VIDEO_DURATION (default 15). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Kenari video job id, when relevant to the result or error. | |
| op | No | Tool operation name the error occurred in. | |
| raw | No | Raw Kenari API response object. | |
| code | No | Machine-readable code: an error code (e.g. unauthorized, bad_request, upstream_error) or a state marker (e.g. rendering, done, still_rendering). | |
| hint | No | Human-readable remediation hint (e.g. set KENARI_API_KEY). | |
| model | No | Kenari video model id used. | |
| status | No | HTTP status number (on API errors) or the Kenari job status string (on video status results). | |
| disabled | No | True when video tools are disabled via KENARI_ALLOW_VIDEO=0. |