curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-2.6",
"prompt": "赛博朋克城市夜景,镜头慢慢推进",
"seconds": "5",
"metadata": {
"output_config": {
"resolution": "720P",
"aspect_ratio": "16:9"
}
}
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "kling-2.5-720p",
"status": "queued",
"progress": 0,
"created_at": 1780891541
}快手可灵
创建视频
创建 Kling 视频任务。
路径: POST https://api.omniall.ai/v1/videos
文生 / 图生判定:存在 image / images / input_reference / metadata.last_frame_* / 参考视频等 → 图生;否则 → 文生。
鉴权:Authorization: Bearer sk-...
POST
/
v1
/
videos
curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-2.6",
"prompt": "赛博朋克城市夜景,镜头慢慢推进",
"seconds": "5",
"metadata": {
"output_config": {
"resolution": "720P",
"aspect_ratio": "16:9"
}
}
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "kling-2.5-720p",
"status": "queued",
"progress": 0,
"created_at": 1780891541
}请求体
application/json
Kling 创建视频请求体。
响应
200 - application/json
任务已受理