加载中
加载中
请求从预付余额中扣费:无需订阅,余额不会过期,每次请求按实际成本计费。
max_tokens 在您的余额上预留估算费用(若未设置则输出为 4096 个 tokens)。输入图片大约相当于 2,000 个 tokens。insufficient_funds,请求不会执行。| 方法 | 返回内容 |
|---|---|
| GET /v1/billing/balance | balance_rub, reserved_rub, spendable_rub |
| GET /v1/billing/usage | 最近的请求:model、tokens、amount、status、error_code。文本不被存储 |
| GET /v1/billing/transactions | 余额交易:充值与扣费 |
curl https://llmproxy.org/v1/billing/balance -H "Authorization: Bearer $LLMPROXY_API_KEY"/billing/usage 参数:limit(最多 200)、model、key=this(仅当前 key)、since 与 until(ISO)、status=error、before(最后一行的 uuid —— 用于获取下一页,即更旧的一页;参见 has_more)。使用 group=model 可获得按模型汇总的 days(默认 30 天)或按 since/until 的汇总。/billing/transactions 接受 limit(最多 200)和 before。