image_to_video
Generate a video from a still image using a first-frame image and prompt. Returns task ID, status, and output URLs.
Instructions
Create a Kling task on RunAPI (image to video). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Generation mode. | |
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Video description; reference media with matching numbered markers. | |
| cfg_scale | No | Guidance scale (0-1). | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. | |
| callback_url | No | Webhook URL for async notifications. | |
| enable_sound | No | Sound generation must remain disabled. | |
| negative_prompt | No | Negative prompt. | |
| duration_seconds | No | Duration in seconds. | |
| poll_interval_ms | No | ||
| output_resolution | No | Output resolution. | |
| reference_video_url | No | Public HTTP(S) MP4 or MOV reference video URL; cannot be combined with last_frame_image_url. | |
| last_frame_image_url | No | Public HTTP(S) JPG, JPEG, or PNG final-frame image URL; cannot be combined with reference_image_urls or reference_video_url. | |
| reference_image_urls | No | Ordered public HTTP(S) JPG, JPEG, or PNG reference image URLs; cannot be combined with last_frame_image_url. | |
| reference_video_type | No | Use the video as a base edit or feature reference. | |
| first_frame_image_url | Yes | Public HTTP(S) JPG, JPEG, or PNG first-frame image URL. | |
| preserve_reference_video_audio | No | Preserve the reference video's original audio. |