Skip to main content
POST
Create Kling Image-to-Video Task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Video generation request

model
string

Model/style ID

Example:

"kling-v1"

prompt
string

Text promptPrompt

Example:

"An astronaut stands up and walks away"

image
string

Image input (URL or Base64)

Example:

"https://example.com/image.jpg"

duration
number

Video duration (seconds)

Example:

5

width
integer

Video width

Example:

1280

height
integer

Video height

Example:

720

fps
integer

Video frame rate

Example:

30

seed
integer

Random seed

Example:

20231234

n
integer

Number of videos to generate

Example:

1

response_format
string

Response format

Example:

"url"

user
string

User identifier

Example:

"user-1234"

metadata
object

Additional parameters (such as negative_prompt, style, quality_level, etc.)

Response

Video generation task created successfully

Video generation task submission response

task_id
string

Task ID

Example:

"abcd1234efgh"

status
string

Task status

Example:

"queued"