kling_generate_video_from_image
Generate AI videos from images using start and end frame references to control animation and create motion between specific visuals.
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) or 'pro' (higher quality). | std |
| aspect_ratio | No | Video aspect ratio. Usually should match your input image ratio. | 16:9 |
| duration | No | Video duration in seconds. Options: 5 (default) or 10. | |
| 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. | |
| 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 |