#You exceeded your current quota, but is the first request that I did

11 messages · Page 1 of 1 (latest)

wheat crypt
#

Hi, I don't understand why when I use the ChatGPT API since Python it doesn't let me do any request if I didn't do any request before xD. It says that I've exceeded my current quota, but, I haven't done any request with that token before.

code:

''
import os
import openai
from dotenv import load_dotenv

load_dotenv()

openai.api_key = os.getenv("OPENAI_TOKEN")
completion = openai.Completion()

prompt = "Hi, ¿how are you?"
model = "gpt-3.5-turbo"
temperature = 0.7
max_tokens = 60

response = completion.create(
engine=model,
prompt=prompt,
temperature=temperature,
max_tokens=max_tokens
)

message = response.choices[0].text.strip()
print(message)
''\

Error:
raise self.handle_error_response(
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

Sorry if is a thing very obviously, I am new working with the API.

jagged valve
jagged valve
# wheat crypt I have to pay?

Running these queries takes a considerable amount of electrical power and processing power, provided by OpenAI. It's not as simple as sending you some text. As such, yes, the API has a cost. You can find these costs in your API account, click your name and click "pricing." You should have been provided with an $18 grant that is good for 3 months - however, if I recall, you still must add a payment method before you are allowed to tap into that grant, but I could be wrong. Double check.

wheat crypt
jagged valve
jagged valve
#

But like I said, if you just created your API account, you should have been given an $18.00 grant to use it for free

#

So double check that in your account, add a payment method, and you should be good to go.