Llm
Get LLM cost metrics
Return current-month total LLM cost and per-model cost timeseries for the tenant.
post/llm/cost
Request
- Base URLhttps://api.your-domain.com
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
cookie_namestring nullable
tenant_idinteger
Request body
Example request
{
"granularity": "monthly",
"date_start": "2026-01-01T00:00:00Z",
"date_end": "2026-01-31T23:59:59Z"
}Response
Successful Response
Example response
{
"total_cost": 123.45,
"timeseries": {
"gpt-4o": [
{
"cost": 12.34,
"date": "2026-01-15"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.