多帧(Multi-transition) 视频生成
POST /openapi/v2/video/multi_transition/generate
概览
| Method | POST |
|---|---|
| Path | /openapi/v2/video/multi_transition/generate |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 86260306 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "ms9BO1NWdC", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "zVjbENmzAo", "enable": true, "name": "API-KEY", "sampleValue": "{{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "multi_transition": { "type": "array", "items": { "type": "object", "properties": { "img_id": { "type": "integer" }, "duration": { "type": "integer" }, "prompt": { "type": "string" } }, "required": [ "img_id", "duration" ], "x-apifox-orders": [ "img_id", "duration", "prompt" ] }, "description": "1. multi_transition 必须是一个包含 2 到 7 个元素的数组。2\n. multi_transition 中的每个元素应包含:img_id(必填,整数)、duration(必填,整数,最后一个元素可选)、prompt(可选,字符串)。" }, "model": { "type": "string", "description": "\"v3.5\",\"v4\",\"v4.5\",\"v5\"" }, "quality": { "type": "string", "description": "\"360p\",\"540p\",\"720p\",\"1080p\"" } }, "required": [ "multi_transition", "model", "quality" ], "x-apifox-orders": [ "multi_transition", "model", "quality" ] }, "required": true, "mediaType": "", "examples": [ { "name": "示例 1", "value": "{\r\n \"multi_transition\": [\r\n {\r\n \"img_id\": 0,\r\n \"duration\": 3,\r\n \"prompt\": \"\"\r\n },\r\n {\r\n \"img_id\": 0,\r\n \"duration\": 3,\r\n \"prompt\": \"\"\r\n },\r\n {\r\n \"img_id\": 0,\r\n \"duration\": 3,\r\n \"prompt\": \"\"\r\n },\r\n {\r\n \"img_id\": 0,\r\n \"duration\": 3,\r\n \"prompt\": \"\"\r\n },\r\n {\r\n \"img_id\": 0,\r\n \"duration\": 0,\r\n \"prompt\": \"\"\r\n }\r\n ],\r\n \"model\": \"v5\",\r\n \"quality\": \"360p\",\r\n \"motion_mode\": \"normal\"\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 101640880, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]