v14

latestOpenAPI 3.0.1Apache 2.0raw.githubusercontent.com2026-08-0151328.1 KB

query for AI inference costs as a time series

Returns one InferenceCostSet per time step within the requested window. The accumulate parameter is required and defines the step size. All other parameters are identical to /inferenceCost/total. Requires INFERENCE_COST_ENABLED=true.

get/inferenceCost/timeseries

Query parameters

windowstring required

Duration of time over which to query. Accepts durations like 7d, 24h, or RFC3339 date pairs.

accumulate'hour' | 'day' | 'week' | 'month' required

Step size for each time-series data point. Required for this endpoint.

costBasis'allocation' | 'usage'

allocation (default) or usage. See /inferenceCost/total for details.

aggregatestring

Comma-separated dimensions to aggregate by: model_name, model_version, namespace, cluster, pod, controller, controller_kind, container, workload_type.

filterstring

Filter by property values. Format: prop:value+prop:value (AND logic). Supported properties: model_name, model_version, namespace, cluster, pod, controller, controller_kind, container, workload_type.

Response

Success

codeinteger
statusstring