429 - You exceeded your current quota

Hey guys,
I am trying to build a python app with chatGPT, and trying to hit the API. I am keep getting this error. I tried to increase my balance, and added 5$ to my account, but still seeing this error. I’ve verified that my API key is for my org, I tried to set the right org and the right project in the code, but I am getting this error no matter what model I am using from my code, even for this simple query:

client = OpenAI(
    # This is the default and can be omitted
    api_key=os.environ.get("OPENAI_API_KEY"),
)

response = client.responses.create(
    model="gpt-4o",
    instructions="You are a coding assistant that talks like a pirate.",
    input="How do I check if a Python object is an instance of a class?",
)

print(response.output_text)

Any help?
I’ve verified, and I have 5$ under my billing page.

thanks

2 Likes

I am facing the same issue. fresh account, paid 5$ credit available in my credit grant, first API call

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'}}

I have tried to re-create a new API key but nothing. Please help !

1 Like

playground is giving the same error … this must be a mistake or a bug/issue on API side !

1 Like