April 22, 2026
Forecast API Schema Alignment
Forecast payloads now use a standardized schema across single, batch, and ensemble forecasts
#Forecast API Schema Alignment
The TSFM.ai forecast API now uses a standardized wire format across
/v1/forecast, /v1/forecast/batch, and /v1/forecast/ensemble.
This unifies single, batch, and ensemble forecasting around the same request and response shape, with better support for multivariate inputs, missing values, and probabilistic output.
#What changed
inputs[].targetis now always 2D with shape[num_timesteps][num_channels]. Univariate series use a single-value inner array such as[[120], [135], [142]].- Missing observations are sent inline as
null. - Regularly spaced input timestamps now use
startplusparameters.frequencyinstead of an explicittimestampsarray. parameters.freqwas renamed tofrequency, andparameters.quantileswas renamed toquantile_levels.- Forecast responses now return
outputsinstead ofpredictions, withquantile_predictionsand optionalsamplesfor probabilistic models. - Per-item
metadatacan be sent with each input and is echoed back on the corresponding output item.
#Migration notes
This is a breaking change for clients using the older forecast schema. If you
previously sent 1D target arrays, item_id, series, or explicit input
timestamps, update your integration to the new shape before your next
deployment.
The forecasting docs now include updated examples for univariate, multivariate, and probabilistic requests so migrations are mostly mechanical.