429 Error : insufficient_quota

It has been 48 hours since I purchased credits and my dashboard shows none of the credits have been used, but the response from the API request is the following:

{
“error”: {
“message”: “You exceeded your current quota, please check your plan and billing details.”,
“type”: “insufficient_quota”,
“param”: null,
“code”: “insufficient_quota”
}
}

Head over to OpenAI Platform and set the monthly budget for your account. It seems that right now it’s only $10.

If you receive error 429, this means that the server might be overloaded because you’ve sent too many requests. The solution is to apply a retry and backoff function to your code.

Hey Kevin,

Thanks for the reply. I have set the budget at $50. I will add the retry and backoff function in the code and see if that works. I did test that out earlier, but I will try it again. What is the best way to go about implementing that?

Take look at this:
Nodejs:

https://help.openai.com/en/?q=429

So I set the maxRetries to 0 and it didn’t help. I did some searching and found out that it might be because of the stripe payment integration that OpenAI has. I don’t think any change to my code would help, because it is a simple function.

Even with postman I get the same response. It is just on OpenAI’s side. It is probably an issue in their backend.

I don’t think so, It’s just bad practice that openai would sync usage requests with strip.

I reached out to support and they said “thanks for the bug report”. I also posted it on github, but no one on github replied yet.

It looks like you’re in a monthly payment plan, have been billed at the end of the month before. Haven’t used any API.

This is the link that shows your current credit balance. Or shows your increasing pending invoice if you are on a monthly bill plan.

https://platform.openai.com/account/billing/overview

If it shows "You’ll be billed at the end of each calendar month for usage during that month." then the only thing that should hold you back is your billing limits, click usage limits there to see if you set a hard limit.

One thing that may stop you is that to some accounts like mine they recently added a different second organization out of the blue. Go to API keys, and at the bottom, make sure your original organization is selected and not a new one with nothing going on.

At the very bottom of the bar you click on your name icon, you’ll get a pop-up where you can switch organizations.

Thank you! You were right. I had the API key under ‘personal’, but I bought the credits with my student account.

Thank you my problem has been solved.