多模态视频
POST /kling/v1/videos/multi-elements
概览
| Method | POST |
|---|---|
| Path | /kling/v1/videos/multi-elements |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 72890869 |
参数
{ "header": [ { "required": false, "description": "", "type": "string", "id": "yuB4E8DCh5", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "9NpP4TjspO", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "model_name": { "type": "string", "description": "模型名称枚举值:kling-v1-6" }, "session_id": { "type": "string", "description": "会话ID,会基于视频初始化任务生成,不会随编辑选区行为而改变" }, "edit_mode": { "type": "string", "description": "操作类型枚举值:addition, swap, removal, 其中:addition:增加元素swap:替换元素removal:删除元素" }, "image_list": { "type": "array", "items": { "type": "string", "description": "推荐的Prompt模板 增加元素 \n //中文:基于<<<video_1>>>中的原始内容,以自然生动的方式,将<<<image_1>>>中的【】,融入<<<video_1>>>的【】\n //英文:Using the context of <<<video_1>>>, seamlessly add [x] from <<<image_1>>> 替换元素\n //中文:使用<<<image_1>>>中的 【】,替换<<<video_1>>>中的 【】\n //英文:swap [x] from <<<image_1>>> for [x] from <<<video_1>>> 删除元素\n //中文:删除<<<video_1>>>中的【】\n //英文:Delete [x] from <<<video_1>>> 注:中文的【】,英文的[x],是需要用户填写的部分" }, "description": "裁剪后的参考图像" }, "prompt": { "type": "string", "description": "正向文本提示词" }, "negative_prompt": { "type": "string", "description": "负向文本提示词" }, "mode": { "type": "string", "description": "生成视频的模式\n枚举值:std,pro\n其中std:标准模式(标准),基础模式,性价比高\n其中pro:专家模式(高品质),高表现模式,生成视频质量更佳" }, "duration": { "type": "string", "description": "生成视频时长,单位s\n枚举值:5,10" }, "callback_url": { "type": "string" }, "external_task_id": { "type": "string" } }, "required": [ "model_name", "session_id", "edit_mode", "prompt", "mode", "duration" ], "x-apifox-orders": [ "model_name", "session_id", "edit_mode", "image_list", "prompt", "negative_prompt", "mode", "duration", "callback_url", "external_task_id" ] }, "required": true, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\r\n \"model_name\": \"kling-v1-6\",\r\n \"session_id\": \"\",\r\n \"edit_mode\": \"\",\r\n \"image_list\": [],\r\n \"prompt\": \"\",\r\n \"negative_prompt\": \"\",\r\n \"mode\": \"std\",\r\n \"duration\": \"5\",\r\n \"callback_url\": \"\",\r\n \"external_task_id\": \"\"\r\n}" } ], "oasExtensions": "" }
响应
[ { "id": 103335209, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]