🎉 MiniMax-M2.7: Peak Performance. Ultimate Value. Master the Complex. ➔ Try Now.





curl --request POST \
--url https://api.minimax.io/v1/files/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form purpose=t2a_async_input \
--form file='@example-file'{
"file": {
"file_id": "${file_id}",
"bytes": 5896337,
"created_at": 1700469398,
"filename": "MiniMax Open Platform-Test bot.docx",
"purpose": "t2a_async_input"
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}Upload a file on the MiniMax API Platform.
curl --request POST \
--url https://api.minimax.io/v1/files/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form purpose=t2a_async_input \
--form file='@example-file'{
"file": {
"file_id": "${file_id}",
"bytes": 5896337,
"created_at": 1700469398,
"filename": "MiniMax Open Platform-Test bot.docx",
"purpose": "t2a_async_input"
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}HTTP: Bearer Auth
Bearer API_key, can be found in Account Management>API Keys.Indicates the request is a multipart file upload.
multipart/form-data The purpose of the file. The values and supported formats are as follows:
voice_clone, prompt_audio, t2a_async_input "t2a_async_input"
The file to be uploaded.