ApiObservability
Get token usage summary
Get aggregated token usage summary with input, output, and total counts. Supports filtering by server, user, and time range.
Query Parameters
server_id?|
user_id?|
from_time?|
to_time?|
Response Body
application/json
application/json
curl -X GET "https://loading/api/v1/observability/metrics/token-usage"{
"total_input_tokens": 0,
"total_output_tokens": 0,
"total_tokens": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}