Skip to main content
POST
Kling 4.0 Text-to-Video Task

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"

prompt
string
required

Text prompt, which may contain both positive and negative descriptions.

  • Up to 26,000 characters for pure English, 11,000 characters for pure non-English
  • Mixed input must satisfy: English characters/26000 + non-English characters/11000 ≤ 1
  • Describe the visual content, actions, camera movement, and event order
  • To use images, videos, or elements as references, use the omni reference endpoint
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