API Reference
Log In
API Reference

Get cost breakdown by model

Returns cost metrics grouped by AI model over time for the specified date range. Data is automatically bucketed by interval based on the time span. Useful for analyzing model cost trends and optimizing model selection based on cost efficiency.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
date-time
date-time
string
enum
integer | null
≥ 0
Defaults to 0
integer
0 to 100
Defaults to 20
models
array of strings | null
models
providers
array of strings | null
providers
Responses

Language
Credentials
Bearer
API Key
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json