POST Estimate my private template cost
POST /loom/v1/users/me/templates/{template}:estimate
所属分组:User Templates · 用户私有模板
Reads a caller-owned orchestration JSONL input and estimates cost without validating referenced resources, checking balance, or creating a run.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
POST/loom/v1/users/me/templates/{template}:estimateEstimate my private template cost
Reads a caller-owned orchestration JSONL input and estimates cost without validating referenced resources, checking balance, or creating a run.
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
template必填 | path / any | Private template ID |
请求体 · 必填
Estimate request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
inputFileId | string | |
versionId | string |
{
"inputFileId": "string",
"versionId": "string"
}请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X POST 'https://loomloom.shengsuanyun.com/loom/v1/users/me/templates/{template}:estimate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"inputFileId": "string",
"versionId": "string"
}'响应
200 OK
application/json
| 字段 | 类型 | 说明 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
balanceCheck | object | 展开结构
| ||||||||||||||||||||||||
estimatedTotalCost | object | 展开结构
| ||||||||||||||||||||||||
estimatedTotalCostT | integer | |||||||||||||||||||||||||
pricingRevision | string |
{
"balanceCheck": {
"availableBalance": 0,
"availableBalanceMoney": {
"amount": "1.7027920",
"currency": "CNY"
},
"currency": "string",
"isSufficient": false
},
"estimatedTotalCost": {
"amount": "1.7027920",
"currency": "CNY"
},
"estimatedTotalCostT": 0,
"pricingRevision": "string"
}