音效生成(sound_effect)接口
POST /openapi/v2/video/sound_effect/generate
概览
| Method | POST |
|---|---|
| Path | /openapi/v2/video/sound_effect/generate |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 86260306 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "gXsILSBRNK", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "F63VsVPzvF", "enable": true, "name": "API-KEY", "sampleValue": "{{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "source_video_id": { "type": "integer", "description": "必传source_video_id 或 video_media_id" }, "video_media_id": { "type": "integer", "description": "必传source_video_id 或 video_media_id" }, "original_sound_switch": { "type": "boolean", "description": "控制是否播放背景音乐。必须为布尔值。" }, "sound_effect_content": { "type": "string", "description": "可选。如果未提供,则会生成随机音效。" } }, "x-apifox-orders": [ "source_video_id", "video_media_id", "original_sound_switch", "sound_effect_content" ] }, "required": true, "mediaType": "", "examples": [ { "name": "示例 1", "value": "{\r\n \"source_video_id\": 343252978602905,\r\n //\"video_media_id\":123123,\r\n \"original_sound_switch\": true,\r\n \"sound_effect_content\": \"\"\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 124137975, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]