Skip to main content
POST
Kling 3.0 Omni Image to Video

Authentication

All API requests require a Bearer Token.

Create a Video Generation Task

Submit an image-to-video generation task using the endpoint below.

Request Body

Root Parameters

string
required
Must be kling-3.0-omni/image-to-video.
object
required

Input Parameters

The input object contains the parameters used to generate the video.
string
required
The prompt for generating a video. It must not be empty after leading and trailing whitespace is removed.Maximum length: 3,072 characters.
string[]
required
First and last frame image URLs.Use the first image URL as the required first frame and the second image URL as the last frame of the video, with a smooth and natural transition between them.
  • When the array contains 2 images:
    • image_urls[0] is the first frame.
    • image_urls[1] is the last frame.
  • When the array contains 1 image:
    • The image is used as the first frame.
Supported image formats:
  • image/jpeg
  • image/png
  • image/jpg
Maximum file size: 50 MB Aspect ratio must be between 0.4 and 2.5.
string
Use duration to specify the total length of the video in seconds.Supported values:
  • "3" to "15"
Default value: "5"
string
Use resolution to specify the output video resolution.Supported values:
  • 720p
  • 1080p
  • 4k
string
default:"16:9"
required
Specifies the aspect ratio of the generated video.Supported values:
  • 16:9
  • 9:16
  • 1:1
  • auto
16:9, 9:16, and 1:1 are available only when customize_multi_shots is enabled. Otherwise, use auto.
boolean
default:"false"
Set to true to define custom shots using multi_prompt.
boolean
default:"false"
Enables intelligent shot planning.
prefer_multi_shots and customize_multi_shots are mutually exclusive.
object[]
required
When customize_multi_shots=true, this field is required.Used to describe the text and duration of each shot. Supports up to 6 shots. Each shot duration is 1–15 seconds.

Array Item Properties

Each item in multi_prompt contains the following required properties.
string
required
Prompt text for this shot.Maximum length: 512 characters
number
required
Duration of this shot in seconds.Range: 1–15 seconds
object[]
required
The elements array defines one-time subject assets.Each subject is automatically identified as either a multi-image subject or a video character subject based on element_input_urls.Maximum subjects: 3

Element Object

Each element in the kling_elements array supports the following properties.
string
required
Element name used in the prompt with an @ prefix.For example, if the element name is element_dog, reference it in the prompt as:
string
required
Subject description
string[]
required
Image or video URLs used as the source material for the element.
  • 2–4 URLs are required.
  • Accepted image formats: JPG, PNG.
  • Maximum file size: 10 MB per image.
string[]
Optional list of audio material URLs for characters.The audio duration must be between 5 and 30 seconds.
number
Start time for video character material capture, specified in milliseconds.This parameter is only effective when uploading videos through element_input_urls.If no value is provided, it defaults to 0.
number
End time for video character material capture, specified in milliseconds.This parameter is only effective when uploading videos through element_input_urls.The following requirements apply:
  • end_time must be greater than start_time.
  • The difference between end_time and start_time must be between 3000 and 8000 milliseconds.

Complete Request Examples

Example 1: Single First Frame

Example 2: First and Last Frames

Response

Success Response

number
Response status code.
string
Response message. Contains the error description when the request fails.Example: success
object
required
The task data object containing task id.
string
required
The unique identifier for this task.Example: task_123456

Query Task Status

After submitting a task, you can check task progress and retrieve generation results through the unified task-details endpoint.

Get Task Details

Check task status, monitor generation progress, and retrieve results.

Error Response

Response Codes