Skip to content

POST /api/models/prices/sync/preview

请求

内容
方法POST
路径/api/models/prices/sync/preview
鉴权管理员

Header 参数

参数位置类型必填说明
AuthorizationHeaderstringBearer <jwt>
Content-TypeHeaderstringapplication/json

Path 参数

无。

Query 参数

无。

Body 参数

参数位置类型必填说明
channel_idBodynumber渠道 ID。
formatBodystring同步格式。
pathBodystring自定义同步路径。

返回值

价格预览结果。

返回字段

字段类型说明
channel_idnumber来源上级渠道 ID。
channel_namestring来源上级渠道名称。
sourcestring同步来源。
modelsarray可同步模型数组。
models[].model_namestring模型名。
models[].quota_typenumber计费类型。
models[].input_pricestring/number输入价格。
models[].output_pricestring/number输出价格。
models[].cached_input_pricestring/number缓存读取价格。
models[].providerstring供应商 ID。
models[].provider_namestring供应商显示名。
models[].provider_icon_urlstring供应商图标。
models[].existsboolean平台是否已有该模型。
models[].*_price_tiersarray各类分段价格。

错误

状态码说明
400参数不合法。
401未登录或登录失效。
403无权限。
404资源不存在。
500服务端错误。

基于 MIT 协议发布(社区版)