RateLimitError | Free Trial Open API Key

I am trying to use open AI API key from my local machine. However, when I try using one of the API key generated from my free trial account. I am getting the below error even though I haven’t made any API calls using this API key. Can some help me with this issue?

RateLimitError: You exceeded your current quota, please check your plan and billing details.

2 Likes

Hello @devarajanshiva
The error message suggests that you have hit a quota limit or your credits have expired, so you may need to upgrade your OpenAI API account. You can also open another account using a different email to get some more credits. Yes, some tips can be added to this. Check out this thread: Rate Limit Error - #6 by tom.doerr - API - OpenAI API Community Forum

You don’t need to upgrade your OpenAI account, at least not to get the exercises in this course running locally. I completed porting them all last night. The rate limit I encountered was 3 per minute. So for free, you can’t just hit ‘Run All’. Run a cell manually. Count to 20. Run the next one. No big deal.

**edit actually some of the cells in some of the notebooks have loops with multiple tasks. these do cause problems, but workarounds exist if you care enough

3 Likes

I was actually running only one cell. Still I am getting this error. I am not sure why

1 Like

Sorry, I missed that it wasn’t on an ‘operational’ cell. I def get the rate error if I try ‘run all’, or even click through too fast, But running fine if I do it manually at a slow pace. Both last night and just now.

Do you have more than one key?

no, I just have one key. I even tried creating a new key and deleted the old one. But, didn’t work.

Thanks for the suggestion @Isaak_Kamau. This thread mostly suggests adding a payment method. Even that didn’t solve the issue for most of them. It seems to be an open issue as of now. I will try from a different Open API account and see if that works.

1 Like

I tried with a new account and I am getting the same error even with the new account

looks like it’s also happening to people with paid accounts and available credit…

APIs are almost unusable because of RateLimitError

1 Like

It’s unusable. I tried with my OpenAI API Key and thought there was a free rate limit of 3 per minute, but seems like it’s not free and would require a top-up.

1 Like

Working for me!
I went here: OpenAI Platform and added a payment method to purchase a paid account. Set appropriate limits cause i am a broke student. Deleted old keys; created a new key, copy pasted the new key in the following code:
openai.api_key = ("sk-theNewKeyPastedHere")
and ran the code line by line as mentioned on the page and the video and it worked :handshake:

i keep working with the free version, i just imported another library that lets wating times in automatic so you don´t need to execute each block by separate, just “import time” and before each response add a “time.sleep(20)”