提交视频生成任务
POST /minimax/v1/video_generation
说明
概览
| Method | POST |
|---|---|
| Path | /minimax/v1/video_generation |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 62584383 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "id": "NQs7bxnpZf", "name": "Content-Type", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "id": "qb8tEQbCty", "name": "Accept", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "required": true, "description": "", "type": "string", "id": "gBxcCbXhsa", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "model": { "type": "string", "description": "模型名 传 MiniMax-Hailuo-02" }, "prompt": { "type": "string", "description": "提示词" }, "duration": { "type": "integer", "description": "视频时长 支持6 ,10" } }, "required": [ "model", "prompt", "duration" ], "x-apifox-orders": [ "model", "prompt", "duration" ] }, "mediaType": "", "examples": [ { "value": "{\n \"model\": \"MiniMax-Hailuo-02\",\n \"prompt\": \"一只小猪在高速公路上快乐的奔跑\",\n \"duration\": 10\n}", "mediaType": "application/json", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 730210004, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "code": { "type": "integer" }, "message": { "type": "string" }, "request_id": { "type": "string" }, "data": { "type": "object", "properties": { "task_id": { "type": "string" }, "task_status": { "type": "string" }, "created_at": { "type": "integer" }, "updated_at": { "type": "integer" } }, "required": [ "task_id", "task_status", "created_at", "updated_at" ] } }, "required": [ "code", "message", "request_id", "data" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 730210004, "data": "{\r\n \"task_id\": \"306792606023824\",\r\n \"base_resp\": {\r\n \"status_code\": 0,\r\n \"status_msg\": \"success\"\r\n }\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 649639845 } ]