kling_generate_video_from_image
Animate a start image into a video or create a transition between start and end images. Describe the motion in a prompt.
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
At least one of start_image_url or end_image_url must be provided.
Returns:
Task ID and generated video information including URLs and state.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the video motion and content. Describe what should happen in the video, how objects should move, what transitions to include. | |
| start_image_url | No | URL of the image to use as the first frame of the video. The video will animate from this image. | |
| end_image_url | No | URL of the image to use as the last frame of the video. The video will animate towards this image. | |
| model | No | Kling model to use. Default: 'kling-v2-master'. | kling-v2-master |
| mode | No | Generation mode. 'std' (standard, default), 'pro' (higher quality), or '4k' (native 4K, only for kling-v3 and kling-v3-omni). | std |
| aspect_ratio | No | Video aspect ratio. Usually should match your input image ratio. | 16:9 |
| duration | No | Video duration in seconds. For kling-v3/kling-v3-omni: 3-15 (integer). Other models: 5 or 10. | |
| 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. | |
| cfg_scale | No | Classifier-free guidance scale. Higher values follow the prompt more strictly. | |
| camera_control | No | Camera control as JSON string. | |
| element_list | No | List of reference subjects from the subject library. Each item should contain an 'element_id'. If a reference video is present, reference subjects + reference images must be ≤ 4; otherwise ≤ 7. | |
| video_list | No | List of reference videos. Each item should contain a 'video_url' (MP4/MOV, 3-10s, 720-2160px, 24-60fps, ≤200MB, max 1 video) and optionally 'refer_type' ('feature' or 'base', default 'base') and 'keep_original_sound' ('yes' or 'no'). | |
| timeout | No | Timeout in seconds for the API to return data. Default is 300. | |
| callback_url | No | Webhook callback URL for asynchronous notifications. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |