主体替换(Swap) 视频生成
POST /openapi/v2/video/swap/generate
概览
| Method | POST |
|---|---|
| Path | /openapi/v2/video/swap/generate |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 86260306 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "Apwy2DHfKW", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "407Aui5AiM", "enable": true, "name": "API-KEY", "sampleValue": "{{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "source_video_id": { "type": "integer", "description": "通过拍我API 生成的video_id, 必传source_video_id 或 video_media_id" }, "keyframe_id": { "type": "integer", "description": "从1 到最后视频帧. 如果不提供默认为1" }, "mask_id": { "type": "string" }, "img_id": { "type": "integer" }, "quality": { "type": "string" }, "video_media_id": { "type": "integer", "description": "通过接口上传的视频 media_id,必传source_video_id 或 video_media_id" } }, "x-apifox-orders": [ "video_media_id", "source_video_id", "keyframe_id", "mask_id", "img_id", "quality" ], "required": [ "keyframe_id", "mask_id", "img_id", "quality" ] }, "required": true, "mediaType": "", "examples": [ { "name": "示例 1", "value": "{\r\n \"source_video_id\": 0,\r\n \"keyframe_id\": 1,\r\n \"mask_id\": \"0\",\r\n \"img_id\": 0,\r\n \"quality\": \"360p\"\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 119964329, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]