跳转到主要内容
POST
/
v1
/
files
/
delete
Delete File
curl --request POST \
  --url https://api.minimaxi.com/v1/files/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "file_id": "${file_id}",
  "purpose": "t2a_async_input"
}'
{
  "file_id": "${file_id}",
  "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,用于验证账户信息,可在 账户管理>接口密钥 中查看。

Headers

Content-Type
enum<string>
default:multipart/form-datan
required

请求体的媒介类型 multipart/form-data

Available options:
multipart/form-data

Body

application/json
file_id
integer
required

文件的唯一标识符

purpose
enum<string>
required

文件使用目的。取值及支持格式如下:

  1. voice_clone
  2. prompt_audio
  3. t2a_async
  4. t2a_async_input
  5. video_generation
Available options:
voice_clone,
prompt_audio,
t2a_async,
t2a_async_input,
video_generation

Response

200 - application/json
file_id
integer

The unique identifier for the file.

base_resp
object
I