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": "A man picks up a book [Pedestal up], then reads [Static shot].",
"duration": 6,
"resolution": "1080P"
}
'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Authorization | Header | string | 否 | - | sk- |
model | JSON body | string | 是 | 模型名称。可选值:MiniMax-Hailuo-2.3, MiniMax-Hailuo-02 | - |
prompt | JSON body | string | 是 | 视频的文本描述,最大 2000 字符。支持使用 [指令] 语法进行运镜控制,如 [左移], [右移], [推进], [拉远], [上升], [下降], [左摇], [右摇], [上摇], [下摇], [变焦推近], [变焦拉远], [晃动], [跟随], [固定] 等 15 种运镜指令 | - |
duration | JSON body | integer | 是 | 频时长(秒)。可用值:6 或 10(10秒仅支持 768P 分辨率的 Hailuo 系列模型) | - |
resolution | JSON body | string | 是 | 频分辨率。可选值:720P(其他模型默认), 768P(Hailuo 系列默认), 1080P(仅支持 6 秒) | - |
prompt_optimizer | JSON body | boolean | 是 | 是否自动优化 prompt。设为 false 可进行更精确的控制 | - |
fast_pretreatment | JSON body | boolean | 是 | 是否缩短 prompt_optimizer 的优化耗时。仅对 MiniMax-Hailuo-2.3 和 MiniMax-Hailuo-02 模型生效 | - |
callback_url | JSON body | string | 是 | 接收任务状态更新通知的回调 URL。配置后会收到任务状态变更的异步通知(processing/success/failed) | - |
aigc_watermark | JSON body | boolean | 是 | 是否在生成的视频中添加 AIGC 水印 | - |
first_frame_image | JSON body | string | 是 | 将指定图片作为视频的起始帧。支持公网 URL 或 Base64 编码的 Data URL (data:image/jpeg;base64,...) | - |
返回响应 (200)
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
task_id | 响应 JSON | string | 是 | - | - |
base_resp | 响应 JSON | object | 是 | - | - |
base_resp.status_code | 响应 JSON | integer | 是 | - | - |
base_resp.status_msg | 响应 JSON | string | 是 | - | - |
响应示例
{
"task_id": "106916112212032",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 497673406,
"name": "文生图生视频生成任务",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/minimax/v1/video_generation",
"tags": [],
"status": -2,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "模型名称。可选值:MiniMax-Hailuo-2.3, MiniMax-Hailuo-02"
},
"prompt": {
"type": "string",
"description": "视频的文本描述,最大 2000 字符。支持使用 [指令] 语法进行运镜控制,如 [左移], [右移], [推进], [拉远], [上升], [下降], [左摇], [右摇], [上摇], [下摇], [变焦推近], [变焦拉远], [晃动], [跟随], [固定] 等 15 种运镜指令"
},
"duration": {
"type": "integer",
"description": "频时长(秒)。可用值:6 或 10(10秒仅支持 768P 分辨率的 Hailuo 系列模型)"
},
"resolution": {
"type": "string",
"description": "频分辨率。可选值:720P(其他模型默认), 768P(Hailuo 系列默认), 1080P(仅支持 6 秒)"
},
"prompt_optimizer": {
"type": "boolean",
"description": "是否自动优化 prompt。设为 false 可进行更精确的控制"
},
"fast_pretreatment": {
"type": "boolean",
"description": "是否缩短 prompt_optimizer 的优化耗时。仅对 MiniMax-Hailuo-2.3 和 MiniMax-Hailuo-02 模型生效"
},
"callback_url": {
"type": "string",
"description": "接收任务状态更新通知的回调 URL。配置后会收到任务状态变更的异步通知(processing/success/failed)"
},
"aigc_watermark": {
"type": "boolean",
"description": "是否在生成的视频中添加 AIGC 水印"
},
"first_frame_image": {
"type": "string",
"description": "将指定图片作为视频的起始帧。支持公网 URL 或 Base64 编码的 Data URL (data:image/jpeg;base64,...)"
}
},
"required": [
"model",
"prompt",
"duration",
"resolution",
"prompt_optimizer",
"fast_pretreatment",
"callback_url",
"aigc_watermark",
"first_frame_image"
],
"x-apifox-orders": [
"model",
"prompt",
"duration",
"resolution",
"prompt_optimizer",
"fast_pretreatment",
"callback_url",
"aigc_watermark",
"first_frame_image"
]
},
"examples": [
{
"mediaType": "application/json",
"value": "\r\n{\r\n \"model\": \"MiniMax-Hailuo-02\",\r\n \"prompt\": \"A man picks up a book [Pedestal up], then reads [Static shot].\",\r\n \"duration\": 6,\r\n \"resolution\": \"1080P\"\r\n}\r\n",
"name": "示例 1"
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "scM7JsWA39",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "sk-"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {
"type": "inherit",
"inherit": {}
},
"responses": [
{
"id": 170293869,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {
"task_id": {
"type": "string"
},
"base_resp": {
"type": "object",
"properties": {
"status_code": {
"type": "integer"
},
"status_msg": {
"type": "string"
}
},
"required": [
"status_code",
"status_msg"
],
"x-apifox-orders": [
"status_code",
"status_msg"
]
}
},
"required": [
"task_id",
"base_resp"
],
"x-apifox-orders": [
"task_id",
"base_resp"
]
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 170293869,
"data": "{\r\n \"task_id\": \"106916112212032\",\r\n \"base_resp\": {\r\n \"status_code\": 0,\r\n \"status_msg\": \"success\"\r\n }\r\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fd25e-4bea-77ac-9aa4-67ee6f5cf230"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436087,
"ordering": 12,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {}
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-05T14:40:23.000Z",
"updatedAt": "2026-08-06T12:15:55.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}