Usage
Get LLM usage and estimated cost
Changed onAggregate LLM token usage and estimated cost over a range of UTC days, broken down by model, by task step, and by what the spend was for.
get/api/v0/usage
Request
- Base URLhttps://api.outerport.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
startstring date nullable
Only count usage on or after this UTC day.
endstring date nullable
Only count usage strictly before this UTC day.
owner_kind'document' | 'agent_run' | 'question' | 'knowledge_base' | 'knowledge_graph' | 'schematic' | 'experiment' | 'unattributed'
What a block of LLM spend is attributable to.
Restrict to one kind of spend. Unattributed calls are booked with no user, so 'unattributed' matches none of the caller's spend.
Response
Successful Response
Changes
- info
endpoint added
- info