图生视频

POST /minimax/v1/video_generation

MethodPOST
Path/minimax/v1/video_generation
Typehttp
Status-2
Module2102810
Folder62584383

说明

概览

MethodPOST
Path/minimax/v1/video_generation
Typehttp
Status-2
Module2102810
Folder62584383

参数

{
  "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-2.3\",\n    \"prompt\": \"一只小猪在高速公路上快乐的奔跑\",\n    \"duration\": 10,\n    \"first_frame_image\": \"https://wx4.sinaimg.cn/mw690/8545bf24ly1hq626p2k5aj20j60j7t9t.jpg\",\n    \"resolution\": \"768P\",\n    \"prompt_optimizer \": true\n}",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 806165638,
    "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": 806165638,
    "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": 723491866
  }
]