跳转到主要内容
GET
/
v1
/
files
/
list
List Files
curl --request GET \
  --url https://api.minimaxi.com/v1/files/list \
  --header 'Authorization: Bearer <token>'
{
  "files": [
    {
      "file_id": "${file_id}",
      "bytes": 5896337,
      "created_at": 1699964873,
      "filename": "297990555456011.tar",
      "purpose": "t2a_async_input"
    },
    {
      "file_id": "${file_id}",
      "bytes": 5896337,
      "created_at": 1700469398,
      "filename": "297990555456911.tar",
      "purpose": "t2a_async_input"
    }
  ],
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}

Authorizations

Authorization
string
header
required

HTTP: Bearer Auth

  • Security Scheme Type: http
  • HTTP Authorization Scheme: Bearer API_key,用于验证账户信息,可在 账户管理>接口密钥 中查看。

Query Parameters

purpose
enum<string>
required

列出文件分类。取值及支持格式如下:

  1. voice_clone: 快速复刻原始文件
  2. prompt_audio: 音色复刻的示例音频
  3. t2a_async: 异步长文本语音生成合成中音频
Available options:
voice_clone,
prompt_audio,
t2a_async_input
Example:

"t2a_async_input"

Response

200 - application/json
files
object[]

List of files

base_resp
object
I