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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Video 生成请求

model
string

Model /风格 ID

Example:

"kling-v1"

prompt
string

Text promptPrompt

Example:

"An astronaut stands up and walks away"

image
string

图片输入 (URL 或 Base64)

Example:

"https://example.com/image.jpg"

duration
number

Video duration(秒)

Example:

5

width
integer

Video 宽度

Example:

1280

height
integer

Video 高度

Example:

720

fps
integer

Video 帧率

Example:

30

seed
integer

随机种子

Example:

20231234

n
integer

生成 Video 数量

Example:

1

response_format
string

响应格式

Example:

"url"

user
string

User 标识

Example:

"user-1234"

metadata
object

扩展参数 (如 negative_prompt, style, quality_level 等)

Response

Video generation task created successfully

Video 生成 Tasks 提交响应

task_id
string

Task ID

Example:

"abcd1234efgh"

status
string

Task status

Example:

"queued"