Skip to main content
TimeGEN-1 is TimeGPT optimized for Azure infrastructure. It is a production-ready generative pretrained transformer for time series, capable of accurately predicting domains such as retail, electricity, finance, and IoT with minimal code.

Key Benefit

Azure-native generative forecasting with TimeGEN-1 for streamlined deployments.

Use Cases

• Demand forecasting\• Electricity load prediction\• Financial time series\• IoT data analysis
1

Step 1: Set up a TimeGEN-1 endpoint on Azure and generate an API key

  1. Visit ml.azure.com and sign in (or create a Microsoft account if needed).
  2. Click Models in the sidebar.
  3. Search for TimeGEN in the catalog and select TimeGEN-1.
  4. Click Deploy to create an endpoint.
TimeGEN-1 model catalog deployment option

TimeGEN-1 model catalog deployment option.

  1. Click Endpoint in the sidebar.
  2. Copy the base URL and API Key shown for your TimeGEN-1 endpoint.
Endpoint URL and API key

Endpoint URL and API key for TimeGEN-1.

2

Step 2: Install Nixtla Python SDK

Install the nixtla package using pip:
Install nixtla SDK
3

Step 3: Import and instantiate the Nixtla client

Import the Nixtla client into your Python environment:
Import NixtlaClient
Then create a client instance using your TimeGEN-1 endpoint credentials:
Instantiate NixtlaClient
4

Step 4: Load your time series data

In this example, we’ll use the classic AirPassengers dataset to demonstrate forecasting. The dataset shows monthly passenger counts in Australia between 1949 and 1960.
Load AirPassengers dataset
Use the Nixtla client to quickly visualize your data:
Visualize time series
AirPassengers time series visualization

AirPassengers time series sample visualized.

• Ensure the target column has no missing or non-numeric values.\• Avoid gaps in date stamps (for the specific frequency) from the initial to final timestamp—missing dates are not automatically imputed.\• Datestamps must be in a pandas-readable format. (See Pandas reference)
See Data Requirements for details.
In most notebook environments, figures display automatically. To save a figure locally, run:
Save plot figure
5

Step 5: Generate forecasts

Use the forecast method from the Nixtla client to forecast the next 12 months.

Parameters

df: Pandas DataFrame with time series data\h: Forecast horizon (number of steps ahead)\freq: Time series frequency (pandas frequency aliases)\time_col: Name of timestamp column\target_col: Name of forecast variable
Generate 12-month forecast
Forecast endpoint call logs will be displayed for validation and preprocessing steps.
Forecast API call logs
Example output:Visualize the forecast results:
Visualize forecast results
Forecast visualization AirPassengers

Forecast visualization for the AirPassengers dataset.