API Reference
Log In
API Reference

Provider billing chart

        Returns provider billing data shaped as chart series for the selected metric, dimension and mode.

        metric: totalCost | requestCount | tokenCount | inputTokens | outputTokens
        dimension: none | provider | model | workspace | apiKey | usageType
        mode: time (one series per dimension value over date buckets) | aggregate (one series, one point per dimension value)
        grain: day | week | month (time mode only)
    
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum
required

Time period for analytics

Allowed:
string

Filter start date/time in ISO 8601 format.

string

Filter end date/time in ISO 8601 format.

string
enum

Filter results by AI provider. Omit to include all providers.

Allowed:
string
enum

Filter by usage type. Omit to include all types.

Allowed:
number
≥ 0

Filter by a starting cost (inclusive).

number
≥ 0

Filter by an ending cost (inclusive).

string
Defaults to totalCost
string
Defaults to none
string
Defaults to time
string
Defaults to day
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/hal+json
*/*