Nixtla / nixtla

TimeGPT-1: production ready pre-trained Time Series Foundation Model for forecasting and anomaly detection. Generative pretrained transformer for time series trained on over 100B data points. It's capable of accurately predicting various domains such as retail, electricity, finance, and IoT with just a few lines of code 🚀.

Home Page:https://docs.nixtla.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ApiError: status_code: 401, body: {'data': None, 'message': 'Invalid API key', 'details': 'Key not found', 'code': 'A12', 'requestID': 'D5Z4QG33EB', 'support': 'If you have questions or need support, please email ops@nixtla.io'}

ripankundu opened this issue · comments

Hi ,

I am trying to use the TimeGPT. However, when I use it, I get the following error:

"ApiError: status_code: 401, body: {'data': None, 'message': 'Invalid API key', 'details': 'Key not found', 'code': 'A12', 'requestID': 'D5Z4QG33EB', 'support': 'If you have questions or need support, please email ops@nixtla.io'}"

I use the same example as you provided in the read.me file. Could you please tell me if I am doing anything wrong?

follow below steps

  1. Go to this page https://dashboard.nixtla.io/
  2. Sign in or Sign up
  3. Under API Keys option, create Create New API Key
  4. set os.environ['TIMEGPT_TOKEN'] as created New API key