API 参考
Recover original speech request
/v1/audio-run-requests/{request_id}Versioned public durable speech extension using an ordinary API Key. Input follows the non-streaming OpenAI speech subset. A signed speech cost quote binds identity, exact original input and immutable character pricing. Full maximum is reserved before dispatch. One user/Key/request_id owns one dispatch; retries return the original record and changed input conflicts. Query the original request after uncertainty; never replay a generation to recover. Inline audio is exposed only after authoritative settlement, retained for seven days in the durable record and never automatically downloaded or copied to object storage. Deleted or expired content stays succeeded with result_deleted=true; billing and identity remain.
鉴权与权限
使用当前 GloopAPI Key。模型、功能与权限以当前 Key 的目录及接口说明为准。
Authorization: Bearer $GLOOP_API_KEY鉴权方案: BearerAuth
请求
路径参数
request_idstring必填
响应与错误
HTTP 200
Authoritative current execution or quote. Unknown retains its hold.
application/json
- 类型
- object
- 必填字段
idrequest_idmodelstateversioncreated_atexpires_atresult_deleted
idstring必填request_idstring必填modelstring必填statestring必填- 枚举
["pending","unknown","succeeded","failed"]
versioninteger必填- 枚举
[1]
created_atinteger必填expires_atinteger必填Content retention ends after seven days. Accounting and original request identity remain.
result_deletedboolean必填billingobject选填billing 子字段(5)
statusstring必填- 枚举
["settled","refunded"]
currencystring必填- 枚举
["USD"]
final_amountstring选填权威最终钱包实收;缺失不代表零费用。
pricing_versionstring选填quote_idstring选填
outputobject选填output 子字段(2)
datastring必填Base64 inline audio, limited to 16 MiB decoded.
- 格式
"byte"
content_typestring必填
HTTP 202
Authoritative current execution or quote. Unknown retains its hold.
application/json
- 类型
- object
- 必填字段
idrequest_idmodelstateversioncreated_atexpires_atresult_deleted
idstring必填request_idstring必填modelstring必填statestring必填- 枚举
["pending","unknown","succeeded","failed"]
versioninteger必填- 枚举
[1]
created_atinteger必填expires_atinteger必填Content retention ends after seven days. Accounting and original request identity remain.
result_deletedboolean必填billingobject选填billing 子字段(5)
statusstring必填- 枚举
["settled","refunded"]
currencystring必填- 枚举
["USD"]
final_amountstring选填权威最终钱包实收;缺失不代表零费用。
pricing_versionstring选填quote_idstring选填
outputobject选填output 子字段(2)
datastring必填Base64 inline audio, limited to 16 MiB decoded.
- 格式
"byte"
content_typestring必填
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选填