Skip to main content

1. Find your request

  1. Open Usage Logs.
  2. Select the request date and click Search.
  3. Filter by model or group if there are too many records.
  4. Find the request, then click its cost or details entry.
Usage Logs A new record may take a moment to appear. Refresh later; do not repeat a request just to check the logs.

Find usage for a key

  1. Note the key’s name in API Keys, such as Office computer. Do not copy the secret.
  2. In Usage Logs, select the time range, click Expand and find Token Name. On mobile, use Filter.
  3. Enter the name and click Search to review matching models, times and charges.
  4. Export using section 3 if needed. Click Reset afterwards so old filters do not affect the next query.
Give keys distinct names. Records for keys with the same name may not be distinguishable by name alone. Do not enter the complete sk-... key in Token Name.

Find a request by ID

If an error includes a Request ID, enter it in Request ID under the expanded filters. Include the error time in the selected range and search. If nothing appears, send the ID and exact error to support rather than making another request to create a log. If the ID is explicitly labelled Upstream Request ID, use that field instead of the platform’s Request ID field. To find failures, select Error in the type filter and search, then restore All Types afterwards. No matching record does not prove that no request or charge occurred; ask support to check.

2. Check these fields

If a subscription or wallet icon appears beside the charge, it identifies the source of the deduction. A subscription deduction does not mean the wallet was also charged. Hover over the icon for its label. Check the record’s details for cache or tool-call charges; input and output usage alone may not explain the total. A $0.10 log charge does not always mean CNY 0.10 paid. See multipliers and discounts.

3. Download usage records

  1. Filter Usage Logs by model or group as needed.
  2. Click Export and choose the start and end times.
  3. Click Export again to download a CSV file, which you can open in Excel.
Export dialog: select a time range. No export was executed for this screenshot. The page’s other filters also apply. Run one export at a time and wait for it to finish before starting another. The current maximum time span for one search or export is 365 days; follow the page’s limit if it changes. This is not a guarantee that logs are retained for 365 days. Split longer ranges into monthly searches or exports. Exported files may contain IP addresses and Request IDs. Check and redact private information before sharing.

4. Ask about a charge

If usage looks suspicious, first disable the relevant key in API Keys, then check the records. If exposed, create a new key and replace it in your apps; do not keep using the old key. For errors, incomplete replies or suspected duplicate charges, send support:
  • Time, model and group.
  • The error text and whether a complete reply arrived.
  • A screenshot of the log, plus its Request ID if shown in details.
Do not send your complete API key. Keep the records and avoid repeated retries that create more requests.