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选填