openai-python
openai-python copied to clipboard
You exceeded your current quota, please check your plan and billing details
Describe the bug
python code:
`import openai openai.api_key = "sk-m0DqPqTSAWoZ2XXXXXXXXXBZ4C" # api_key hidden
completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world!"}]) print(completion.choices[0].message.content)`
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.
personal accout, google about this problem. Seems like i need to bind a credit card first before i can use ths API?
To Reproduce
pip install openai run the code above
Code snippets
import openai
openai.api_key = "sk-m0DqPqTSAWoZ2XXXXXXXXXBZ4C" # api_key hidden
completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world!"}])
print(completion.choices[0].message.content)
OS
Windows 10 Home Version 22H2
Python version
Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] on win32
Library version
openai.version.VERSION '0.27.1'