主体替换(Swap) Mask 生成
POST /openapi/v2/video/mask/selection
概览
| Method | POST |
|---|---|
| Path | /openapi/v2/video/mask/selection |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 86260306 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "yWw7vuGzjh", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "sRAC3Euynp", "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\n编码需要为 h.264/h.265" }, "keyframe_id": { "type": "integer", "description": "从1 到最后视频帧. 如果不提供默认为1" }, "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" ] }, "required": true, "mediaType": "", "examples": [ { "name": "示例 1", "value": "{\r\n \"source_video_id\": 0,\r\n \"keyframe_id\": 1\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 160885060, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]