POST
/kling/v1/videos/multi-elements多模态视频
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/kling/v1/videos/multi-elements \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model_name": "kling-v1-6",
"session_id": "",
"edit_mode": "",
"image_list": [],
"prompt": "",
"negative_prompt": "",
"mode": "std",
"duration": "5",
"callback_url": "",
"external_task_id": ""
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 否 | - | application/json |
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
model_name | JSON body | string | 是 | 模型名称枚举值:kling-v1-6 | - |
session_id | JSON body | string | 是 | 会话ID,会基于视频初始化任务生成,不会随编辑选区行为而改变 | - |
edit_mode | JSON body | string | 是 | 操作类型枚举值:addition, swap, removal, 其中:addition:增加元素swap:替换元素removal:删除元素 | - |
image_list | JSON body | array<string> | 否 | 裁剪后的参考图像 | - |
prompt | JSON body | string | 是 | 正向文本提示词 | - |
negative_prompt | JSON body | string | 否 | 负向文本提示词 | - |
mode | JSON body | string | 是 | 生成视频的模式 枚举值:std,pro 其中std:标准模式(标准),基础模式,性价比高 其中pro:专家模式(高品质),高表现模式,生成视频质量更佳 | - |
duration | JSON body | string | 是 | 生成视频时长,单位s 枚举值:5,10 | - |
callback_url | JSON body | string | 否 | - | - |
external_task_id | JSON body | string | 否 | - | - |
返回响应 (200)
此部分没有定义参数。
来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899794,
"name": "多模态视频",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/kling/v1/videos/multi-elements",
"tags": [],
"status": 1,
"requestBody": {
"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"
]
},
"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}"
}
],
"mediaType": "",
"oasExtensions": "",
"required": true,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "yuB4E8DCh5",
"name": "Content-Type",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "9NpP4TjspO",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 113631548,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436143,
"ordering": 24,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {}
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}