初始化待编辑视频
POST /kling/v1/videos/multi-elements/init-selection
概览
| Method | POST |
|---|---|
| Path | /kling/v1/videos/multi-elements/init-selection |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 72890869 |
参数
{ "header": [ { "required": false, "description": "", "type": "string", "id": "ZC3UggvLS5", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "GtgagBcxxq", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "video_id": { "type": "string", "description": "视频ID,从历史作品中选择待编辑的视频,仅支持仅30天时间生成的视频作品 仅支持时长≥2秒且≤5秒,或≥7秒且≤10秒的视频 与video_url参数相关,不能同时为空,也不能同时有值" }, "video_url": { "type": "string", "description": "获取视频的URL,上传时传视频下载链接,编辑选区时传接口返回的视频URL 仅支持MP4和MOV格式 仅支持时长≥2秒且≤5秒,或≥7秒且≤10秒的视频 " } }, "x-apifox-orders": [ "video_id", "video_url" ] }, "required": true, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\r\n \"video_id\": \"828013548709777428\",\r\n \"video_url\": \"\"\r\n}" } ], "oasExtensions": "" }
响应
[ { "id": 143079032, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]