POST /v1/admin/models/pricing/estimate
Changed onEstimateModelPricing 计费表达式 dry-run: 前端 Token 估算器实时预览。
语义: 用与生产结算完全一致的 billingexpr 引擎, 按传入 token 参数跑一次 表达式, 返回 cost + matched_tier。不落任何数据、不触发缓存, 纯计算。
权限: 与 UpdateModel 同门槛 (models:update), 避免非管理员探测定价规则。
请求侧不校验表达式一定要属于某个已存在模型——同一表达式可以在多个模型 之间复制粘贴调试。表达式不合法/负数返回 400。
Request
- Base URLhttps://api.apiqik.online (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info