The requests log page is a table view that shows all the API calls that have been made to the Keywords AI. This is useful for debugging and monitoring the API usage.

Components of the Requests Log

Control Bar

The control bar is located at the top of the page.

You can filter and search for logs by various metrics

You can also export the logs in CSV/JSON format by clicking on the Export button on the top right corner of the control bar.

Log Table

The log table is located in the middle of the page, it shows all the logs that match the search criteria.

You can change the displaying metrics, grouping and ordering by clicking on the Display options button on the top right corner of the log table.

Side Panel

The side panel is located on the right side of the page. It shows the details of the selected log.

You also see the content of the request and response in text or JSON format.

Displaying Metrics

Time
datetime

Timestamp of the API call

Prompt
string

The string content of the prompt

Response
string

The string content of the response

Cost
float

Cost of the API call

TTFT
float

Time to first token in seconds, the time from the moment the request to the provider is made until the first token is received.

Latency
float

TTFT + the complete to generate the full response in seconds

Prompt tokens
integer

Number of tokens in the prompt.

Output tokens
integer

Number of tokens in the response.

All tokens
integer

Number of tokens in the prompt and response.

API key
string

The name of the API key used for the request.

model
string

The model that responded to the request.

Status
number

The HTTP status code of the response, >400 means error and will display as an error tag with the status code.

Cached
boolean

(Beta) If the request is responded from the a cached response.

Sentiment
text

(Premium Feature) The sentiment score of the last user’s message, from -1 to 1. -1 to -0.25 is negative, -0.25 to 0.25 is neutral, and 0.25 to 1 is positive. This indicates how the user feels about the conversation.

Warnings
string

The response might succeed after a few retries or with Keywords AI’s fallback protection, these errors will be logged as warnings.

Advanced Usage

You can use a combination of hotkeys to your advantage to quickly navigate through the dashboard page.

ActionShortcut
Apply filterf
Use search bar/

You can quickly pick an option with the following key bindings:

DropdownOptions & Shortcut
Grouping1:API key 2: Model 3: Status 4:Sentiment 5: No grouping
Ordering1: Default 2: Date 3: Cost 4: Latency 5: TTFT