I have pasted the exact code shared below the video, but the following error is occurring, please check.
Hi @ajitmec,
The error you are facing is due to the use of an invalid API key. Please make sure the API key is correct, and also ensure that you are using the same variable name in the secrets section as in your code. Also make sure you are using the latest API key generated by you not the old one.
If you still face the issue you can share your repil to support@boltiot.com
Do try this and let us know. If you still face any issue, please feel free to get back to us.
Hi @ajitmec
Please make sure that you install the boltiotai library using the following command:
pip install boltiotai
Do try this this and let us know if it works.
As you said, @lakshita.beniwal. I have done it perfectly as you said and did it once again.
But after going through, I figured out the error is in line 14.
And yes, @sneharsh.kerkar, as you said to run that line, I already did that.
But still the same error.
Hi @ajitmec,
Please share your repil with support@boltiot.com to help us resolve the issue. You can click on the “Invite” option in your repil and share it with the provided email address.
Yeah, I did that, can you please check?
Hi @ajitmec ,
I reviewed your code and found that the error was caused by an incorrect API_KEY
. After updating it to the correct one, the issue was resolved. Please make sure you are using the right API key in your code.
On clicking the URL the output is :
Please make sure you are using the latest api_key generated from bolt training website.
You can generate new API_KEY and use it in the secret section
If you still face any issue please feel free to ask us.
Thank you soo much.
It worked!
My API Key Portal says that I have generated 10/10 images, but the last time I have checked, it was 7/10. I never touched my Code or executed it for more than a month, and now it’s saying I have generated 10/10 images. Please help me out. I will not be able to complete my training anymore.
Hi @ajitmec,
We have reset the usage to zero as a special case. However, since it’s a paid API from ChatGPT, we may not be able to reset the usage again. Please monitor the usage and ensure that you don’t run out of available credits before the final exam. Also, you can use one API key across all your projects, just copy it somewhere safe and reuse it.