Demo, all content is generated
Question

OpenAI 429 "You exceeded your current quota" on my very first request

Solved · 524 views · asked by mateo_g · edited

New OpenAI account, made a key, first call from my python app:

openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details.', 'type': 'insufficient_quota', 'code': 'insufficient_quota'}}

How can I exceed a quota with 1 request? I have ChatGPT Plus.

What I’ve tried

Waited an hour, made a new key, tried gpt-4o-mini instead of gpt-4o.

Comment

3 answers

Marked as helpful by the asker
grace_mw · edited

insufficient_quota isn't a rate limit, it means there's no billing on the API account. ChatGPT Plus is a separate subscription and doesn't include API usage.

Go to platform.openai.com > Settings > Billing, add prepaid credits ($5 is plenty to start). Keys may take a few minutes to pick it up; if it still fails, create a fresh key after adding credits.

Handle 429 differently in code: insufficient_quota = billing problem, don't retry. A real rate limit (rate_limit_exceeded) = back off and retry.

Comment
added $5, works. didn't know plus is separate mateo_g · edited
old_school_raj · edited

Also double-check the key belongs to the org/project where you added credits. If you're in multiple orgs, the dashboard happily lets you add money to the wrong one.

Comment
ruby_t · edited

Same confusion here a while ago. Would be nice if the error said "add credits" haha

Comment
right?! mateo_g · edited