Skip to content

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 ​

CheckPurpose
Request billing detailReview the model, billing unit, usage, and actual charge
Model priceConfirm billing uses the current price of the model called
Task statusSeparate successful and failed tasks; failed tasks are not charged
Remaining quotaConfirm that the account can continue serving requests
Error codesSeparate authentication, permission, rate-limit, and server failures

Investigation flow ​

  1. Find the request in Task Management and confirm its status
  2. For a successful request, review the billing detail, model price, usage, and actual charge
  3. For a failed request, use the error code to investigate; failed tasks are not charged
  4. Compare quota changes for unexpected consumption
  5. Configure timeouts, retries, and provider fallback for production

Related guides: Quota and Top-up, Task Management, and Error Handling.

LAYSO AI API 文档