Skip to main content
GET
Summarize organization usage and costs.

Authorizations

Authorization
string
header
required

Read-only reporting token for usage reporting endpoints (Authorization: Bearer rpt-<reporting_token>)

Path Parameters

org_id
string<uuid>
required

Organization ID

Query Parameters

start_time
string

Inclusive RFC3339 start timestamp. Defaults to 366 days before the effective end_time.

end_time
string

Inclusive RFC3339 end timestamp. Defaults to the request time. The effective range must not exceed 366 days.

source
enum<string>

Usage source to summarize. Defaults to all.

Available options:
all,
inference,
service
workspace_id
string<uuid>

Filter by workspace ID.

api_key_id
string<uuid>

Filter by API key ID.

model
string

Filter inference usage by model name.

inference_type
string

Filter inference usage by inference type.

service_name
string

Filter service usage by platform service name.

Response

Usage summary

by_api_key
object[]
required
by_day
object[]
required
by_model
object[]
required
by_service
object[]
required
by_workspace
object[]
required
end_time
string<date-time>
required
source
enum<string>
required
Available options:
all,
inference,
service
start_time
string<date-time>
required
totals
object
required