OpenAPI 接口规范

生成前价格预估

按模型、尺寸、时长或参考素材数批量试算权威人民币预估价。

POST/v1/pricing/estimate

在请求头中携带 Authorization: Bearer YOUR_BEEFTV_API_KEY。获取 API Key →

请求示例

替换为你的 API Key、真实任务编号与可访问的素材链接。

curl -X POST "https://beeftv.cn/v1/pricing/estimate" \  -H "Authorization: Bearer YOUR_BEEFTV_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "targets": [      {        "model": "dola-seedream-5-5-261028",        "kind": "image",        "size": "1K",        "count": 1      },      {        "model": "dola-seedream-5-5-261028",        "kind": "image",        "size": "2K",        "count": 1,        "referenceImages": 2      },      {        "model": "dola-seedream-5-5-261028",        "kind": "image",        "size": "2K",        "layers": true,        "count": 4,        "referenceImages": 1      },      {        "model": "magi-2",        "kind": "video",        "resolution": "1080p",        "seconds": 5      },      {        "model": "minimax-speech-2.8-turbo",        "kind": "audio",        "characters": 100      }    ]  }'

响应示例

以下为脱敏后的真实返回结构,点击切换状态码。

返回逐项人民币预估与汇总。

{  "items": [    {      "amount": 0.0136,      "label": "预计 ¥0.0136",      "basis": "1K ¥0.0136/张 × 1 张",      "text": "预计 ¥0.0136(1K ¥0.0136/张 × 1 张)"    },    {      "amount": 0.0346,      "label": "预计 ¥0.0346",      "basis": "2K ¥0.0237/张 × 1 张 + 参考图 2 张 × ¥0.0054",      "text": "预计 ¥0.0346(2K ¥0.0237/张 × 1 张 + 参考图 2 张 × ¥0.0054)"    },    {      "amount": null,      "label": "每层 ¥0.0237",      "variable": true,      "basis": "图层拆分按实际拆出的图层数计费,每层 ¥0.0237 + 参考图 1 张 × ¥0.0054",      "text": "图层拆分按实际拆出的图层数计费,每层 ¥0.0237 + 参考图 1 张 × ¥0.0054"    },    {      "amount": 3,      "label": "预计 ¥3",      "basis": "1080p ¥0.6/秒 × 5 秒",      "text": "预计 ¥3(1080p ¥0.6/秒 × 5 秒)"    },    {      "amount": 0.02,      "approx": true,      "label": "约 ¥0.02",      "basis": "100 字 × ¥200/百万字",      "text": "约 ¥0.02(100 字 × ¥200/百万字)"    }  ],  "summary": {    "amount": 3.0682,    "priced": 4,    "unknown": 1,    "approx": true,    "text": "预计费用:已知部分约 ¥3.07,另有 1 项暂无价格"  }}

请求体

application/json

参数说明
targetsarray必填

待试算的目标列表(1–2000 项)。

最少项数:1

最多项数:2000

展开子字段

待试算的目标列表(1–2000 项)。

数组元素1 <= items <= 2000
[index: integer]?
响应字段、响应头与状态码

响应体

application/json

application/json

application/json

application/json

application/json

application/json