官方文档:https://www.minimax.io/platform/document/Model%3Fkey=684261f14c5738213294faa7?key=66d1439376e52fcee2853049&document=video_generation
POST
/minimax/v1/video_generation提交视频生成任务
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/minimax/v1/video_generation \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "MiniMax-Hailuo-02",
"prompt": "一只小猪在高速公路上快乐的奔跑",
"duration": 10
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 是 | - | application/json |
Accept | Header | string | 是 | - | application/json |
Authorization | Header | string | 是 | - | Bearer {{YOUR_API_KEY}} |
model | JSON body | string | 是 | 模型名 传 MiniMax-Hailuo-02 | - |
prompt | JSON body | string | 是 | 提示词 | - |
duration | JSON body | integer | 是 | 视频时长 支持6 ,10 | - |
返回响应 (200)
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
code | 响应 JSON | integer | 是 | - | - |
message | 响应 JSON | string | 是 | - | - |
request_id | 响应 JSON | string | 是 | - | - |
data | 响应 JSON | object | 是 | - | - |
data.task_id | 响应 JSON | string | 是 | - | - |
data.task_status | 响应 JSON | string | 是 | - | - |
data.created_at | 响应 JSON | integer | 是 | - | - |
data.updated_at | 响应 JSON | integer | 是 | - | - |
响应示例
{
"task_id": "306792606023824",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899708,
"name": "提交视频生成任务 ",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档:https://www.minimax.io/platform/document/Model%3Fkey=684261f14c5738213294faa7?key=66d1439376e52fcee2853049&document=video_generation",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/minimax/v1/video_generation",
"tags": [],
"status": 1,
"requestBody": {
"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"
]
},
"examples": [
{
"value": "{\n \"model\": \"MiniMax-Hailuo-02\",\n \"prompt\": \"一只小猪在高速公路上快乐的奔跑\",\n \"duration\": 10\n}",
"mediaType": "application/json",
"description": ""
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "NQs7bxnpZf",
"name": "Content-Type",
"required": true,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "qb8tEQbCty",
"name": "Accept",
"required": true,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "gBxcCbXhsa",
"name": "Authorization",
"required": true,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 128359284,
"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"
],
"x-apifox-orders": [
"task_id",
"task_status",
"created_at",
"updated_at"
]
}
},
"required": [
"code",
"message",
"request_id",
"data"
],
"x-apifox-orders": [
"code",
"message",
"request_id",
"data"
]
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 128359284,
"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": "019fc09b-0b1d-71aa-a555-dc48b48c8c54"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92749337,
"ordering": 0,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {},
"isDefaultUrlEncoding": 1
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}