Usage
Get usage details for the team.
X-Friendli-Team is omitted, this endpoint uses the default team configured in Friendli Suite.
To request successfully, it is mandatory to enter a Personal API Key (e.g. flp_XXX) value in the Bearer Token field.
Refer to the authentication section on our introduction page to learn how to acquire this variable and visit here to generate your API Key.Authorizations
Headers
ID of team to run requests as (optional parameter).
Query Parameters
RFC 3339 timestamp in UTC. Must fall on a 5-minute boundary (e.g., 2026-01-01T10:05:00Z). It must be no earlier than one year ago. When bucket_width=1h, it must align to an hour boundary (e.g., 10:00:00Z); when bucket_width=1d, it must align to a day boundary (e.g., 00:00:00Z).
RFC 3339 timestamp in UTC. Must fall on a 5-minute boundary (e.g., 2026-01-01T10:05:00Z), and its minute value must match start_time's. It must obey the same hour/day alignment as start_time when bucket_width=1h or 1d.
Width of each time bucket in response. Currently 1d, 1h, and 5m are supported, default to 1d.
1d, 1h, 5m Specifies the number of buckets to return.
bucket_width=1d: default limit = 7, max limit = 31bucket_width=1h: default limit = 24, max limit = 168bucket_width=5m: default limit = 12, max limit = 288
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Group the usage by the specified fields. Support fields include model, product_type, user_id and any combination of them.
model, product_type, user_id Return only usage for the listed Model APIs and Dedicated Endpoints. Values are model IDs, endpoint IDs, or a mix.
Return only usage for these users.
Return only usage for the specified product types. Supported fields include model_apis, dedicated_endpoints and any combination of them.
model_apis, dedicated_endpoints Return only usage for the specified GPU types. When this filter is given, only 'gpu_usage' will be provided. Combining gpu_types with 'product_types=model_apis` is rejected with HTTP 400.