API 參考
取得語音克隆結果
GET
/v1/audio-clone/tasks/{task_id}/result背景執行已完成且結算後查詢供應商結果,不自動轉存;失敗時傳回 422,尚未準備好或未知時傳回 409。
鑑權與許可權
使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。
Authorization: Bearer $GLOOP_API_KEY鑑權方案: BearerAuth
請求
路徑引數
task_idstring必填同 Key 建立的任務公開 ID。
響應與錯誤
HTTP 200
請求成功。
application/json
- 型別
- object
- 必填欄位
idstatusresultusage
idstring必填statusstring必填- 列舉
["succeeded"]
resultobject必填result 子欄位(6)
file_idstring選填同賬戶同 Key 的託管檔案公開 ID。
storage_statusstring選填歷史檔案封存狀態;新生成的結果不自動轉存,直接使用供應商結果。
audio_urlstring必填生成音訊訪問地址,託管時由儲存層提供簽名 URL。
content_typestring選填結果 MIME 型別。
file_namestring選填公開下載檔名。
file_sizeinteger選填結果檔案位元組數。
usageobject必填usage 子欄位(1)
charactersinteger必填- 最小值
0
HTTP 401
Key 缺失、無效、過期或已撤銷。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 403
IP、賬戶、模型或工具許可權不足。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 404
物件或能力不可用。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(3)
HTTP 409
請求衝突、未準備或提交未知,先查詢原記錄,禁止盲重發。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(3)
HTTP 422
生成失敗。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(3)
HTTP 429
請求/佇列限流。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 500
鑑權或資料儲存內部失敗。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 502
服務響應異常。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(3)
HTTP 503
服務、儲存或定價暫不可用。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(3)