生成视频模版
POST /openapi/v2/video/img/generate
说明
基于图生视频如何生成视频模版
概览
| Method | POST |
|---|---|
| Path | /openapi/v2/video/img/generate |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 86260306 |
参数
{ "header": [ { "required": false, "description": "", "type": "string", "id": "1HolDCY4hZ", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "eXSC6ChYku", "enable": true, "name": "API-KEY", "sampleValue": "{{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "duration": { "type": "integer", "description": "传5即可, 实际duration 按照模版时长生成" }, "img_id": { "type": "integer", "description": "单图模版时使用\n" }, "model": { "type": "string", "description": "传任何模型即可, 模版与模型不相关" }, "template_id": { "type": "integer", "description": "模版ID\n" }, "prompt": { "type": "string", "description": "模版不识别prompt, 传空即可" }, "quality": { "type": "string", "description": "\"360p\",\"540p\",\"720p\",\"1080p\"" }, "sound_effect_switch": { "type": "boolean", "description": "true时, 会有背景音乐" }, "img_ids": { "type": "array", "items": { "type": "integer" }, "description": "多图模版时使用 ex) \"img_ids \":[0,0]" } }, "required": [ "duration", "img_id", "model", "template_id", "prompt", "quality" ], "x-apifox-orders": [ "duration", "prompt", "img_id", "img_ids", "model", "template_id", "quality", "sound_effect_switch" ] }, "required": true, "mediaType": "", "examples": [ { "name": "示例 1", "value": "{\r\n \"duration\": 5,\r\n \"img_id\": 1,\r\n \"model\": \"v6\",\r\n \"template_id\": 0,\r\n \"prompt\": \"string\",\r\n \"quality\": \"720p\",\r\n //\"sound_effect_switch\":true\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 152520747, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]