Skip to main content

Logs

Every request made with your keys, newest first, for the last 24 hours or 7 days.

The Logs list with filters, each request's cost, discount and latency

The list​

ColumnMeaning
TimeWhen the request started, in your browser's time zone. The column header names the zone
ModelThe model you sent
KeyThe name of the key that made the request, or Console (chat) for a request sent from Chat
Input / OutputTokens in and out. An image request shows the number of images
DiscountThe tier or special price the request was billed at, when it had one
CostWhat the request was charged, to six decimal places. Amounts under $0.000001 are shown as < $0.000001 rather than rounded to zero
LatencyHow long the request took, timed by the gateway. Your network is not included
StatusSuccess, Failed or Cancelled. A failed row shows its reason

An organization's admin sees the requests of every member, and each row names who sent it (Organization).

Search, filter and export​

  • Search by request ID finds one request.
  • All statuses, All models and All keys narrow the list. Clear filters resets them.
  • Export CSV downloads the requests of the chosen range. The file holds at most the 5,000 most recent; choose a shorter range to export the rest.

Request details​

Open a row for the full record.

  • Latency (gateway), Cost, Tokens, First token (gateway) and, for text requests, Prompt cache with the tokens read from and written to the cache.
  • Cost breakdown: input, cache read, cache write and output, each at its own price, then Total. A discounted request also shows Official price and You paid.
  • Request ID, the API key that made it, whether it was Streaming, when it Started, and the Session it belonged to. A failed request shows its Reason.
  • The Request and Response bodies, when they were recorded. Show raw JSON shows them as sent.
  • For an image, video or speech request, the generated file, with Open in Media and Download.

A video request shows Latency (submit, gateway) for the call that started the job and Generation time for the job itself. The timings in Chat are measured in your browser and include your network, so they read a little higher than the ones here.

Typical use: debug a failed call​

  1. Set the status filter to Failed and find the row around the time it happened.
  2. Open it. Reason says why it failed, and the Response shows the error body the API returned; Errors explains each one.
  3. Copy the Request ID if you write to us about it.

Logs show your own requests only, and to an organization's admin its members' requests too. Nobody else's traffic appears here, and nothing about how a request was routed is exposed.