Skip to main content
POST
/
kling
/
v1
/
videos
/
image2video
Create Kling Image-to-Video Task
curl --request POST \
  --url https://api.ldx.dev/kling/v1/videos/image2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "kling-v1",
  "prompt": "A person turns around and walks away",
  "image": "https://example.com/image.jpg",
  "duration": 5,
  "width": 1280,
  "height": 720
}
'
{
  "task_id": "abcd1234efgh",
  "status": "queued"
}

Documentation Index

Fetch the complete documentation index at: https://docs.liandanxia.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json

See endpoint details.

model
string

See endpoint details.

Example:

"kling-v1"

prompt
string

Text promptPrompt

Example:

"An astronaut stands up and walks away"

image
string

See endpoint details.

Example:

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

duration
number

See endpoint details.

Example:

5

width
integer

See endpoint details.

Example:

1280

height
integer

See endpoint details.

Example:

720

fps
integer

See endpoint details.

Example:

30

seed
integer

See endpoint details.

Example:

20231234

n
integer

See endpoint details.

Example:

1

response_format
string

See endpoint details.

Example:

"url"

user
string

See endpoint details.

Example:

"user-1234"

metadata
object

See endpoint details.

Response

Video generation task created successfully

See endpoint details.

task_id
string

Task ID

Example:

"abcd1234efgh"

status
string

Task status

Example:

"queued"