Quickstart
Get started quickly with TimeGPT forecasting using the Nixtla API.
Quickstart
TimeGPT makes forecasting straightforward with the forecast
method in the Nixtla API. Pass in your DataFrame, specify the time and target columns, and call forecast
. You can also visualize results with the plot
method.
Important Data Requirements
Detailed guidance on data requirements is available here.
For a quick demonstration, you can launch our interactive notebook:
1. Install & Import Dependencies
Make sure you have the latest Nixtla Client installed, then import the required libraries:
2. Initialize the Nixtla Client
Provide your API key from Nixtla to authenticate:
Provide your API key from Nixtla to authenticate:
Use an Azure AI endpoint
If you’d like to use Azure AI, set the base_url
to your Azure endpoint:
3. Load Data & Create Forecast
4. Visualize Predictions
Sample Logs (Optional)
Below is an example of log output when running a forecast:
TimeGPT Forecast Plot
Available models in Azure AI
To use an Azure AI endpoint for anomaly detection, set the model
parameter to "azureai"
:
timegpt-1
Default option for general forecasting needs.
timegpt-1-long-horizon
Optimized for extended forecast horizons. Learn more here.