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 prompts, images, videos, elements, and voices. Must include a type=prompt item.

  • Up to 10 images
  • Images + videos + elements + voices must not exceed 15 in total
  • Up to 7 elements, of which at most 3 video character elements
  • Up to 5 reference videos; with video character elements, the total of elements and reference videos must not exceed 5; at most 1 base_video
  • Up to 3 voices
  • When first_frame, last_frame, and refer_image coexist, keep first_frame first and last_frame last

Note: Elements (element) and voices (voice) are not yet integrated and cannot be used.

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