Create Video From Image Frames

April 18, 2025 (June 17, 2026)

Table of contents

  1. Request Headers
  2. Request Body
  3. Responses
  4. Model
  5. Examples
  6. Try It

This endpoint generates a video from one or two images (start and end frames).

Model Start
Frame
End
Frame
Elements Audio Multi-
shot
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-v3-0 / kling-v3-0-turbo support 3–15s; all other models support 5s or 10s.
  • SFX = Sound Effects.
  • Native = Native Audio (model 2.6, pro mode, start frame only).

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
Request Body
{
  "email": "[email protected]",
  "image": "https://example.com/start-image.jpg",
  "prompt": "A futuristic city with flying cars and tall buildings",
  "negative_prompt": "people, low quality, distorted",
  "duration": "10",
  "model_name": "kling-v2-5",
  "mode": "pro",
  "replyUrl": "https://your-callback-url.com/webhook",
  "replyRef": "your-reference-id"
}
  • email is optional when only one account configured.
    However, if you have multiple accounts configured, this parameter becomes required.

  • image is required if image_tail is not provided. URL to the start frame image. Required for models 2.x.
    Image can be uploaded using POST /assets and the returned URLs can be used here.

  • image_tail is required if image is not provided. URL to the end frame image. Model 2.1 Master does not support this parameter. Image can be uploaded using POST /assets and the returned URLs can be used here.

  • element_1, element_2, element_3 are 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 model 3.0 only.

  • prompt is optional, text description to guide the video generation. Maximum length: 2500 characters. Cannot be used together with multi-shot parameters (shot_N_prompt/shot_N_duration).

  • negative_prompt is optional, what not to include in the generated video. Models 2.5, 2.6, and 3.0 do not support this parameter.
    Maximum length: 2500 characters.

  • cfg_scale is optional, guidance scale for image-to-video generation. Models 2.x do not support this parameter.
    Range: 0 to 1. Default: 0.5.

  • duration is optional, length of the video in seconds. Cannot be used together with multi-shot parameters (shot_N_prompt/shot_N_duration). Model 3.0: 3 to 15 seconds (default 5). Other models: 5 (default) or 10.

  • model_name is optional, the AI model version to use. Supported values: 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. Models 3.0 and 3.0 Turbo do not support aspect_ratio (derived from input image). Audio is enabled by default; set enable_audio: false to disable (model 3.0 only). Model 3.0 Turbo (kling-v3-0-turbo) is a faster 3.0 variant: start frame only (no image_tail), std/pro modes (no 4k), audio always on (enable_audio not supported), and no element_N references or multi-shot.

  • mode is optional, quality level. Model 2.1 Master only supports pro mode. Supported values: std (standard, default), pro (higher quality, slower generation), or 4k (4K resolution, model 3.0 only). Model 2.6 supports std and pro, but pro is required when enable_audio is true. Model 3.0 adds support for 4k. Model 3.0 Turbo supports std and pro only.

  • enable_audio is optional, add audio to the generated video. Supported values: false (default) or true. Model 3.0 defaults to audio enabled (including 4k); set enable_audio: false to disable. Model 3.0 Turbo always generates audio; this parameter is not supported. Model 2.6: Native Audio (AI-generated audio synced with video), requires mode: pro, not available with End Frame. Other models: Sound Effects (basic audio generation).

  • shot_1_prompt through shot_6_prompt are optional, per-shot text prompts for multi-shot storytelling (v3 only). Maximum length: 2500 characters per shot. Minimum 2 shots required. Cannot be used together with prompt or duration.

  • shot_1_duration through shot_6_duration are 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, not shot_1 + shot_3).

  • maxJobs is optional, range from 1 to 50.
    Specifies the maximum number of concurrent jobs.

  • replyUrl is optional, a callback URL to receive generation progress and result.
    See GET /tasks/task_id for response model.

  • replyRef is optional, a reference identifier for the callback.

Notes:

  • At least one of image or image_tail must be provided.
  • If image_tail provided, the mode is automatically set to pro (models 2.x).
  • Element references (element_1-element_3) require model 3.0.
  • Model 3.0 Turbo supports the start frame only — no end frame (image_tail), element_N references, or multi-shot.
Responses
  • 200 OK

    {
      "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
    }
    
  • 400 Bad Request

    {
      "error": "image or image_tail is required"
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    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"
    }
    
  • 500 Internal Server Error

    Kling uses a 500 response to indicate moderation and other issues with the input. It may be hard to separate actual 500 errors from moderation errors, so use the error field text and your best judgement to tell them apart, since the message field 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())
    
Try It