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 be within the past 365 days and align with the selected bucket_width (e.g., 11:05:00Z for 5m, 11:00:00Z for 1h).
RFC 3339 timestamp in UTC. Must be later than start_time and align with the selected bucket_width (e.g., 11:10:00Z for 5m, 12:00:00Z for 1h).
Width of each time bucket. Must be selected based on the query duration (end_time - start_time) and must not exceed the query duration.
5m, 15m, 30m, 45m, 1h, 6h, 12h, 1d Specifies the number of buckets to return.
bucket_width=1d: default 7, max 31bucket_width=12h: default 2, max 14bucket_width=6h: default 4, max 28bucket_width=1h: default 24, max 168bucket_width=45m: default 2, max 32bucket_width=30m: default 2, max 48bucket_width=15m: default 4, max 96bucket_width=5m: default 12, max 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.
Usage group-by option.
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.
Product type.
model_apis, dedicated_endpoints Return only usage for the specified GPU types. When this filter is given, gpu_usage and reserved_gpu_usage will be provided if present; request, token, and audio usage fields are omitted. Combining gpu_types with product_types=model_apis is rejected with HTTP 400.
Return only usage for the specified capacity types. Supported fields include reservation only. When this filter is given, only reserved_gpu_usage will be provided; gpu_usage, request, token, and audio usage fields are omitted. Combining capacity_types with product_types=model_apis is rejected with HTTP 400.
GPU capacity type.
reservation