返回模型调用 API 参考
POST/minimax/v1/files

上传示例音频

API Key multipart/form-data

请求示例

curl -X POST https://top.qingyuntop.ai/minimax/v1/files \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}"

请求参数

参数位置类型必填说明示例
purpose请求体stringprompt_audioprompt_audio
file请求体file选择音频文件(mp3/m4a/wav)-

返回响应 (200)

参数位置类型必填说明示例
file响应 JSONobject--
file.file_id响应 JSONstring--
file.bytes响应 JSONinteger--
file.created_at响应 JSONinteger--
file.filename响应 JSONstring--
file.purpose响应 JSONstring--
base_resp响应 JSONobject--
base_resp.status_code响应 JSONinteger--
base_resp.status_msg响应 JSONstring--

响应示例

{
  "file": {
    "file_id": "${file_id}",
    "bytes": 5896337,
    "created_at": 1700469398,
    "filename": "复刻音频",
    "purpose": "voice_clone"
  },
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}
来源原始接口定义(用于追溯)

以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。

{
  "id": 497673407,
  "name": "上传示例音频",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/minimax/v1/files",
  "tags": [],
  "status": -2,
  "requestBody": {
    "type": "multipart/form-data",
    "parameters": [
      {
        "id": "NjeZK8eILK",
        "name": "purpose",
        "required": true,
        "enable": true,
        "description": "prompt_audio",
        "type": "string",
        "sampleValue": "prompt_audio"
      },
      {
        "id": "L8VbM5HbG1",
        "name": "file",
        "required": true,
        "enable": true,
        "description": "选择音频文件(mp3/m4a/wav)",
        "type": "file",
        "schema": {
          "format": "binary",
          "type": "string"
        },
        "sampleValue": ""
      }
    ],
    "examples": [],
    "mediaType": "",
    "oasExtensions": "",
    "required": true,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": []
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 167195660,
      "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"
              }
            },
            "required": [
              "file_id",
              "bytes",
              "created_at",
              "filename",
              "purpose"
            ],
            "x-apifox-orders": [
              "file_id",
              "bytes",
              "created_at",
              "filename",
              "purpose"
            ]
          },
          "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": []
    }
  ],
  "responseExamples": [
    {
      "name": "成功示例",
      "responseId": 167195660,
      "data": "{\r\n  \"file\": {\r\n    \"file_id\": \"${file_id}\",\r\n    \"bytes\": 5896337,\r\n    \"created_at\": 1700469398,\r\n    \"filename\": \"复刻音频\",\r\n    \"purpose\": \"voice_clone\"\r\n  },\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-6966b8965c99"
    }
  ],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92436087,
  "ordering": 24,
  "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": ""
}