Knowledge Bases

Get all document token usage

Get token usage / cost tracking across all of the user's documents.

get/api/v0/knowledge-bases/stats/token-usage

Response

Successful Response

total_input_tokensinteger required

Total input tokens across all documents.

total_output_tokensinteger required

Total output tokens across all documents.

total_estimated_cost_usdnumber required

Total estimated cost in USD (calculated live from current pricing).

total_duration_msinteger required

Total LLM call duration in milliseconds across all documents.

total_llm_callsinteger required

Total number of LLM calls.

Changes

No recorded changes to this endpoint across all 1 revision of this API.