Skip to main content
POST

请求头

Authorization
string
必填

Bearer API Key,例如 Bearer sk-...。

示例:

"Bearer sk-..."

请求体

application/json

Kling 创建视频请求体。

model
string
必填

模型别名(大小写不敏感)。生成:kling-1.0 … kling-3.0-omni、kling-o1。专用: kling-identify-face、kling-avatar-720p、kling-avatar-1080p。

示例:

"kling-2.5"

prompt
string

文本提示词(多数场景必填)。

seconds
string

视频时长(秒)字符串,如 "5"、"10"。时长优先级最高。

示例:

"5"

duration

时长(秒);与顶层 seconds 同时存在时 seconds 优先。

size
string

尺寸快捷写法,如 720x1280、720P、1080P,可隐含分辨率与宽高比。

示例:

"720x1280"

image
string

单张参考图 URL。

images
string[]

多张参考图 URL(最多 3 张)。Omni 有参考计费请优先用 images。

Maximum array length: 3
input_reference
string

参考图 URL(类似 image)。

mode
string

动作控制时可传 pro 表示 Pro 档位。

示例:

"pro"

content
object[]

OpenAI 风格多模态内容;网关从 type=text 提取文本。

metadata
object

Kling 扩展参数。

响应

200 - application/json

任务已受理

id
string
task_id
string
object
string
示例:

"video"

model
string

实际计费档位名称。

status
string

queued / pending / processing / in_progress / completed / failed / cancelled

progress
integer
created_at
integer
completed_at
integer
seconds
string
size
string
video_url
string
error
object