Dont geet correcct output for the first api code?

i insert the API key in secrets but code is not run, output of code show like
python3 main.py
Traceback (most recent call last):
File “/home/runner/AICode/main.py”, line 23, in
response = openai.ChatCompletion.create(
File “/home/runner/AICode/venv/lib/python3.10/site-packages/openai/api_resources/chat_completion.py”, line 25, in create
return super().create(*args, **kwargs)
File “/home/runner/AICode/venv/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py”, line 153, in create
response, _, api_key = requestor.request(
File “/home/runner/AICode/venv/lib/python3.10/site-packages/openai/api_requestor.py”, line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File “/home/runner/AICode/venv/lib/python3.10/site-packages/openai/api_requestor.py”, line 619, in _interpret_response
self._interpret_response_line(
File “/home/runner/AICode/venv/lib/python3.10/site-packages/openai/api_requestor.py”, line 679, in _interpret_response_line
raise self.handle_error_response(
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.
exit status 1

Hi @bondarvikramaditya24,

We are looking into this issue. It would be really helpful if you could attach a screenshot of the Open AI page.
go to platfrom.openai.com ---- go to API ---- click on personal ---- go to view API Keys ---- on the left hand side, click on Usage.
After clicking on Usage, send me the screenshot of the whole window.

Hi @bondarvikramaditya24,

Regarding the API issue, many users may encounter an error if they do not have sufficient credits to access the OpenAI API keys.
If you are facing this problem, it is crucial to verify the usage of your API key, particularly if it has a balance of $0 or if it has expired.
In such cases, it is recommended to create a new account using a different phone number and a different email ID.
By doing so, you will receive $5 worth of credits, which will remain valid for three months.