Skip to main content
POST
Kling V2.5 Turbo Image to Video Pro
Generate high-quality videos from a source image using the kling/v2-5-turbo-image-to-video-pro model.

Endpoint

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

string
required
Must be grok-imagine/image-to-video.
object
required

Input Parameters

The input object contains the parameters used to generate the video.
string
required
The prompt describes the video you want to generate.Maximum length: 2500 characters.
string
required
The image_url must contain the URL of an uploaded image.Supported formats:
  • image/jpeg
  • image/png
Maximum file size: 10 MB
string
You can optionally provide tail_image_url as the desired tail frame of the video.The image must be an uploaded file URL.Supported formats:
  • image/jpeg
  • image/png
Maximum file size: 10 MB
string
The duration of the generated video in seconds.Supported values:
  • "5"
  • "10"
Default: "5"
string
Use negative_prompt to describe elements or qualities that should be excluded from the generated video.Maximum length: 500 characters.
string
The cfg_scale parameter controls how closely the model follows the prompt.

Example Request

Response

Successful Response

A successful request returns a task ID.
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
The returned taskId can be used with the Get Task Details endpoint to check the generation status and retrieve the results.

Get Task Details

Learn how to query task status and retrieve generation results.

Error Response

API Response Codes