多图参考生视频
POST /kling/v1/videos/multi-image2video
说明
其他参数 请看 官方文档 https://app.klingai.com/cn/dev/document-api/apiReference/updateNotice 参数是一致的,对接时,仅需将请求域名、API key 改成我们
概览
| Method | POST |
|---|---|
| Path | /kling/v1/videos/multi-image2video |
| Type | http |
| Status | -2 |
| Module | 2102810 |
| Folder | 46920504 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "id": "NQs7bxnpZf", "name": "Content-Type", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "id": "qb8tEQbCty", "name": "Accept", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "required": true, "description": "", "type": "string", "id": "gBxcCbXhsa", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "image": { "description": "参考图像,必需,支持Base64编码 或图片URL,支持.jpg/.jpeg/.png格式,大小不超过10MB,分辨率不小于300*300px\nbese64 不能传入 ", "type": "string" }, "image_tail": { "description": "参考图像-尾帧控制,可选,支持Base64编码或图片URL,支持.jpg/.jpeg/.png格式,大小不超过10MB,分辨率不小于300*300px", "type": "string" }, "prompt": { "description": "正向文本提示,可选,描述想要生成的视频内容,不超过5000字符", "type": "string" }, "negative_prompt": { "description": "负向文本提示,可选,描述不想在视频中出现的元素,不超过2000字符", "type": "string" }, "cfg_scale": { "description": "生成视频的自由度,可选,取值范围0-1,值越大相关性越强", "type": "number" }, "mode": { "description": "生成视频的模式,可选,std(高性能)或 pro(高表现)", "type": "string" }, "duration": { "type": "number", "description": "生成视频时长,单位秒,可选值:5或10(注意:包含尾帧的请求仅支持5秒)" }, "callback_url": { "description": "回调通知地址,可选,用于接收任务状态更新", "type": "string" }, "model_name": { "description": "kling-v1、kling-v1-5、kling-v1-6\n", "type": "string" } }, "required": [ "model_name", "image", "image_tail", "prompt", "negative_prompt", "cfg_scale", "mode", "duration", "callback_url" ], "x-apifox-orders": [ "model_name", "image", "image_tail", "prompt", "negative_prompt", "cfg_scale", "mode", "duration", "callback_url" ] }, "required": false, "mediaType": "", "examples": [ { "value": "{\n \"model_name\": \"kling-v1-6\",\n \"image_list\": [\n {\n \"image\": \"https://cdn.klingai.com/bs2/upload-kling-api/9471259838/image/Cl6kH2gHPegAAAAAAjveaQ-0_raw_image_0.png\"\n },\n {\n \"image\": \"https://cdn.klingai.com/bs2/upload-kling-api/9471259838/image/Cl6kH2gHPegAAAAAAjveaQ-0_raw_image_0.png\"\n }\n ],\n \"prompt\": \"flow\",\n \"negative_prompt\": \"\",\n \"image_tail\": \"\",\n \"aspect_ratio\": \"1:1\",\n \"mode\": \"std\",\n \"duration\": \"5\"\n}", "mediaType": "application/json", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 795225737, "name": "OK", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {}, "x-apifox-orders": [] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]