API 參考

Quote explicit voice cloning

POST/v1/audio-clone/quotes

Explicit 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
  • 公開 HTTPS 參考音訊 URL,禁止使用者資訊並受 SSRF 校驗。

  • reference_textstring必填

    參考音訊對應文字。

    最短長度
    1
    最長長度
    5000
  • remove_silenceboolean選填允許 null

    是否移除靜音,省略為 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

HTTP 400

輸入無效。

application/json

型別
object
必填欄位
error

HTTP 401

Key 缺失、無效、過期或已撤銷。

application/json

型別
object
必填欄位
error

HTTP 403

IP、賬戶、模型或工具許可權不足。

application/json

型別
object
必填欄位
error

HTTP 404

未找到本人執行;不能據此判斷未知生成沒有計費。

application/json

型別
object
必填欄位
error

HTTP 409

請求 ID 內容衝突,或在途執行不能刪除。

application/json

型別
object
必填欄位
error

HTTP 429

請求/佇列限流。

application/json

型別
object
必填欄位
error

HTTP 500

鑑權或資料儲存內部失敗。

application/json

型別
object
必填欄位
error

HTTP 503

暫不可用;已提交結果不確定時查詢原請求。

application/json

型別
object
必填欄位
error