Error code: 429 You exceeded your current quota, please check your plan and billing details

The following error is occurring.
How on earth should I solve this?

openai.RateLimitError: Error code: 429 - {
    'error': {
        'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.',
        'type': 'insufficient_quota',
        'param': None,
        'code': 'insufficient_quota'
    }
}

go here: https://platform.openai.com/usage and check that you have enough credits

if you do and you just came off a free plan, try generating a new api key :slight_smile:

1 Like

Got the same issue. Tried with new api key, no difference. I even get the response when I test an assistant in the web page…
Ive used around $15 of $120 quota.

edit:
never mind. I had auto-recharge off.
Also make sure you are doing the API calls using the correct organization ID.

I have the same issue.
Generated a new key, but it didn’t work.

Is there another solution?

I see what’s going on here now. OpenAI has changed how “Pay as you go” is processed. They want their money up front vs getting billed at the end of the month for only what you have used.

if you have sufficient credits and you are using an organization, you have to specify the organization ID when creating the client instance like so:

from openai import OpenAI
client = OpenAI(organization='<YOUR_ORG_ID>')

You can find your organization id here: https://platform.openai.com/account/organization

1 Like

Is it possible to use OpenAI API with personal account? I’m subscribed to ChatGPT4 however from https://platform.openai.com/usage it says that credit granted are all expired. and from Billing overview paged it say that I’ve never paid for anything.

How to get more free credits? I’ve got free credits in 2023 which are all expired now.