检索(用于视频下载,异步音频下载)

GET /minimax/v1/files/retrieve

MethodGET
Path/minimax/v1/files/retrieve
Typehttp
Status-2
Module2102810
Folder78007621

概览

MethodGET
Path/minimax/v1/files/retrieve
Typehttp
Status-2
Module2102810
Folder78007621

参数

{
  "query": [
    {
      "required": false,
      "description": "文件的唯一标识符。通过查询视频生成任务状态接口成功后返回的 file_id 获得",
      "type": "string",
      "id": "YS6K2lMmza",
      "enable": true,
      "name": "file_id"
    }
  ]
}

请求体

{
  "type": "none",
  "parameters": [],
  "required": true,
  "mediaType": "",
  "examples": [],
  "oasExtensions": ""
}

响应

[
  {
    "id": 102453933,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "file": {
          "type": "object",
          "properties": {
            "file_id": {
              "type": "string"
            },
            "bytes": {
              "type": "integer"
            },
            "created_at": {
              "type": "integer"
            },
            "filename": {
              "type": "string"
            },
            "purpose": {
              "type": "string"
            },
            "download_url": {
              "type": "string"
            }
          },
          "required": [
            "file_id",
            "bytes",
            "created_at",
            "filename",
            "purpose",
            "download_url"
          ],
          "x-apifox-orders": [
            "file_id",
            "bytes",
            "created_at",
            "filename",
            "purpose",
            "download_url"
          ]
        },
        "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": [
        "file",
        "base_resp"
      ],
      "x-apifox-orders": [
        "file",
        "base_resp"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": []
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 102453933,
    "data": "{\r\n  \"file\": {\r\n    \"file_id\": \"${file_id}\",\r\n    \"bytes\": 0,\r\n    \"created_at\": 1700469398,\r\n    \"filename\": \"output_aigc.mp4\",\r\n    \"purpose\": \"video_generation\",\r\n    \"download_url\": \"www.downloadurl.com\"\r\n  },\r\n  \"base_resp\": {\r\n    \"status_code\": 0,\r\n    \"status_msg\": \"success\"\r\n  }\r\n}",
    "id": "019c27b4-81dc-75dc-8892-f2279cc241b5"
  }
]