Skip to content

Get usage summary

GET
/api/v1/usage/summary

Aggregates token usage and estimated cost over the specified number of days, broken down by AI provider and content type.

Authorizations

HTTPBearer
Type
HTTP (bearer)

Parameters

Query Parameters

days
Type
integer
Default
30

Responses

Successful Response

application/json
JSON
{
"total_input_tokens": 0,
"total_output_tokens": 0,
"total_cost": 0,
"by_provider": {
},
"by_content_type": {
}
}

Playground

Server
Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

XC AI Content Automation