列出複製音訊
列出你尚未使用、仍然有效的上傳檔案;免費。
GET
/v1/files/list只回傳你本人上傳、尚未被複製用掉且未過期(上傳後 24 小時內)的檔案,按 purpose 過濾。已上傳的音訊不支援下載。
請求標頭
Authorization:必填string
Bearer sk-…:主控台「API 金鑰」中建立的金鑰,所屬分組須包含請求的模型
查詢參數
purpose:必填string
要列出的檔案用途
可選值voice_cloneprompt_audio
回傳
200檔案列表
files:選填array of object
檔案
file_id:選填integer
檔案 ID,複製時傳給 file_id 或 clone_prompt.prompt_audio
bytes:選填integer
檔案位元組數
created_at:選填integer
上傳時間,Unix 秒
filename:選填string
檔名
purpose:選填string
voice_clone 或 prompt_audio
可選值voice_cloneprompt_audio
base_resp:選填object
成功時為 {"status_code": 0, "status_msg": "success"};錯誤不走這裡,而是非 200 狀態碼加 error 物件
status_code:選填integer
成功為 0
status_msg:選填string
成功為 success
錯誤
400
purpose must be "voice_clone" or "prompt_audio"401沒帶金鑰、金鑰無效或已過期(
missing_api_key / invalid_api_key / api_key_expired)503
file lookup is temporarily unavailable; please retry