Skip to main content

Usage Metrics API

Check the usage metrics of your LLMWhisperer account.

Endpoint/get-usage-info
URLhttps://llmwhisperer-api.unstract.com/v1/get-usage-info
MethodGET
Headersunstract-key: <YOUR API KEY>

Parameters

None

Example Curl Request

curl -X GET --location 'https://llmwhisperer-api.unstract.com/v1/get-usage-info' \
-H 'unstract-key: <Your API Key>'
info

To include the headers in the response use curl -i in the request.

Response

HTTP StatusContent-TypeHeadersDescription
200application/jsonThe API will return a JSON with the usage metrics. Refer below for JSON format

For Paid Plans

{
"subscription_plan": "<Plan Name>",
"monthly_quota": <Monthly Quota>,
"current_page_count": <Current Page Count>,
"daily_quota": -1,
"overage_page_count": <Overage Page Count>,
"today_page_count": <Page Count For Day>,
}

daily_quota will be -1 for paid plans. There is no daily quota for paid plans.

For Free Plan

{
"subscription_plan": "<Plan Name>",
"daily_quota": <Daily Quota>,
"today_page_count": <Page Count For Day>,
}