Usage
Usage statistics are calculated by the gateway based on request logs, model prices, token counts, cache hits, group rules, and subscription or balance policies. When costs appear abnormal, check the request logs first rather than relying solely on the client prompt.
View Usage
View logs, dashboards, token usage, and billing records in the console. When troubleshooting, focus on the request time, token name, model, channel, input tokens, output tokens, status, and errors.
Cost Control
- Assign high-frequency clients separate tokens and quotas.
- Choose more economical models based on the use case.
- Reduce long histories, repeated prompts, and ineffective retries.
- Run batch tasks at different times to avoid affecting online services.
Recommended Log Fields
At a minimum, the application should record the request time, model, input and output tokens, response status, duration, Request ID, and retry count. Do not record complete API tokens, passwords, verification codes, or unredacted private information.
