Get usage
get_usageGet usage
Requests, tokens and spend over the last days whole UTC days, today included (days=1 is today so far), in total and by day, model and key. Every breakdown counts the same hours, so the totals equal the sum of byDay, of byModel and of byKey. Spend is what the account was charged, at our price, its customers' keys included.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window in whole UTC days, today included: 1 to 90. |