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.
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?
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.
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.