跳转到主要内容
POST
Validate input and estimate credits / 校验与估价
当前为 API 预览。生成接口尚未接入供应商,成功认证后仍可能返回 503;不会创建任务或扣积分。

为完整参数报价

服务端先补齐默认值、过滤不兼容渠道,再应用各渠道计价公式。时长、分辨率、音频、质量和 output_count 都可能改变总价。 最高冻结覆盖每个结果项的一条成功渠道,不累加全部可能的失败尝试。报价说明受理上界,不保证预览模型可以真实运行。

理解费用上限

channel_quotes[].credits 是整批使用该渠道的总价,不是单项价格。此端点返回未冻结的预览估价,不签发 quote_id,也不是已锁定的购买要约。

设置 max_credits

max_credits 是整次请求的费用上限。如果服务端最高冻结超过它,必须在生成前拒绝整批;不能静默减少 output_count,也不在各项之间动态分配不足预算。

请求体

application/json
model
string
必填
Minimum string length: 1
示例:

"prism-image-2"

input
object
必填

Current preview input. Supported fields vary by modality and exact catalog model. No live provider mapping is implied.

output_count
integer
默认值:1

Target result count. Images/videos accept 1–4; music and LLM must remain 1. Not a concurrency guarantee. / 目标结果数,非同时并发保证。

必填范围: 1 <= x <= 4
fallback
boolean
默认值:false

Authorizes a higher-priced compatible official fallback after an eligible confirmed failure. Live execution is disabled in this build.

max_credits
integer

Whole-request reservation cap. Reject the entire request when max_reserved_credits exceeds it.

必填范围: x >= 0

响应

Preview quote

is_preview
any
必填
model
string
必填
input
object
必填

Current preview input. Supported fields vary by modality and exact catalog model. No live provider mapping is implied.

output_count
integer
必填
必填范围: 1 <= x <= 4
estimated_credits
number
必填

Credits, not USD. / 积分,非美元。

必填范围: x >= 0
max_reserved_credits
number
必填

Credits, not USD. / 积分,非美元。

必填范围: x >= 0
channel_quotes
object[]
必填
price_version
string
必填
live_available
any
必填