Skip to content

Costs

GET
/api/v1/admin/analytics/costs

Return cost analytics.

project_id
Any of:
string format: uuid
X-Admin-Key
Any of:
string
X-Admin-API-Key
Any of:
string
X-Project-ID
Any of:
string

Successful Response

CostAnalyticsResponse

Cost analytics response.

object
cache_efficiency
required
Cache Efficiency
number
cache_read_tokens
Cache Read Tokens
integer
0
cost_by_model
required
Cost By Model
Array<object>
object
key
additional properties
any
daily_cost_by_model
Daily Cost By Model
Array<object>
object
key
additional properties
any
estimated_cache_savings_usd
Estimated Cache Savings Usd
number
0
per_user_average_usd
required
Per User Average Usd
number
projected_monthly_spend_usd
required
Projected Monthly Spend Usd
number
tokens_saved
Tokens Saved
integer
0
top_users_by_cost
Top Users By Cost
Array<object>
object
key
additional properties
any
total_cost_usd
required
Total Cost Usd
number

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string