API 参考
取得持久视频报价
/v1/video-quotesretention=persistent,按目录支持模式与托管帧报价;开关关闭路由直接 404。报价到期或价格变化须重新确认。
鉴权与权限
使用当前 GloopAPI Key。模型、功能与权限以当前 Key 的目录及接口说明为准。
Authorization: Bearer $GLOOP_API_KEY鉴权方案: BearerAuth
请求
请求体 · application/json
- 类型
- object
- 必填字段
modelprompt- 额外属性
- false
请求体必填
modestring选填persistent 必填。
- 枚举
["text_to_video","image_to_video"]
retentionstring选填persistent 使用持久工作区;省略为普通任务。
quote_idstring选填persistent 新请求须先确认 video-quotes 返回的有效报价。
start_frameobject选填persistent 图生视频必填,同 Key 的托管文件;文生视频禁止。
start_frame 子字段(1)
file_idstring必填同账户同 Key 的托管文件公开 ID。
end_frameobject选填persistent 可选尾帧,能力必须支持。
end_frame 子字段(1)
file_idstring必填同账户同 Key 的托管文件公开 ID。
webhook_endpoint_idstring选填普通任务可引用控制台已配置的接收端;persistent 禁止。
modelstring必填来自当前 Key 目录的公开模型 ID,历史模型是否可用以当前目录为准。
promptstring必填生成提示词。
- 最短长度
1- 最长长度
2500
durationinteger选填模型相关秒数,使用 video-models mode.presets 的完整组合,不能作笛卡尔积。Wan Turbo 不支持此字段;无统一默认。
image_urlstring选填HTTPS首帧或PNG/JPEG Data URL;与input_reference互斥。
end_image_urlstring选填仅普通任务模型相关 HTTPS 尾帧;persistent 禁止。
resolutionstring选填模型 preset 中的分辨率值。
aspect_ratiostring选填模型 preset 中的宽高比值。
generate_audioboolean选填模型相关,使用模式的音频策略和 presets;禁止假定所有模型生成音频。
secondsunion选填正整数秒数,与duration须一致,并符合模型预设。
oneOf 分支 1
类型: string
匹配规则:
"^[1-9][0-9]*$"oneOf 分支 2
类型: integer
最小值:
1sizestring选填精确尺寸须符合模型预设;与 resolution/aspect_ratio 冲突则拒绝。
- 枚举
["1280x720","720x1280","720x720","1920x1080","1080x1920","1080x1080"]
input_referenceobject选填file_id与image_url只选一个;内部报价,不可混传其他首帧、retention或quote_id。
- 额外属性
false
fpsinteger选填可选精确帧率约束;仅解析到 Seedance 2.0 text-to-video/image-to-video 执行路由时支持 24,其他模型拒绝,不能静默忽略。
- 枚举
[24]
响应与错误
HTTP 200
取得持久视频报价成功
application/json
- 类型
- object
- 必填字段
idexpires_atrequest_hashpricing_kindcurrencyreserved_quotareserved_amountestimated_final_amountsettlement_note
idstring必填该对象的公开标识符;用于对应详情路径。
expires_atinteger必填Unix 秒有效期,0 表示不按固定时间到期。
request_hashstring必填规范化请求摘要,报价与创建绑定,不是幂等请求键。
pricing_kindstring必填该报价实际使用的计价方式。
currencystring必填报价/账务币种。
reserved_quotainteger必填以平台 quota 单位表示的预留额度,不是美元数。
reserved_amountstring必填报价币种中的最大预留金额字符串。
预估最终金额字符串;null 表示生成前无法确定。
settlement_notestring必填实际计量与结算说明。
以 maximum_currency 表示的真实最高钱包费用;仅可证明上限的冻结价格提供,使用量估算省略。
maximum_currencystring选填已认证 maximum_amount 的币种,与 reserved_amount 的参考币种分开。
- 枚举
["USD"]
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
幂等/报价冲突、对象未准备或仍被引用。
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选填
接口说明
这些参数仅为完整预设的说明值。请从当前 Key 的 video-models 目录为所选 model/mode 复制整个 preset(duration、resolution、aspect_ratio、generate_audio),不要仅替换模型或拼接预设。