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