Skip to main content
POST

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Headers

Content-Type
string
default:application/json
required

Data exchange format

Body

application/json
model_name
enum<string>
required

Model name

Available options:
kling-4.0
Example:

"kling-4.0"

contents
object[]
required

Materials for generation, such as a prompt and first/middle/last frame images. Must include a type=prompt item.

  • Up to 10 images
  • When passing first, middle, and last frames, order them as first, middle, last; multiple middle frames follow their order in the video
  • Reference images with @id in the prompt and explain their roles
Minimum array length: 1
settings
object
options
object

Response

200 - application/json

Task accepted.

code
integer

Error code; see the error code documentation.

message
string

Error message.

request_id
string

Request ID generated by the system for tracking and troubleshooting.

data
object