API ReferenceAnalytics
Run Costs
Cost breakdown for a specific run.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
run_id*string
Format
uuidHeader Parameters
X-API-Key?|
Response Body
application/json
application/json
curl -X GET "https://api.levainlabs.com/api/v1/analytics/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/costs"[
{
"run_id": "string",
"model": "string",
"provider": "string",
"total_cost": 0,
"total_tokens_in": 0,
"total_tokens_out": 0,
"request_count": 0,
"started_at": "2019-08-24T14:15:22Z",
"ended_at": "2019-08-24T14:15:22Z"
}
]{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}