Skip to main content
POST
/
kling-v2.6-t2v
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/text-to-video/kling/kling-v2.6-t2v/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Forest stream with flowing water and birds chirping"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-pqr678",
    "model_id": "kling-v2.6-t2v"
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Video description text, supports Chinese and English

Required string length: 1 - 2500
Example:

"Forest stream with flowing water and birds chirping"

negative_prompt
string

Negative prompt describing undesired elements

Required string length: 1 - 2500
Example:

"silent, empty, deserted"

sound
enum<string>
default:on

Audio generation switch: on (enable) or off (disable). Only supported by V2.6 and later versions.

Available options:
on,
off
Example:

"on"

mode
enum<string>
default:std

Generation mode: std (standard) or pro (professional)

Available options:
std,
pro
Example:

"pro"

aspect_ratio
enum<string>
default:16:9

Video aspect ratio

Available options:
16:9,
9:16,
1:1
Example:

"16:9"

duration
enum<integer>
default:5

Video duration in seconds

Available options:
5,
10
Example:

10

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required