Error 429 Too Many Requests

I am write some C# code to call the ChatGPT API on the “gpt-4o-mini” model.
I have created an API key. The first time I make an API request as a ‘free account’ user, I am getting the dreaded 429 error ?
Why is this ? I have never used ChatGPT before.
When I signed up, there was a message about my phone number being used. I have never signed up to ChatGPT before so I don’t know why is says this.
As a seasoned software engineer of over 20 years, I find this API rather problematic to use!

1 Like

As a seasoned software engineer, I am sure you are familiar with google and stack overflow. node.js - OpenAI API giving error: 429 Too Many Requests - Stack Overflow

Thanks Lachie, that was exactly what I was looking for but in all the
searches I did, I kept getting responses about credits simply running
out and no mention of first time calls.

It appears that the API is not free and requires payment details. I am
not seeing a ‘Add to Credit’ button, only options to add billing details.
I have recreated by keys but that made no difference.

When you access the page using this URL, is there a link that says “Add payment details”?

https://platform.openai.com/settings/organization/billing/overview

2 Likes

Yes, there is.
Having just created the account, shouldn’t I get a credit ? It is
showing as zero and I haven’t even started making calls!

Unfortunately, it seems that the free credit offering has ended.

That would explain everything.
It’s a shame there’s a lot of inconsistent documentation around.