LogoToRouter Docs
LogoToRouter Docs
HomepageWhat is ToRouter5-minute quickstartCore concepts
Dashboard overviewUsage details & CSV export
Usage

Usage details & CSV export

Filter request logs by date and model, break down tokens, and export everything to CSV.

/usage is the detailed log view. Use it for reconciliation, cost attribution, and exporting to your billing system.

Filters

  • Date range — start / end date pickers; the chart and table both respect this
  • Model — narrow to a single model id
  • Key — when you have multiple API keys, scope to one

The top stat cards summarise the filtered window: total cost, total requests, input/output token counts.

Per-model breakdown

The model table shows, per model in the date range:

ColumnWhat
ModelModel id you called
RequestsSuccessful request count
Input tokensPrompt tokens billed
Output tokensCompletion tokens billed
Cache creationAnthropic prompt-cache write tokens (when applicable)
Cache readAnthropic prompt-cache read tokens (cheaper)
CostUSD spend

Export to CSV

Click Export CSV in the top-right of the details table. ToRouter paginates the export in batches of 1000 rows server-side and assembles a single file named usage-<start>_<end>.csv. The file includes per-request rows, not just the model summary.

Exports can be large. Narrow the date range or model filter before exporting if you only need a slice — full-month dumps on busy accounts can run to tens of thousands of rows.

Request log entries

Each row in the log shows: timestamp, model, total tokens (with input/output/cache breakdown on hover), cost, and key name. Cache creation tokens split further into 5-minute and 1-hour TTL when the upstream returns that detail.

See also

If you suspect a shared API key is being used by someone else, sign in to the console: narrow this table with the key filter, review per-key stats on the API keys page, and cross-check model mix on the dashboard.

Next steps

Dashboard overview

The high-level view of the same data.

Create an API key

Split keys per environment to make investigation and rotation easier.

Quota & rate limits

Cap a key once you see one is burning too fast.

Dashboard overview

Balance, 7/30-day usage trend, top models, and recent activity — all on one page.

OpenAI Python SDK

Call GPT, Claude, Gemini and every other model in the catalog from the official openai Python package.

Table of Contents

FiltersPer-model breakdownExport to CSVRequest log entriesSee alsoNext steps