#OpenAI PY LIB You exceeded your current quota, please check your plan and billing details.

7 messages · Page 1 of 1 (latest)

mental latch
#

Hello there. I am trying to use the GPT-3.5-turbo via python. I used this sample code from the api-reference filled in my API key and bought 5 Usd of credits. How ever is still get this error:
openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

Sample:

import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")

completion = openai.ChatCompletion.create(
  model="gpt-3.5-turbo",
  messages=[
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello!"}
  ]
)

print(completion.choices[0].message)
#

Fixed

rapid dirge
#

hey how was this fixed? i have exactly the same problem

#

except using c# and unity

#

but same issue, have 5 dollars credit and its saying over quota

#

nevermind working now. seems it takes about 10 minutes to kick in even though the balance immediately updates

#

something openai really should warn you about when you topup