Forecast a time series
forecastPredict numeric time series with prediction intervals using zero-shot models; returns quantiles and metadata for sales, demand, traffic, or sensor data.
Instructions
Forecast, predict or project one or more numeric time series (sales, demand, traffic, load, prices, metrics, sensor data) with prediction intervals, using Ephemeris' panel of zero-shot foundation models. Mode ensemble is the most accurate: it is level with the top of the TIME benchmark and scores better on GIFT-Eval than any single model in the panel. Returns structured JSON: forecasts (one entry per input series, quantile-keyed arrays) and meta with the request id, models used, the served weight revision per model, and the credits charged and remaining. Spends credits on every successful call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | "route": Ephemeris picks the best model for the data, falling back to a small ensemble if it fails. "ensemble": run all compatible models and blend them; best calibration, highest cost. "explicit": run the single model named in `model`. | |
| model | No | Required when mode is "explicit". Must be a name returned by list_models. | |
| top_k | No | Ensemble only: cap on how many models participate. | |
| series | Yes | One to 64 series forecast in one request. All share horizon and quantiles. | |
| combine | No | Ensemble only. "mixture" averages the predictive distributions (default); "vincentize" averages the quantiles. | |
| horizon | No | Number of future steps to forecast, 1 to 4096. Defaults to 64. Some models stop short of this (max_horizon in list_models): route and ensemble skip them, explicit mode rejects the request. | |
| quantiles | No | Up to 21 quantile levels strictly between 0 and 1, for example [0.1, 0.5, 0.9]. The response keys forecasts by these as decimal strings. | |
| context_len | No | Most recent points per variate to feed the model and bill for, 1 to 16384. Defaults to 256. Values beyond the model's context cap are truncated at the cap. | |
| idempotency_key | No | Client-chosen key, 8 to 128 characters of letters, numbers, dot, underscore, colon or hyphen. A retry with the same key and identical body replays the stored result without charging again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| forecasts | No | One entry per input series, aligned with the request. |