统一模型接入与用量管理 立即注册
蓝天
原站参考文档

以下为胜算云公开资料。文中的原站账号、地址、定价和专有服务不属于蓝天;蓝天可用模型以当前 sub2api 配置为准。接入蓝天请先查看 快速开始。

查看原文

GET Get official template historical task model fee range

GET /loom/v1/officialTemplates/{officialTemplate}/modelCostRange
所属分组:Official Templates · 官方模板
Reads cached historical per-task model fee reference bounds for the selected workflow version. minModelFee is P5 and maxModelFee is P95. Samples require fully successful runs, complete ordinary and Loop model bills, positive task cost, and the historical window/minimum sample policy. Version and matching workflow definition history may be reused. No request-time bill scan. Missing cached samples returns no_data and null amounts. Actual usage may fall outside this interval; missing reference data must not block execution confirmation.

BASE URLhttps://router.shengsuanyun.com/api
认证方式Authorization: Bearer YOUR_API_KEY

端点列表

← 上一页
查询官方模板列表
下一页 →
查询官方模板 schema

接口参考

以下为原文协议定义与示例,原站地址不代表蓝天已开通对应能力。蓝天接入地址和模型以本地配置为准。

蓝天 API 密钥
GET/loom/v1/officialTemplates/{officialTemplate}/modelCostRangeGet official template historical task model fee range

Reads cached historical per-task model fee reference bounds for the selected workflow version. minModelFee is P5 and maxModelFee is P95. Samples require fully successful runs, complete ordinary and Loop model bills, positive task cost, and the historical window/minimum sample policy. Version and matching workflow definition history may be reused. No request-time bill scan. Missing cached samples returns no_data and null amounts. Actual usage may fall outside this interval; missing reference data must not block execution confirmation.

请求参数

参数位置 / 类型说明
officialTemplate必填path / anyOfficial template slug
versionquery / anyTemplate version, for example v4; defaults to the current published version

请求示例

参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。

curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/officialTemplates/{officialTemplate}/modelCostRange' \
  -H 'Authorization: Bearer YOUR_API_KEY'

响应

200 OK

application/json

字段类型说明
availability必填string

可选值:"available" · "no_data"

maxModelFee必填any历史参考区间上界,取 P95。
展开结构

历史参考区间上界,取 P95。

any

allOf · 1
字段类型说明
amount必填string
currency必填string
minModelFee必填any历史参考区间下界,取 P5。
展开结构

历史参考区间下界,取 P5。

any

allOf · 1
字段类型说明
amount必填string
currency必填string
version必填string
{
  "availability": "available",
  "maxModelFee": {
    "amount": "1.7027920",
    "currency": "CNY"
  },
  "minModelFee": {
    "amount": "1.7027920",
    "currency": "CNY"
  },
  "version": "string"
}
400 Bad Request

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
404 Not Found

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
500 Internal Server Error

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
502 Bad Gateway

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
503 Service Unavailable

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}