🎁 邀请好友,双向解锁 Coding Plan 福利 !即刻参与 ➔
cURL
curl --request POST \ --url https://api.minimaxi.com/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" } }
使用本接口,在 MiniMax 开放平台,上传所需文件。
HTTP: Bearer Auth
请求体的媒介类型 multipart/form-data
multipart/form-data
文件使用目的。取值及支持格式如下:
voice_clone
prompt_audio
t2a_async_input
"t2a_async_input"
需要上传的文件。填写文件的路径地址
显示 子属性
此页面对您有帮助吗?