Create Video
create_videoGenerate AI videos by starting a Kenari video job with a text prompt. Returns a job ID to poll for status.
Instructions
Start a Kenari video job via POST /v1/videos/generations. Returns job id; poll with get_video_status/wait_for_video. Costs money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Kenari video-generation model id. Call list_media_models (modality='video') first for exact ids and availability. | |
| prompt | Yes | Describe the video to generate. | |
| duration | No | Clip length in seconds. Optional; capped by KENARI_MAX_VIDEO_DURATION (default 15). | |
| image_url | No | Optional https or data: URL of an image to use as the first/start frame. | |
| video_url | No | Optional https URL of a source video for video-to-video transforms. | |
| resolution | No | Output resolution, e.g. '720p' or '1080p'. Optional and model-dependent. | |
| aspect_ratio | No | Aspect ratio, e.g. '16:9' or '9:16'. Optional and model-dependent. | |
| input_images | No | Optional list of https or data: image URLs to condition the video on. | |
| end_image_url | No | Optional https or data: URL of an image to use as the final frame (interpolated transition). |
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. |