Generate a video from images
kling_image_to_videoAnimate a start image (image), optionally to an end image (image_tail; on older models it forces mode pro), with keyframes in between (keyframe_1..9, kling-v4-0 only: images in all ≤ duration + 1, at most 10) or elements (element_1..3, kling-v3-0 only). The aspect ratio comes from the image. Per model: kling-v4-0 3-30 s, std / pro, audio always on, multi-shot; kling-v4-0-flash 3-20 s, std (720p) only, audio always on, start image only, no custom shots; kling-v3-0 3-15 s, std / pro / 4k, audio on by default (enable_audio false is cheaper); kling-v3-0-turbo 3-15 s, std / pro; kling-v2-6 5 or 10 s, std / pro (native audio needs pro); older models 5 or 10 s. negative_prompt and cfg_scale only on older models. Uses Kling credits: kling-v2-6 std is the cheapest at 15 credits for 5 s; kling-v3-0 6-9 credits a second (12 at pro), kling-v4-0 10 a second (15 at pro / 1080p), kling-v4-0-flash 6 a second, 4k and Master models cost much more. A job, like kling_text_to_video. POST /videos/image2video-frames.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | std (720p), pro (1080p) or 4k, as the model allows. | |
| No | The Kling account email. Optional: by default the account with the most free job slots; results name the account used. Pass it whenever an input belongs to one account (an uploaded file, a voice, an element, your own avatar or motion, a task_id). | ||
| image | No | The start frame: a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| prompt | No | What happens in the video. | |
| duration | No | Seconds; allowed values depend on the model (default 5). | |
| cfg_scale | No | Prompt adherence 0-1 (kling-v1-x only). | |
| element_1 | No | Element 1 (kling-v3-0): an element id (u_… / o_…). | |
| element_2 | No | Element 2 (kling-v3-0): an element id (u_… / o_…). | |
| element_3 | No | Element 3 (kling-v3-0): an element id (u_… / o_…). | |
| image_tail | No | The end frame: a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_1 | No | Keyframe 1 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_2 | No | Keyframe 2 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_3 | No | Keyframe 3 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_4 | No | Keyframe 4 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_5 | No | Keyframe 5 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_6 | No | Keyframe 6 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_7 | No | Keyframe 7 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_8 | No | Keyframe 8 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| keyframe_9 | No | Keyframe 9 (kling-v4-0): a public https URL, best one from kling_upload_asset (Kling must be able to fetch it). | |
| model_name | No | Model (default kling-v2-1). | |
| multi_shot | No | Kling picks the shots (kling-v3-0; kling-v4-0 is always multi-shot). | |
| enable_audio | No | Sound: kling-v3-0 on by default (false = cheaper); kling-v2-6 native audio needs mode pro; not accepted by kling-v4-0 / turbo (always on). | |
| shot_1_prompt | No | Custom multi-shot: shot 1's prompt (with shot_1_duration; at least 2 shots, total 3-15 s; not with prompt / duration). | |
| shot_2_prompt | No | Custom multi-shot: shot 2's prompt (with shot_2_duration; at least 2 shots, total 3-15 s; not with prompt / duration). | |
| shot_3_prompt | No | Custom multi-shot: shot 3's prompt (with shot_3_duration; at least 2 shots, total 3-15 s; not with prompt / duration). | |
| shot_4_prompt | No | Custom multi-shot: shot 4's prompt (with shot_4_duration; at least 2 shots, total 3-15 s; not with prompt / duration). | |
| shot_5_prompt | No | Custom multi-shot: shot 5's prompt (with shot_5_duration; at least 2 shots, total 3-15 s; not with prompt / duration). | |
| shot_6_prompt | No | Custom multi-shot: shot 6's prompt (with shot_6_duration; at least 2 shots, total 3-15 s; not with prompt / duration). | |
| negative_prompt | No | What to avoid (older models only). | |
| shot_1_duration | No | Custom multi-shot: shot 1's seconds, 1-15. | |
| shot_2_duration | No | Custom multi-shot: shot 2's seconds, 1-15. | |
| shot_3_duration | No | Custom multi-shot: shot 3's seconds, 1-15. | |
| shot_4_duration | No | Custom multi-shot: shot 4's seconds, 1-15. | |
| shot_5_duration | No | Custom multi-shot: shot 5's seconds, 1-15. | |
| shot_6_duration | No | Custom multi-shot: shot 6's seconds, 1-15. |