Balance
Usage statistics are calculated by the gateway based on request logs, model pricing, token counts, cache hits, group rules, and subscription or balance policies. When you notice unusual charges, check the request logs first instead of relying only on the client prompt.
Fee-Related Concepts
| Concept | Description |
|---|---|
| Balance | The account's available quota, which may be obtained through top-ups, administrator allocation, or redemption codes |
| Model multiplier | The billing multiplier or unit price for different models |
| Group multiplier | Different user groups may use different pricing policies |
| Usage | The input, output, cached, and other token usage returned by the request or calculated by the platform |
Why Requests Fail Even When the Balance Is Sufficient
Balance is only one condition. Requests may also fail because the token is disabled, the model is unauthorized, the group does not match, the channel is unavailable, the upstream key has insufficient balance, or a rate limit has been triggered.
Troubleshooting Unusual Charges
- Record the time, model, token name, and Request ID of the anomalous request.
- Check the input tokens, output tokens, cache hits, and actual channel in the request logs.
- Compare them against the model's unit price, multipliers, subscription benefits, and group billing rules.
- If the usage in the logs differs from what the client displays, use the platform logs and billing rules as the basis, and contact an administrator for verification.
