Skip to Content
Console/Usage

Usage

Spend, requests, tokens and errors for your organization over a period, by model and by key.

Open Usage in the console. It adds up your organization's requests from the API and the Playground over the period you pick:

  • Spend — what the requests cost: tokens, and web searches and page reads.
  • Requests — every call to /v1/messages and /v1/chat/completions, successful or not, with the web requests billed.
  • Tokens — input and output, as reported in each reply's usage.
  • Errors — requests that failed: bad requests, unknown models, requests refused for credits or a spend limit, and the rest.

Click a number to chart it over the period: per minute for the last hour, per hour for the last 24 hours, per day (UTC) for the last 7 or 30 days.

Filters

  • Period — the last hour, 24 hours, 7 days or 30 days.
  • API key — all keys, one key (deleted ones included), or the Playground.
  • Model — all models or one model.

The filters are part of the page's address, so a view can be bookmarked or sent to a teammate.

Breakdown

Under the chart, the same totals are broken down by model or by API key, with the Playground as a line of its own. View requests on a line opens Activity with that filter and period, to see the requests behind the number.

Export CSV downloads the breakdown as it is shown: one line per model or per key, with requests, errors, tokens, web requests and spend.

Totals cover the latest 5,000 requests of the period; past that, the page says so.

The console's Home shows the month's spend, the last seven days' tokens and the credit balance at a glance.

What's recorded

For each request Strokes records its ID, time, key, model, mode, stroke ID (when sent), token counts, web requests, cost, duration, whether it streamed and whether it failed.

On this page