Skip to main content
POST
Foundational Time Series Model Multi Series Anomaly Detector

Authorizations

Authorization
string
header
required

HTTPBearer

Body

application/json
series
SeriesWithFutureExogenous · object
required
freq
string
required

The frequency of the data represented as a string. 'D' for daily, 'M' for monthly, 'H' for hourly, and 'W' for weekly frequencies are available.

model
string
default:timegpt-1

Model to use as a string. Common options are (but not restricted to) timegpt-1 and timegpt-1-long-horizon. Full options vary by different users. Contact support@nixtla.io for more information. We recommend using timegpt-1-long-horizon for forecasting if you want to predict more than one seasonal period given the frequency of your data.

clean_ex_first
boolean
default:true

A boolean flag that indicates whether the API should preprocess (clean) the exogenous signal before applying the large time model. If True, the exogenous signal is cleaned; if False, the exogenous variables are applied after the large time model.

finetuned_model_id
string | null

ID of previously finetuned model

Pattern: ^[a-zA-Z0-9\-_]{1,36}$
multivariate
boolean
default:false

Compute multivariate predictions across a batch of multiple time series. Requires all time series with overlapping dates. Note that this is only effective for timegpt-2.1 model and it has no effect on the other models. By default, the value is set to False.

model_parameters
Model Parameters · object | null

Optional dictionary of parameters to customize the behavior of the large time model.

hist_exog
integer[] | null

Zero-based indices of the exogenous features to treat as historical.

Required range: x >= 0
level
default:99

Specifies the confidence level for the prediction interval used in anomaly detection. It is represented as a percentage between 0 and 100. For instance, a level of 95 indicates that the generated prediction interval captures the true future observation 95% of the time. Any observed values outside of this interval would be considered anomalies. A higher level leads to wider prediction intervals and potentially fewer detected anomalies, whereas a lower level results in narrower intervals and potentially more detected anomalies. Default: 99.

Required range: 0 <= x < 100
feature_contributions
boolean
default:false

Compute the exogenous features contributions to the forecast.

Response

Successful Response

input_tokens
integer
required
Required range: x >= 0
output_tokens
integer
required
Required range: x >= 0
finetune_tokens
integer
required
Required range: x >= 0
mean
number[]
required
sizes
integer[]
required
anomaly
boolean[]
required
intervals
Intervals · object | null
weights_x
number[] | null
feature_contributions
number[][] | null