Create Video From Image Frames
April 18, 2025 (October 20, 2026)
Table of contents
This endpoint generates a video from one or two images (start and end frames). Kling 4.0 also takes keyframes between them, up to 10 images in total, and the duration sets how many images you can use.
| Model | Start Frame | End Frame | Keyframes | Elements | Audio | Multi- shot |
|---|---|---|---|---|---|---|
| kling-v4-0 | Required | Up to 9 | always on | always on | ||
| kling-v3-0 | Required | Up to 3 | default on | |||
| kling-v3-0-turbo | Required | always on | ||||
| kling-v2-6 | Required | Native (Pro) | ||||
| kling-v2-5 | Required | SFX | ||||
| kling-v2-1 | Required | SFX | ||||
| kling-v2-1-master | Required | SFX | ||||
| kling-v1-6 | SFX | |||||
| kling-v1-5 | SFX |
- Duration:
kling-v4-0supports 3–30s,kling-v3-0/kling-v3-0-turbosupport 3–15s, and all other models support 5s or 10s. - SFX = Sound Effects.
- Native = Native Audio (model
2.6,promode, start frame only).
Kling 4.0 generates 720p (std) and 1080p (pro) video. Kling offers 1080p to paid Kling subscribers only. 4K and HDR are not available for 4.0 yet.
To use elements with Kling 4.0, use POST videos/omni with omni_version v4.
If your Kling account can’t use Kling 4.0 yet, the request returns a 403 error.
https://api.useapi.net/v1/kling/videos/image2video-frames
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API tokenis required, see Setup useapi.net for details.
Request Body
{
"email": "[email protected]",
"image": "https://example.com/start-image.jpg",
"keyframe_1": "https://example.com/keyframe-1.jpg",
"image_tail": "https://example.com/end-image.jpg",
"prompt": "A futuristic city with flying cars and tall buildings",
"duration": "10",
"model_name": "kling-v4-0",
"mode": "pro",
"replyUrl": "https://your-callback-url.com/webhook",
"replyRef": "your-reference-id"
}
-
emailis optional. Leave it out and the job goes to one of your accounts that has a free job slot, picked at random. Each account runs at most itsmaxJobsjobs at once, and GET scheduler/available shows the free slots. If no account has a free slot, the response is429.
Passemailto run the job on that account (429if it is busy). Uploaded files, elements, voices, avatars and earlier tasks belong to one account, so pass theemailof the account they came from.
With more than one account, reading the task with GET tasks/task_idneeds its account’semail. The response’stask.userIdis that account’ssession.userIdin GET accounts, and GET scheduler lists each running task with itsemail. -
imageis required ifimage_tailis not provided. URL to the start frame image. Required for models2.x,3.0and4.0.
Image can be uploaded using POST /assets and the returned URLs can be used here. -
image_tailis required ifimageis not provided. URL to the end frame image. Models2.1 Masterand3.0 Turbodo not support this parameter. Image can be uploaded using POST /assets and the returned URLs can be used here. -
keyframe_1throughkeyframe_9are optional, URLs to keyframe images placed between the start frame (image) and the end frame (image_tail), in order. Supported bykling-v4-0only. They requireimageand must be consecutive, starting fromkeyframe_1. A video takes up to 10 images in total, so you can add up to 8 keyframes together withimage_tail, or up to 9 without it. The total number of images (image,keyframe_Nandimage_tail) can be at most thedurationin seconds plus one, and at most 10:durationMax images in total 34 45 5(default)6 67 78 89 9to3010 When you leave out
durationand send more than 6 images, the duration becomes the number of images minus one, so 7 images make a 6-second video.Images can be uploaded using POST /assets and the returned URLs can be used here.
-
element_1,element_2,element_3are optional, references to saved elements (e.g.u_309377170505500) used to guide the generation alongside the start/end frames. Up to 3 combined. Supported by model3.0only. For elements with Kling 4.0, use POST videos/omni withomni_versionv4. -
promptis optional, text description to guide the video generation. Maximum length: 8000 characters for model4.0and 2500 characters for every other model. Cannot be used together with multi-shot parameters (shot_N_prompt/shot_N_duration). -
negative_promptis optional, what not to include in the generated video. Models2.5,2.6,3.0and4.0do not support this parameter.
Maximum length: 2500 characters. -
cfg_scaleis optional, guidance scale for image-to-video generation. Models2.x,3.0and4.0do not support this parameter.
Range:0to1. Default:0.5. -
durationis optional, length of the video in seconds. Cannot be used together with multi-shot parameters (shot_N_prompt/shot_N_duration). Model4.0:3to30seconds (default5). Models3.0and3.0 Turbo:3to15seconds (default5). Other models:5(default) or10. -
model_nameis optional, the AI model version to use. Supported values:kling-v4-0,kling-v3-0,kling-v3-0-turbo,kling-v2-6,kling-v2-5,kling-v2-1(default),kling-v2-1-master,kling-v1-6,kling-v1-5. Models3.0,3.0 Turboand4.0do not supportaspect_ratio(derived from input image). Model3.0enables audio by default, setenable_audio: falseto disable it. Model3.0 Turbo(kling-v3-0-turbo) is a faster 3.0 variant: start frame only (noimage_tail),std/promodes (no4k), audio always on (enable_audionot supported), and noelement_Nreferences or multi-shot. Model4.0(kling-v4-0) always generates stereo audio and takes 3 to 30 seconds. It takes keyframes but noelement_Nreferences. -
modeis optional, quality level. Model2.1 Masteronly supportspromode. Supported values:std(standard, default),pro(higher quality, slower generation), or4k(4K resolution, model3.0only). Model2.6supportsstdandpro, butprois required whenenable_audioistrue. Model3.0adds support for4k. Model3.0 Turbosupportsstdandproonly. Model4.0supportsstd(720p) andpro(1080p). Kling offers 1080p to paid Kling subscribers only. -
enable_audiois optional, add audio to the generated video. Supported values:false(default) ortrue. Model3.0defaults to audio enabled (including4k); setenable_audio: falseto disable. Models3.0 Turboand4.0always generate audio and do not accept this parameter. Model2.6: Native Audio (AI-generated audio synced with video), requiresmode: pro, not available with End Frame. Other models: Sound Effects (basic audio generation). -
multi_shotis optional, let the model cut the video into several shots on its own (models3.0and4.0). Supported values:false(default) ortrue. You write one ordinarypromptand Kling decides where the cuts fall — useshot_1_promptbelow instead when you want to direct each shot yourself. Ignored whenshot_1_promptis present — directing the shots yourself already turns multi-shot on. Model4.0always lets the model use several shots, so it accepts onlymulti_shot: true. Models3.0and4.0accept this parameter. Every other model, including3.0 Turbo, rejects it outright — evenmulti_shot: false. -
shot_1_promptthroughshot_6_promptare optional, per-shot text prompts for multi-shot storytelling (models3.0and4.0). Maximum length: 2500 characters per shot. Minimum 2 shots required. Cannot be used together withpromptorduration. -
shot_1_durationthroughshot_6_durationare optional, per-shot duration in seconds. Each shot must have both prompt and duration. Total duration must be 3-15 seconds. Shots must be sequential with no gaps (e.g.shot_1+shot_2, notshot_1+shot_3). -
maxJobsis optional, range from1to50.
Specifies the maximum number of concurrent jobs. -
replyUrlis optional, a callback URL to receive generation progress and result.
See GET /tasks/task_idfor response model. -
replyRefis optional, a reference identifier for the callback.
Notes:
- At least one of
imageorimage_tailmust be provided. - If
image_tailprovided, the mode is automatically set topro(models2.x). - Element references (
element_1-element_3) require model3.0. - Keyframes (
keyframe_1-keyframe_9) requirekling-v4-0. The total number of images can be at most thedurationplus one (4 to 10). - Model
3.0 Turbosupports the start frame only — no end frame (image_tail),element_Nreferences, or multi-shot.
Responses
-
{ "task": { "id": 123456789, "userId": 12345, "type": "m2v_img2video_hq", "scene": "NORMAL_CREATION", "status": 5, "status_name": "submitted", "status_final": false, "taskInfo": { "type": "m2v_img2video_hq", "inputs": [ { "name": "input", "inputType": "URL", "token": null, "blobStorage": null, "url": "https://example.com/start-image.jpg", "cover": null, "fromWorkId": null }, { "name": "tail_image", "inputType": "URL", "token": null, "blobStorage": null, "url": "https://example.com/end-image.jpg", "cover": null, "fromWorkId": null } ], "arguments": [ { "name": "prompt", "value": "A futuristic city with flying cars and tall buildings" }, { "name": "negative_prompt", "value": "people, low quality, distorted" }, { "name": "duration", "value": "5" }, { "name": "kling_version", "value": "2.1" }, { "name": "tail_image_enabled", "value": "true" } ], "extraArgs": {}, "callbackPayloads": [], "scene": "NORMAL_CREATION" }, "favored": false, "deleted": false, "viewed": false, "createTime": 1745376611075, "updateTime": 1745376611075 }, "works": [], "status": 5, "status_name": "submitted", "status_final": false, "message": "", "limitation": { "type": "m2v_img2video_hq", "remaining": 10000, "limit": 10000 }, "userPoints": { "points": [], "total": 0 }, "userTickets": { "ticket": [] }, "editProject": null } -
The parameters are invalid. When Kling refuses the submitted parameters,
errorcarries Kling’s own message.{ "error": "image or image_tail is required" } -
{ "error": "Unauthorized", "code": 401 } -
Your Kling account can’t use the requested model yet, for example Kling 4.0.
{ "error": "This Kling account does not have access to the requested model or feature (AUTH.VPrivilegeEscalation)", "message": "Service busy (AUTH.VPrivilegeEscalation)" } -
Kling was unable to locate one of the referenced assets. Make sure to use POST /assets to upload assets.
{ "error": "Sorry, the requested resource was not found (VALID.ResourceNotFound)", "message": "Not Found" } -
Kling uses a
500response to indicate moderation and other issues with the input. It may be hard to separate actual 500 errors from moderation errors, so use theerrorfield text and your best judgement to tell them apart, since themessagefield most often has very generic and perhaps misleading text.{ "error": "The content you uploaded appears to violate the community guidelines. (CM_EXT.POther)", "message": "Service busy (CM_EXT.POther)" }
When successful, the response includes a task ID which can be used to check the status using GET /tasks/task_id.
Model
{ // TypeScript, all fields are optional
task: {
id: number
userId: number
type: string
scene: string
status: number
status_name: 'submitted' | 'failed' | 'processing' | 'succeed'
status_final: boolean
taskInfo: {
type: string
inputs: Array<{
name: string
inputType: string
token: string | null
blobStorage: any | null
url: string
cover: string | null
fromWorkId: number | null
}>
arguments: Array<{
name: string
value: string
}>
extraArgs: Record<string, any>
callbackPayloads: any[]
scene: string
}
favored: boolean
deleted: boolean
viewed: boolean
createTime: number
updateTime: number
viewTime: number
}
works: Array<any>
status: number
status_name: 'submitted' | 'failed' | 'processing' | 'succeed'
status_final: boolean
message: string
error: string
limitation: {
type: string
remaining: number
limit: number
}
userPoints: {
points: Array<{
orderId: string
type: string
amount: number
balance: number
startTime: number
endTime: number
}>
total: number
}
userTickets: {
ticket: Array<{
orderId: string
type: string
packageType: string
amount: number
balance: number
startTime: number
endTime: number
}>
}
editProject: any | null
}
Examples
-
curl -X POST "https://api.useapi.net/v1/kling/videos/image2video-frames" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -d '{ "email": "[email protected]", "image": "https://example.com/start-image.jpg", "image_tail": "https://example.com/end-image.jpg", "prompt": "A futuristic city with flying cars and tall buildings", "negative_prompt": "people, low quality, distorted" }' -
const token = "API token"; const email = "Previously configured account email"; const apiUrl = "https://api.useapi.net/v1/kling/videos/image2video-frames"; const response = await fetch(apiUrl, { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${token}`, }, body: JSON.stringify({ email: email, image: "https://example.com/start-image.jpg", image_tail: "https://example.com/end-image.jpg", prompt: "A futuristic city with flying cars and tall buildings", negative_prompt: "people, low quality, distorted" }) }); const result = await response.json(); console.log("response", {response, result}); -
import requests token = "API token" email = "Previously configured account email" apiUrl = "https://api.useapi.net/v1/kling/videos/image2video-frames" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } data = { "email": email, "image": "https://example.com/start-image.jpg", "image_tail": "https://example.com/end-image.jpg", "prompt": "A futuristic city with flying cars and tall buildings", "negative_prompt": "people, low quality, distorted" } response = requests.post(apiUrl, headers=headers, json=data) print(response, response.json())