Get Model API metrics
Gets Model API metrics for a time range, labeled by team.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Path Parameters
Query Parameters
'CURRENT': a single instantaneous snapshot at now; start/end must be omitted. 'SUMMARY': a single value set aggregating the whole window. 'SERIES': evenly-spaced value sets across the window, with the step derived from the window duration. How metric values are aggregated over the request.
CURRENT, SUMMARY, SERIES Epoch millis timestamp to start fetching metrics. Defaults to one hour before the end.
Epoch millis timestamp to end fetching metrics. Defaults to the current time. The window between start and end must not exceed 7 days.
Names of the metrics to return; see https://docs.baseten.co/observability/export-metrics/supported-metrics for the available names. When omitted, a default set is returned: baseten_model_api_inference_requests_total, baseten_model_api_incoming_inference_requests_total, and baseten_model_api_tokens_total. Unknown names are rejected; valid names that are not enabled for your organization are omitted from the response.
Return only metrics for these teams, repeated once per team. Defaults to all teams you can manage. Any unauthorized team causes a 403.
Response
Model metrics over a time window, index-mapped: metric descriptors appear once
in metric_descriptors; each value set's values are aligned to that order.
Start of the returned window.
End of the returned window.
The aggregation mode used.
CURRENT, SUMMARY, SERIES Seconds per step; populated only in SERIES mode, null otherwise.
Descriptors for each metric; position defines the values index.
Metric values per time step covering the window. In summary mode this always contains exactly one value set spanning the whole window.