Model inference
Perform inference with foundation models.
query Parameters
model
string · enum · requiredThe forecasting model to use for inference. Note that only
tabpfn-ts
,moirai
andmoirai-moe
support exogenous variables.Enum values:moiraichronoschronos-bolttimesfmtimesfm-2moirai-moemoirai-2tabpfn-tsDefault: tabpfn-tscloud
string · enumSpecify the cloud provider to use for inference. If none is set then any may be used depending on availability.
Enum values:gcpawsoci
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE
.
Request Body
series
object[] · requiredExample: {"0":{"future_variables":{"local_attendance_forecast":[125,75,200,122,123,150,100,120,121,119]},"future_variables_index":["2001-01-06","2001-01-07","2001-01-08","2001-01-09","2001-01-10","2001-01-11","2001-01-12","2001-01-13","2001-01-14","2001-01-15"],"hist_variables":{"temperature":[74,72,79,77,75]},"index":["2001-01-06","2001-01-07","2001-01-08","2001-01-09","2001-01-10"],"static_variables":{"Population":100000},"target":[125,120,140,135,133]}}horizon
integer · min: 1 · max: 1000 · requiredNumber of steps to forecast given the frequency.
Example: 5freq
string · enum · requiredFrequency of the time series.
Enum values:5min15min30minHDWMQExample: D
context
The amount of history to use when forecasting. This is the number of steps to look back in the target series. More history can improve the forecast accuracy, but can also increase the computation time. By default this is set to the max of model capability or the length of the provided target series, whichever is shorter.
Example: 20Default: nullquantiles
Default: [0.1,0.9,0.4,0.5]covariates
Apply additional co-variates provided by TFC. Only supported by the following models: Navi, Moirai, Moriai-MoE and TabPFN-TS.
Example: {"0":{"config":{"country":"US"},"type":"holidays"}}Default: null
Responses
Success
series
Default: nullstatus
Default: completed
Submit job for retrocasting
Perform historic inference for a range of forecast creation dates (fcds). These jobs can run longer and need to be retrieved with a separate endpoint and the returned job ID.
query Parameters
model
string · enum · requiredThe forecasting model to use for inference. Note that only
tabpfn-ts
,moirai
, andmoirai-moe
support exogenous variables.Enum values:tabpfn-tsmoiraichronoschronos-bolttimesfmtimesfm-2time-moeaarimaDefault: tabpfn-ts
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE
.
Request Body
series
object[] · requiredExample: {"0":{"future_variables":{"local_attendance_forecast":[125,75,200,122,123,150,100,120,121,119]},"future_variables_index":["2001-01-06","2001-01-07","2001-01-08","2001-01-09","2001-01-10","2001-01-11","2001-01-12","2001-01-13","2001-01-14","2001-01-15"],"hist_variables":{"temperature":[74,72,79,77,75]},"index":["2001-01-06","2001-01-07","2001-01-08","2001-01-09","2001-01-10"],"static_variables":{"Population":100000},"target":[125,120,140,135,133]}}horizon
integer · min: 1 · max: 1000 · requiredNumber of steps to forecast given the frequency.
Example: 5freq
string · enum · requiredFrequency of the time series.
Enum values:5min15min30minHDWMQExample: D
context
The amount of history to use when forecasting. This is the number of steps to look back in the target series. More history can improve the forecast accuracy, but can also increase the computation time. By default this is set to the max of model capability or the length of the provided target series, whichever is shorter.
Example: 20Default: nullquantiles
Default: [0.1,0.9,0.4,0.5]covariates
Apply additional co-variates provided by TFC. Only supported by the following models: Navi, Moirai, Moriai-MoE and TabPFN-TS.
Example: {"0":{"config":{"country":"US"},"type":"holidays"}}Default: null
Responses
Job submitted successfully
call_id
stringThe unique identifier of the submitted job
Retrieve job result
Retrieve the forecast result from a retrocast job.
path Parameters
job_id
string · required
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE
.
Responses
Success
series
Default: nullstatus
Default: completed
Warmup model
Warmup a model endpoint for better UX in embedded applications.
query Parameters
model
string · enum · requiredThe forecasting model to warmup.
Enum values:moiraichronoschronos-bolttimesfmtimesfm-2moirai-moemoirai-2tabpfn-tsDefault: tabpfn-tscloud
string · enumSpecify the cloud provider to use. If none is set then any may be used depending on availability.
Enum values:gcpawsoci
Headers
Authorization
string · requiredThe
Authorization
header is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE
.
Responses
Rate Limiting Response
type
string · requiredA URI reference that identifies the problem.
title
string · requiredA short, human-readable summary of the problem.
status
number · requiredThe HTTP status code.
instance
string