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

2 Likes

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.

Recently I have charged my account with 10 dollars (Account ID :- enganish213@outlook.com) even though I am getting Insufficient Quota. I have also mentioned the code below that for what purpose I am using it :-1:
{“embeddings=OpenAIEmbeddings()
vector=embeddings.embed_query(‘Generating Embeddings’)”}
I am basically trying to generate embeddings for Vectorization but its throwing Error. I have a deadline to complete this task but its keep on throwing this error:

Error:- 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’}}

Unfortunately, they don’t tell you (and you’d have to scour this forum to find anecdotes of others) that it may take many hours after a payment for a 0-balance account to become reactivated again after you make a new payment.

You can try generating a new project key, and make sure all project endpoint rights and all API key AI models you want are enabled, just on the off chance a new one gets activated sooner than existing keys.

using free keys (free 5$ tokens) and not a single penny i used since i tried to create POC application but still this error shown. Create whole new account and also try making new keys million time but still not able to use it . please help me

Free trial credits have been discontinued. Mainly because of those that “create a whole new account”. You’ll have to actually pay for your use of the API now by purchasing credits.

2 Likes

I’m struggling with the same. I’m a Tier-3 user; I made the swithc to prepaid; I have sufficient funds in my account; I have auto-update activated; I switched to project-based API-keys, have created and tried using multiple new ones - but all of them throw the 429 error code. When JUST using the organization as suggested here, the code throws “OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable”. So that doesn’t work. when I use the organization='...' AND the api-key='...' , I get “AuthenticationError: Error code: 401 - {‘error’: {‘message’: ‘OpenAI-Organization header should match organization for API key’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘mismatched_organization’}”. So once again: help!

I guess it might just have been a timing issue - since a new key didn’t work, I kept making new ones to try in my code - but on the last one I created, I tried again about 30’ after creating it, and then the code did run through… Would be nice if OpenAI would document this!

@sdspieg Hey. Did you solve by passing both the new apikey and org id? Or just apikey?
I am passing just apikey and i have funds , but i am get that error for a few days now.
So it’s not about the daily quota for sure.

Hello, I got credit on my free account, but still get the same error. anyone found any solutions?

1 Like

Yes.

  1. Scroll up a few messages and read about free credits being discontinued.
  2. Explore the account page more, such as pressing the gear icon or selecting “dashboard”
  3. In billing details, observe your $0.00 credit balance. Proceed to making a payment with method you add.