Usage Logs
View usage and charges for each model call, along with Quota changes from top-ups, refunds, and other transactions. Filter and export records, and verify charges in the billing details.
- In the sidebar, go to “General” → “Usage Logs”.
- View usage and charges for each model call, along with Quota changes from top-ups, refunds, and other transactions.
- Model calls deduct Quota from your account at the applicable price, using either your wallet balance or your subscription Quota. You can review the charges here.
Tip
- The page title is “General Logs”.
- Regular users can only view records for their own account. Administrators can switch between “All” and “Only Me” in the upper-right corner of the page. Only administrators can see this control. In “Only Me”, administrators see the same page content as regular users.
- The site determines the units used to display costs and usage.
- For records of sign-ins and account security actions, see Audit Logs. For the status of asynchronous tasks such as video, music, and image generation, see Task Logs.
- If “Usage Logs” is missing from the left sidebar, open “Profile”, go to “Personal Left Sidebar Settings”, enable “Console Area” and “Usage Logs”, and save.
Usage Logs Overview
- Usage Logs list

Use the list to filter logs by time range, model, Group, type, and other criteria, view usage statistics, and check the charges for each record.
Tip
If you cannot find a record for a call or the charge differs from what you expected, see the FAQ.
Fields
| Field | Definition | Requirements and Limits | Notes |
|---|---|---|---|
| Time | The time the record was created and its log type. | The system records this information automatically. The values are read-only, and the column is always visible. | The timestamp appears above the log type and is precise to the second. The log type appears below in colored text. See Log Types for what each type means. The entire row is light red for “Error” records and light blue for “Refund” records. |
| Channel (administrators only) | The Channel that handled the request. | Visible only in the “All” view. Populated only for “Consumption”, “Error”, and “Refund” records. | Shows “#Channel ID” and the Channel name. Click the ID to copy it. If the request was retried, click the branch icon to view the “Retry Chain”. If a session rule matched, an amber ✦ appears in the upper-right corner of the ID. Hover over it to see the rule name and Group, or click it to open the “Channel Affinity” dialog. |
| User (administrators only) | The user who initiated the request. | Visible only in the “All” view. | Click the username to open the “User Information” dialog and view the user's balance, used Quota, request count, Group, and other information. |
| Token | The name of the API key used for the call. | Populated only for “Consumption”, “Error”, and “Refund” records. | The Group used for the call appears below the name. If the Group Ratio differs from 1 or a custom Ratio applies, the Ratio also appears, for example “1.5x”. Click the name to copy it. The screenshot shows the name and Group masked with dots. See “Hide / Show” under Page Controls and Filters. |
| Model | The model called. | Populated only for “Consumption”, “Error”, and “Refund” records. | Click the model name to copy it. If the site maps the model to another model, click the routing icon next to the name to see the “Requested Model” and “Actual Model”. If the upstream provider returns a different model name from the requested one, an amber “Response Model: …” label appears. Click it to see the model names. If the site's request processing modifies the request, detects content, or blocks the request, “Processed” appears below the model name. Hover over it to see the name of the plugin that processed the request. |
| Stream | Whether the request uses streaming output and how fast it produces output. | Populated only for “Consumption” and “Error” records. | Shows “Streaming” or “Non-streaming”. Submission records for asynchronous tasks show “Sync” or “Async”. The output rate appears below in Tokens per second, for example “44 t/s”. If the stream ends abnormally, hover over the red exclamation mark to see the reason. |
| Token | The input and output Token counts for the call. | Populated only for “Consumption”, “Error”, and “Refund” records. | Shows “Input / Output”, or “-” if both counts are zero. If caching was used, “Cache ↓” shows the read count and “↑” shows the write count below the input and output counts. |
| Cost | The Quota deducted or refunded for this record. | Populated only for “Consumption”, “Error”, and “Refund” records. “Error” records incur no charge. | A crown icon precedes the amount when the charge is paid from subscription Quota. Hover over it to see “Subscription”. When the account has an available subscription, charges paid from the wallet balance show a wallet icon with the tooltip “Wallet”. For administrators in the “All” view, the wallet icon appears when the site has an enabled subscription plan. If the charge includes a tool call surcharge, a wrench icon appears on the right with the tooltip “Includes tool call surcharge”. |
| Latency | The time taken to respond to the request. | Populated only for “Consumption” and “Error” records. | Streaming requests show “First Token” (the time until the first output arrives) and “Latency”. Non-streaming requests show only “Latency”. Green, yellow, and red indicate response times from fastest to slowest. |
| Details | A summary of the record. | The system generates the summary automatically. | The summary may show the billing method and unit price, a top-up description, or an error message. “+N” appears at the end when more information is available. Click the summary to open the “Log Details” dialog. See View Log Details. |
Filter Logs and View Statistics
Steps
- Click “Time Range” and select a preset such as “Today” or “7 Days”. To set a custom range, enter a “Start Time” and “End Time”, then click “Confirm”.
- Enter a “Model Name” and “Group” as needed, and select a log type from the type dropdown.
- To search by Token name, request ID, or other criteria, click “Expand” and fill in the filters in the second row.
- Click “Search” or press Enter in any input field.
- View “Usage”, “RPM”, and “TPM” in the lower-left corner of the filter area.
- To clear the filters, click “Reset”.
Tip
- By default, the list shows records from 00:00:00 today through one hour after the current time. Adjust the time range to view earlier records.
- Click “Search” to apply changes to the filters. To see new records, click “Search” again.
- On mobile, all filters except the time range are under “Filters”. The list refreshes as soon as you select a time range.
Filters
The filter area has two rows. The second row is collapsed by default. Click “Expand” to show it. The table lists the filters in the order they appear.
| Filter | Location | Definition | Requirements and Limits | Default |
|---|---|---|---|---|
| Time Range | First row | Filters by the time the record was created, including both endpoints. | Presets fill in the range immediately. Available presets are “Today”, “7 Days” (including today), “This Week” (Sunday through Saturday), “30 Days” (including today), and “This Month”. For a custom range, enter times to the second and click “Confirm”. Regular users have a maximum range per query (365 days by default). A longer range triggers “The time range cannot exceed … days”. | From 00:00:00 today through one hour after the current time |
| Model Name | First row | Filters by the model called. | Optional. Matches the full name by default. For a partial match, put % before and after the search term, as in %gpt%. Use at most two % characters, keep them separated, and enter at least two other characters. | Blank |
| Group | First row | Filters by the Group used for the call. | Optional. Select a Group from the dropdown or enter its full name. | Blank |
| Type | First row | Filters by log type. | Select one of “All Types”, “Top-up”, “Consumption”, “Management”, “System”, “Error”, “Refund”, or “Login”. “Management” and “Login” are marked “Deprecated” and are available only for searching historical records. See Log Types for what each type means. | “All Types” |
| Token Name | Second row | Filters by the name of the API key used for the call. | Optional. Enter the exact name. | Blank |
| Username (administrators only) | Second row | Filters by the user who initiated the request. | Visible only in the “All” view. Matches the full username by default. The same partial-match rules apply as for “Model Name”. | Blank |
| Channel ID (administrators only) | Second row | Filters by the Channel that handled the request. | Visible only in the “All” view. Enter the numeric Channel ID. | Blank |
| Request ID | Second row | Searches by the ID that New API generates for each request. | Optional. Enter the full ID. You can copy it from “Log Details”. | Blank |
| Upstream Request ID | Second row | Searches by the request ID returned by the upstream service. | Optional. Enter the full ID. | Blank |
Statistics
The statistics appear in the lower-left corner of the filter area and refresh when you click “Search”.
| Statistic | Definition | Scope |
|---|---|---|
| Usage | The total cost of “Consumption” records. | Includes “Consumption” records within the selected time range that match “Model Name”, “Group”, and “Token Name”, plus “Username” and “Channel ID” for administrators. The calculation ignores “Type”, “Request ID”, and “Upstream Request ID” and excludes “Refund” records. |
| RPM | Requests per minute, measured as the number of “Consumption” records in the last 60 seconds. | Always covers the last 60 seconds, regardless of the selected time range. Filters such as “Model Name”, “Group”, and “Token Name” still apply. |
| TPM | Tokens per minute, measured as the total input and output Tokens in “Consumption” records from the last 60 seconds. | Same as RPM. |
View Log Details
Steps
- Click the summary in the “Details” column for the record to open the “Log Details” dialog.
- Review the request information, Token usage, and billing details in the corresponding sections.
- To copy the log content, click the copy button in the upper-right corner of “Content”.
Tip
- The dialog shows only the information saved for the record. The sections vary by log type and request.
- To verify a charge, check “Token Breakdown” and “Billing Details”.
Sections in the Log Details dialog
The table lists the sections in the order they appear in the dialog.
| Section | Content | When Shown |
|---|---|---|
| Request ID, Upstream Request ID | The request ID generated by New API and the request ID returned by the upstream service. | When the record contains the corresponding ID. |
| Channel, Retry Chain (administrators only) | The Channel that handled the request and, if the request was retried, the Channels attempted in order. | In the “All” view. |
| Token, Group | The API key name and Group used for the call. | When the record contains this information. |
| IP Address | The IP address that initiated the request. | For “Consumption” and “Error” records created after the account enables “Log IP Address”. Also shown for online top-up records in the “All” view (administrators only). |
| Response Time | The request latency. For streaming requests, the time to first output (“FRT”) appears in parentheses. | For “Consumption” and “Error” records. |
| Request Conversion (administrators only) | The request path and the steps used to convert the request format. Shows “Native Format” if no conversion took place. | In the “All” view. |
| Request Policy Decisions (administrators only) | The steps used to select a Channel, retry, or stop. See Request Policy Decisions. | In the “All” view when the record contains a decision log. |
| Quota Clamped (administrators only) | The clamping type, original value, and clamped value when the calculated Quota falls outside the range the system can record. | In the “All” view when Quota was clamped. The entire row is light amber in the list. |
| Rejection Reason (administrators only) | The reason the request was rejected. | In the “All” view when the record contains a rejection reason. |
| Violation Charge | The violation code, violation flag, and amount charged. | For records with a violation charge. |
| Refund Details | The task ID associated with the refund and the reason for the refund. | For “Refund” records. |
| Task Plugin (administrators only) | The name, key, version, and author of the plugin that handled the task. | In the “All” view when a task plugin generated the record. |
| Request Processing Steps (administrators only) | The instance, plugin, version, stage, duration, errors, and rules for each request processing step. | In the “All” view when request processing ran for the request. |
| Root Diagnostics (Root only) | The API version, plugin runtime generation, upstream task ID, and node name. | For Root users in the “All” view when the record contains this information. |
| Top-up Audit Information (administrators only) | The payment method, callback sender IP address, server IP address, node name, and system version for the order and payment callback. | For “Top-up” records in the “All” view. |
| Quota Adjustment Details | How the administrator adjusted the Quota, the adjustment amount, and the Quota before and after the adjustment. | For “Top-up” records created by an administrator's Quota adjustment. |
| Acting Administrator, Action Audit Information (administrators only) | The administrator who performed the action and the details of the action. | For historical “Management” records in the “All” view. |
| Login Information | The login method, IP address, and client. | For historical “Login” records. |
| Audio Tokens | The input and output Token counts for audio and text. | For real-time voice or audio requests. |
| Reasoning Effort | The reasoning effort specified in the request. | When the request specifies a reasoning effort. |
| System Prompt | Shows “Overridden” to indicate that the site replaced the system prompt in the request. | When the site overrides the system prompt. |
| Response Model or Model Mapping | Either “Requested Model”, “Upstream Requested Model”, and “Response Model”, or “Requested Model” and “Actual Model”. Each value can be copied. | When the upstream service returns a model name or the site maps the model. |
| Token Breakdown | Token counts for input, output, cache reads, cache writes, images, and other categories. Tiered billing also shows a “Billable Token Breakdown”. | For “Consumption”, “Error”, and “Refund” records that contain Token counts. |
| Billing Details | The billing mode, model price or input and output unit prices (per million Tokens), Group Ratio or custom Ratio, additional prices for caching, audio, images, and other usage, tool call counts and prices for tools such as web search, the matched pricing tier, and the total cost. “Billing Path” is visible only to administrators. | For “Consumption” records other than violation charges. |
| Dynamic Billing | The number of billable images, the tiered pricing table (with the applicable tier marked “Matched”), applicable conditions, and conditional multipliers. | For “Consumption” records billed using a dynamic expression. |
| Billing Path (administrators only) | “Local Billing” or “Returned by Upstream”. | In the “All” view for record types other than “Consumption” and “Refund”. |
| Stream Status | The streaming output status, termination reason, number of soft errors, and error details. | When streaming output ends abnormally. |
| Subscription Billing | The plan, subscription instance, pre-charge, settlement difference, final consumption, and remaining subscription Quota. | For records paid from subscription Quota. |
| Request Processing | The changes request processing made, the headers it set or removed, the content it detected, the reason it blocked the request, and other processing details. Changes replaced by Channel settings are marked “Overridden by Channel Settings”. | When request processing ran and the system recorded its actions. |
| Parameter Overrides (…) | The changes the site made to request parameters, with the action and content of each change. | When the site overrides parameters for the request. |
| Content | The log body. For “Error” records, this is the error message. Use the copy button in the upper-right corner to copy it. | When the record contains log content. |
Request Policy Decisions
The “Request Policy Decisions” section in “Log Details” is visible only to administrators. It lists the steps used to select a Channel, retry, or stop for the request. It appears only when “All” is selected in the upper-right corner of the page.
- Successful requests. The system saves the decision log with the “Consumption” record. It includes at least the “Select Channel” and “Request Completed” steps. Disabling “Record Quota Usage” stops the system from saving these decision logs.
- Failed attempts. Each failed attempt generates an “Error” record containing the decisions through that attempt. Decision logs for failed attempts are available only when the site enables error logging.
How each step is displayed
- The first line shows the decision, followed by “#Channel ID” when a Channel is involved and the HTTP status code if the step failed. Steps that stop retries appear in amber.
- The second line shows “Attempt N”, elapsed time in milliseconds since the request started, the Group, the matched rule name, and the HTTP status code. Only available values appear.
- The third line shows “Source:” and the basis for the decision. If the failure triggered a Channel health action, the action appears after the source.
Decision labels
| Decision | Meaning |
|---|---|
| Select Channel | The Channel selected for this attempt. |
| Session Rule Matched | The request matched a session persistence rule. The rule name appears on the second line. |
| Upstream Request Failed | The attempt failed upstream or during network connection. |
| Request Rejected Locally | A local check rejected the request before it was sent upstream. |
| Channel Error | The system attributed the error to the Channel. |
| Status Code Matched a Retry Rule | The failure status code matched a retry rule, so the system retries the request. |
| Status Code Did Not Match a Retry Rule | The failure status code did not match a retry rule, so retries stop. |
| Unrecognized Status Code | The system could not recognize the status code returned upstream. |
| Attempt Limit Reached | The request reached the maximum number of attempts, so retries stop. |
| Retry Prohibited by System | A system rule prohibits retrying in this situation. |
| Fixed Channel Constraint | The request is pinned to a specific Channel and stays on that Channel. |
| Session Persistence Prevents Channel Switching | Session persistence requires the original Channel to be used. |
| Task Accepted, Duplicate Submission Prohibited | The upstream service has already accepted the asynchronous task, so retries stop. |
| Task Failed | The asynchronous task failed during submission. |
| Streaming Output Did Not Complete Successfully | Streaming output ended abnormally. |
| Request Completed | The request completed successfully. |
Sources and Channel health actions
- Source. “Global Defaults”, “Global and Channel Settings”, “Channel”, and “Session Rule” indicate that the decision was based on site or Channel retry or session settings. “System Constraint” and “Fixed Channel Constraint” indicate that the decision was based on system rules. “Channel Selection”, “Upstream Response”, “Upstream Connection”, and “Local Check” indicate that the decision was based on what happened during the attempt.
- Health action. “Unchanged” means the Channel status stayed the same. “Channel Deactivation Requested” and “Current Key Deactivation Requested” mean the failure triggered a deactivation request.
Export Logs
Steps
- Set the filters on the page as needed and click “Search”.
- Click “Export” in the lower-right corner of the filter area to open the “Export Logs” dialog.
- Set the time range to export.
- Click “Export” in the dialog and wait for your browser to download the file.
Tip
- “Export” is available to regular users when administrators enable user exports. Administrators can always export logs.
- Each account can run only one export at a time. Closing the dialog while an export is in progress cancels it.
- Exported files contain the original names even when “Hide” is enabled.
Export settings
| Setting | Definition | Requirements and Limits | Default |
|---|---|---|---|
| Time Range | The time range of the records to export. | Both a start time and an end time are required. If the end time is earlier than the start time, the dialog shows “End time must be after start time”. If the range exceeds the limit (365 days by default), the dialog shows “The time range cannot exceed … days” and disables “Export”. Other filters applied on the page, such as model name, Group, type, Token name, and request ID, also apply to the export. | The time range currently applied on the page |
Export file
- The export is a CSV file named
usage-logs-<start-date>-<end-date>.csv, for exampleusage-logs-20261101-20261108.csv. You can open it directly in a spreadsheet application. - The file includes the “Time”, “Type”, “Token”, “Group”, “Model”, “Stream”, “Input Tokens”, “Output Tokens”, “Cache Reads”, “Cache Writes”, “Cost”, “Latency”, “IP”, “Request ID”, and “Details” columns. Exports from the “All” view include records for all users and add the “User” and “Channel” columns (administrators only).
- The records are sorted from newest to oldest, with no limit on the number of records.
Controls and Actions
Page Controls and Filters
| Control | Location | Description |
|---|---|---|
| All / Only Me (administrators only) | Upper-right corner of the page | Defaults to “All”, which shows records for all users, the “Channel” and “User” columns, the “Username” and “Channel ID” filters, and administrator-only sections in the details dialog. “Only Me” shows only the current account's records and the same page content as for regular users. |
| Time Range, Model Name, Group, Type | First row of the filter area | See Filter Logs and View Statistics. |
| Expand / Collapse | Right side of the first filter row | Shows or hides the second row of filters. The row is collapsed by default and expanded in the screenshot. The button shows how many filters in the second row have values. |
| Token Name, Request ID, Upstream Request ID | Second row of the filter area | See Filter Logs and View Statistics. |
| Username, Channel ID (administrators only) | Second row of the filter area | See Filter Logs and View Statistics. |
| Usage, RPM, TPM | Lower-left corner of the filter area | Shows the statistics described in Filter Logs and View Statistics. |
| Hide / Show | Eye icon in the lower-right corner of the filter area | “Hide” masks Token names, Groups, usernames, Channel names, the “Usage” amount, and the values in the corresponding filter fields with dots for screenshots or screen sharing. Costs, models, the details dialog, and exported files remain visible or unmasked. Refreshing the page restores visibility. |
| Reset | Lower-right corner of the filter area | Available when any filter other than the time range is set. Clears all filters and restores the default time range. |
| Search | Lower-right corner of the filter area | Refreshes the list and statistics using the current filters and returns to page 1. |
| Export | Lower-right corner of the filter area | Opens the “Export Logs” dialog. See Export Logs. |
| View | Lower-right corner of the filter area | Use “Toggle Columns” to select which columns to display. The “Time” column is always visible. The current browser saves the settings. |
| Rows per Page, Pagination | Bottom of the list | “Rows per Page” defaults to 100 (20 on mobile). Available values are 10, 20, 30, 40, 50, and 100. “Total” shows the number of matching records. |
Row Actions
| Action | Location | Description |
|---|---|---|
| View Log Details | Summary text in the “Details” column | Opens the “Log Details” dialog. See View Log Details. |
| Copy Log Content | Copy button in the upper-right corner of “Content” in the “Log Details” dialog | Copies the log body. See View Log Details. |
| Copy Model Name | Model name in the “Model” column | Click the name to copy it. If there is a routing icon or a “Response Model” label next to the name, click it to open a popover where you can copy each model name separately. |
| Copy Token Name | Name in the “Token” column | Click the name to copy it. |
| Copy Channel ID (administrators only) | “#Channel ID” in the “Channel” column | Click the ID to copy it. |
| View Retry Chain (administrators only) | Branch icon in the “Channel” column | Shows the Channels attempted for the request, in order. |
| View Channel Affinity (administrators only) | ✦ in the upper-right corner of the “Channel” cell | Opens the “Channel Affinity” dialog, which shows cache statistics for the session rule. |
| View User Information (administrators only) | Username in the “User” column | Opens the “User Information” dialog. |
Status Reference
Log Types
Log types appear below the timestamp in the “Time” column and in the type filter.
| Type | Meaning | Notes |
|---|---|---|
| Top-up | Account Quota added or adjusted through redemption codes, successful online top-ups, subscription purchases (including purchases made with the wallet balance), or an administrator increasing, decreasing, or replacing the account Quota. | Cyan. Records created by administrator adjustments show “Quota Adjustment Details” in the details dialog. |
| Consumption | A successful model call that incurred a charge. Charges for submitting asynchronous tasks such as video or music generation are also logged as “Consumption”. | Green. “Usage” totals include only this type. |
| Management | Historical records of administrator actions. | Orange. Marked “Deprecated” in the filter and available only for searching historical logs. See Audit Logs for new administrator actions. |
| System | Quota granted by the system, including rewards for new user registration, referrals, and daily check-ins. | Purple. |
| Error | A failed model call. | Red, with the entire row shaded light red. Errors incur no charge. These records appear only after the site enables error logging. |
| Refund | Quota returned after an asynchronous task fails or times out, or the difference refunded when the task is settled based on actual usage. | Blue, with the entire row shaded light blue. The “Details” column shows “Asynchronous Task Refund”. “Refund Details” in the details dialog shows the task ID and reason. See Task Logs. |
| Login | Historical records of sign-ins. | Teal. Marked “Deprecated” in the filter and available only for searching historical logs. See Audit Logs for new sign-in records. |
Frequently Asked Questions
Related Documentation
- API Keys — Create and manage API keys for making model requests.
- Wallet — Add funds, redeem Quota, and view your balance and subscriptions.
- Dashboard — View usage statistics aggregated by time period and model.
- Audit Log — View records of logins, changes to account security settings, and access Token activity.
- Task Log — View the status, results, and refunds for asynchronous tasks such as video, music, and image generation.
- Get Personal Logs — Query the current account's usage logs through the API.
- Get Personal Log Statistics — Query the current account's usage statistics through the API.
- Get Logs by Token — Use an API key to query recent usage logs for that key.
How is this guide?
Last updated on
API Keys
Create, copy, and manage API keys for calling models. Set quota and expiration limits, restrict models and IP addresses, and import keys into clients such as CC Switch in one click.
Audit Logs
Review account activity such as sign-ins, security changes, API key operations, and access token operations. Check the time, source, and outcome of each action.