kling_generate_video_from_image
Generate a video from a reference start image, optionally providing an end image to create a smooth motion transition.
Instructions
Generate AI video using reference images as start and/or end frames.
This allows you to control the video by specifying what the first frame
and/or last frame should look like. Kling will generate smooth motion between them.
Use this when:
- You have a specific image you want to animate
- You want to create a video transition between two images
- You need precise control over the video's visual content
start_image_url is required. end_image_url is optional.
Returns:
Task ID and generated video information including URLs and state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Generation mode. 'std' (standard, default), 'pro' (higher quality), or '4k' (native 4K, only for kling-v3 and kling-v3-omni). | std |
| model | No | Kling model to use. Default: 'kling-v2-master'. | kling-v2-master |
| prompt | Yes | Description of the video motion and content. Describe what should happen in the video, how objects should move, what transitions to include. | |
| timeout | No | Timeout in seconds for the API to return data. Default is 300. | |
| duration | No | Video duration in seconds. kling-v3/kling-v3-omni: 3-15; kling-o1: 5 only; other models: 5 or 10. | |
| cfg_scale | No | Classifier-free guidance scale from 0 to 1. Not supported by Omni generation. | |
| image_list | No | Additional Omni reference images for kling-o1 or kling-v3-omni. Do not set type='first_frame' or 'end_frame' when the same frame is already supplied through start_image_url or end_image_url. | |
| video_list | No | One Omni reference video for kling-o1 or kling-v3-omni. | |
| aspect_ratio | No | Video aspect ratio. Usually should match your input image ratio. | 16:9 |
| callback_url | No | Webhook callback URL for asynchronous notifications. | |
| end_image_url | No | URL of the image to use as the last frame of the video. The video will animate towards this image. | |
| camera_control | No | Structured camera control. Not supported by Omni generation. | |
| generate_audio | No | Whether to generate audio synchronously. Supported by kling-v3, kling-v3-omni, and kling-v2-6 (pro mode only). | |
| negative_prompt | No | Things to avoid in the video. | |
| start_image_url | No | Required URL of the image to use as the first frame of the video. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |