Usage Tracking
Track the billing detail for every request together with quota changes and task status to reconcile cost and identify unusual consumption.
LAYSO AI billing rules
One API key can access models across the platform. Successful requests are billed at the current price of the model used and include a billing detail record. Failed tasks are not charged.
What to monitor
| Check | Purpose |
|---|---|
| Request billing detail | Review the model, billing unit, usage, and actual charge |
| Model price | Confirm billing uses the current price of the model called |
| Task status | Separate successful and failed tasks; failed tasks are not charged |
| Remaining quota | Confirm that the account can continue serving requests |
| Error codes | Separate authentication, permission, rate-limit, and server failures |
Investigation flow
- Find the request in Task Management and confirm its status
- For a successful request, review the billing detail, model price, usage, and actual charge
- For a failed request, use the error code to investigate; failed tasks are not charged
- Compare quota changes for unexpected consumption
- Configure timeouts, retries, and provider fallback for production
Related guides: Quota and Top-up, Task Management, and Error Handling.
