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, and elements.

The reference format is as follows. See the parameter descriptions below:

  • The order of prompts, reference images, and elements is the analysis order

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

Minimum array length: 1
settings
object

Parameters related to output configuration, such as resolution and aspect ratio.

options
object

General configuration, such as the callback URL and whether to include a watermark.

Response

200 - application/json

Task accepted.

code
integer

Error code; 0 means success. See the error code documentation for details.

Example:

0

message
string

Response message.

Example:

"SUCCEED"

request_id
string

Request tracking ID generated by the system for troubleshooting.

Example:

"example-request-id"

data
object