Kling/V3-Omni
多模态视频生成模型,支持文本、图像和视频作为多模态输入。
异步提交任务
接口
https://api.modelverse.cn/v1/tasks/submit
输入
图片格式要求:
支持格式:
.jpg、.jpeg、.png文件大小:不超过 10MB
尺寸要求:宽高最小 300px,宽高比在 1:2.5 ~ 2.5:1 之间
使用 Base64 编码时,不要添加
data:image/png;base64,等前缀
视频格式要求:
支持格式:MP4、MOV
视频时长不少于 3 秒
宽高尺寸介于 720px ~ 2160px
帧率 24fps ~ 60fps,生成视频输出为 24fps
最多 1 段视频,大小不超过 200MB
请求示例
⚠️ 如果您使用 Windows 系统,建议使用 Postman 或其他 API 调用工具。
文生视频:
curl --location --globoff 'https://api.modelverse.cn/v1/tasks/submit' \
--header 'Authorization: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-v3-omni",
"input": {
"prompt": "A beautiful sunset over the ocean with waves gently crashing"
},
"parameters": {
"mode": "pro",
"aspect_ratio": "16:9",
"duration": 5,
"sound": "on"
}
}'图片参考 + 首尾帧:
curl --location --globoff 'https://api.modelverse.cn/v1/tasks/submit' \
--header 'Authorization: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-v3-omni",
"input": {
"prompt": "A girl walking through a garden"
},
"parameters": {
"mode": "pro",
"aspect_ratio": "16:9",
"duration": 5,
"image_list": [
{"image_url": "https://example.com/first_frame.jpg", "type": "first_frame"},
{"image_url": "https://example.com/last_frame.jpg", "type": "end_frame"}
]
}
}'视频编辑(待编辑视频):
curl --location --globoff 'https://api.modelverse.cn/v1/tasks/submit' \
--header 'Authorization: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-v3-omni",
"input": {
"prompt": "Add a cinematic color grading effect"
},
"parameters": {
"mode": "pro",
"video_list": [
{
"video_url": "https://example.com/input.mp4",
"refer_type": "base",
"keep_original_sound": "yes"
}
]
}
}'多镜头 + 图片引用:
curl --location --globoff 'https://api.modelverse.cn/v1/tasks/submit' \
--header 'Authorization: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-v3-omni",
"parameters": {
"mode": "pro",
"aspect_ratio": "16:9",
"duration": 5,
"multi_shot": true,
"shot_type": "customize",
"multi_prompt": [
{"index": 1, "prompt": "<<<image_1>>>A person sitting on a park bench, sunlight filtering through trees", "duration": "2"},
{"index": 2, "prompt": "A car speeding down a rainy street, headlights glowing", "duration": "3"}
],
"image_list": [
{"image_url": "https://example.com/person.jpg"}
],
"sound": "on"
}
}'输出
响应示例
{
"output": {
"task_id": "task_id"
},
"request_id": "request_id"
}查询任务状态
接口
https://api.modelverse.cn/v1/tasks/status?task_id=<task_id>
请求示例
curl --location 'https://api.modelverse.cn/v1/tasks/status?task_id=<task_id>' \
--header 'Authorization: <YOUR_API_KEY>'输出
响应示例(成功)
{
"output": {
"task_id": "task_id",
"task_status": "Success",
"urls": ["https://xxxxx/xxxx.mp4"],
"submit_time": 1756959000,
"finish_time": 1756959050
},
"usage": {
"duration": 5
},
"request_id": ""
}响应示例(失败)
{
"output": {
"task_id": "task_id",
"task_status": "Failure",
"submit_time": 1756959000,
"finish_time": 1756959019,
"error_message": "error_message"
},
"usage": {
"duration": 5
},
"request_id": ""
}








