API 參考
Quote explicit voice cloning
/v1/audio-clone/quotesExplicit voice cloning is a distinct capability. Input text and reference transcript remain unchanged. reference_audio.file_id uses an audio input owned by the same user and Key; reference_audio_url accepts an HTTPS source instead. Quote and execution bind the exact reference identity, original text, current pricing and expiry. No quote generates, reserves or charges. Supply quote_token as quote_id on the existing create task endpoint with an Idempotency-Key. The full maximum is reserved; a higher final amount stays unknown and held, never capped or subsidized.
鑑權與許可權
使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。
Authorization: Bearer $GLOOP_API_KEY鑑權方案: BearerAuth
請求
請求體 · application/json
- 型別
- object
- 必填欄位
textreference_text
請求體必填
modelstring選填當前 Key 目錄中的公開模型 ID。
- 預設值
"audio-clone-v1"- 列舉
["audio-clone-v1"]
textstring必填合成文字。
- 最短長度
1- 最長長度
5000
reference_audio_urlstring選填公開 HTTPS 參考音訊 URL,禁止使用者資訊並受 SSRF 校驗。
reference_textstring必填參考音訊對應文字。
- 最短長度
1- 最長長度
5000
是否移除靜音,省略為 true。
- 預設值
true
quote_idstring選填Optional signed quote_token from the public clone quote. A quoted request reserves the full maximum and refuses over-bound settlement.
reference_audioobject選填- 額外屬性
false
reference_audio 子欄位(1)
file_idstring必填An audio input file owned by the same user and API Key.
@oneOf:0unknown選填@oneOf:1unknown選填
響應與錯誤
HTTP 200
Authoritative current execution or quote. Unknown retains its hold.
application/json
- 型別
- object
- 必填欄位
versionidquote_tokenmodelcurrencymaximum_amountinput_fingerprintpricing_versionexpires_at
versioninteger必填- 列舉
[1]
idstring必填quote_tokenstring必填绑定鉴权身份、完整输入、模型、协议、冻结价格与到期时间的接受令牌。
modelstring必填currencystring必填- 列舉
["USD"]
maximum_amountstring必填从冻结价格及所有有界缓存/阶梯分支计算的真实最高 USD 客户费用。
input_fingerprintstring必填pricing_versionstring必填expires_atinteger必填
HTTP 400
輸入無效。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
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 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 409
請求 ID 內容衝突,或在途執行不能刪除。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
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 503
暫不可用;已提交結果不確定時查詢原請求。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填