Skip to main content
POST
Submit an async simulate job

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.

h
integer
required

The forecasting horizon. This represents the number of time steps into the future that the forecast should predict.

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.

finetuned_model_id
string | null

ID of previously finetuned model

Pattern: ^[a-zA-Z0-9\-_]{1,36}$
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.

multivariate
boolean
default:false

When True, sample paths are coupled across series via a shared-template Schaake shuffle (path k reflects the same historical period for every series) — this applies to ALL models. Falls back to independent per-series paths when no NaN-free shared history window exists (see coupled in the response). Also enables the multivariate marginal forecast for models that support it (timegpt-2.1).

n_paths
integer
default:100

Number of sample paths to generate per series.

Required range: 1 <= x <= 10000
quantiles
number[] | null

Marginal quantile grid in (0, 1), strictly increasing, length in [2, 200]. Defaults to the model's native grid (native-quantile losses) or a dense grid (point-loss/conformal).

seed
integer | null

Random seed for reproducibility. When omitted, a fresh random seed is drawn, so repeated unseeded requests return different paths.

Required range: -9223372036854776000 <= x <= 18446744073709552000
job_options
AsyncJobOptions · object | null

Response

Successful Response

The 202 every async submit returns. Shared by all tasks — they differ in request, not reply.

job_id
string
required

Identifier for the accepted job. Prefixed per task (e.g. fc- for forecast).

Example:

"fc-4f2a1c9e8b7d4a6f9c3e1b5d7a9f2c4e"