It is not working api key

Uploading: 1000022747.jpg…

Hi @sulaimansarwar2009

You can go through the these topics in the training if you are facing issues with API key:

  • Getting access to the API Key
  • API Credits usage
  • Install the boltiotai library

If you are facing issues even after watching the tutorial then you may follow these steps:

  1. Install the boltiotai library
pip install boltiotai
  1. import this on the firt line of your code:
from boltiotai import openai
  1. Generate API key
    To generate the api key please go to https://trainings.boltiot.com/ApiUsage and click on generate api key.
    After the api key is generate copy and paste that api key in the secrets tab in Replit.
    If you have done all these steps correctly your project should work when you click on the run button.

Do try this and let us know. If you still face any issues, please feel free to get back to us

you have to copy your api key and paste when ever you needed. if problem is not solved try to create a new api id