Request Time Series Forecast
Forecasting
Request a Forecast
Generate accurate time series predictions using Nolano’s foundation models
POST
Request Time Series Forecast
Generate predictions for your time series data using state-of-the-art foundation models. This endpoint supports univariate forecasting with multiple model options optimized for different use cases.
Processing Time: Forecasts typically complete in 2-10 seconds depending on data size and model complexity.
Available Models
Choose the best model for your forecasting needs. Each model is optimized for specific use cases and data characteristics:| Model ID | Description | Best For |
|---|---|---|
forecast-model-1 | General-purpose foundation model (TOTO) | Most time series patterns |
forecast-model-2 | Trend-focused model | Data with strong trends |
forecast-model-3 | Seasonal model | Seasonal patterns |
forecast-model-4 | Volatility model | High-variance data |
Example Requests
Response Format
The API returns forecast data with prediction intervals:Example Response
Data Requirements
- Minimum data points: 10 historical observations
- Maximum forecast horizon: 100 periods
- Supported frequencies: Seconds, Minutes, Hours, Daily, Weekly, Monthly, Quarterly, Yearly
- Data format: Chronologically ordered timestamps with corresponding numerical values
Error Handling
The API returns structured error responses with specific error codes:UNAUTHORIZED- Invalid or missing API keyINVALID_REQUEST- Validation failed for request parametersDATA_VALIDATION_ERROR- Issues with time series data formatRATE_LIMIT_EXCEEDED- API rate limit exceededINTERNAL_ERROR- Unexpected server error
Authorizations
API key authentication. Include your API key with 'Bearer' prefix.
Headers
Model ID to use for forecasting
Available options:
forecast-model-1, forecast-model-2, forecast-model-3, forecast-model-4 Body
application/json
Array containing one time series object
Required array length:
1 elementNumber of future periods to predict
Required range:
1 <= x <= 100Example:
12
Frequency of input timestamps
Available options:
Seconds, Minutes, Hours, Daily, Weekly, Monthly, Quarterly, Yearly Example:
"Daily"
Desired frequency for forecast output (must match data_frequency)
Available options:
Seconds, Minutes, Hours, Daily, Weekly, Monthly, Quarterly, Yearly Example:
"Daily"
Confidence level for prediction intervals
Required range:
0.1 <= x <= 0.99Example:
0.95
Response
Forecast generated successfully
Timestamps for forecasted periods
Example:
[
"2024-01-01T00:00:00",
"2024-01-02T00:00:00"
]Lower bounds of prediction intervals
Example:
[145.2, 146.8]Point forecasts (median predictions)
Example:
[150, 151.5]Upper bounds of prediction intervals
Example:
[154.8, 156.2]
