429 Too many requests error when using openai api

Hello, I’m a developer using openai api.

I am getting GPT’s response with createChatCompletion, but no matter how many times I request, I get 429 Too many requests error. Even after waiting and trying for more than a day, it’s the same.

I am developing with nodejs and requested with gpt-3.5-turbo model.

Previously, when I got 429 Too many requests, I changed the API key to a new account because it didn’t work.

If anyone has experience with this, please advise.

This error is usually there when you send a lot of requests in a very short span of time. Using exponential backoff is the best way to avoid this problem.

same problem here. even using exponential back off.

i even tried adding a credit card, the limits increased greatly, and it didn’t help at all!

have you found any solution?

I am getting 429 errors with message too many requests even when way under the requests per minute and token limits. I’m getting limited based on the number of requests, but I am only sending about 30 requests per minute, with no requests more frequent than every 2 seconds. I have verified the number of actual requests being sent both in my code and on the openai usage page. This is using gpt-4 in a paid account, so the limit should be 200 requests per minute, more than 10x beyond what I’m getting limited at. Any ideas? Thanks for your help.

I have just created a new project, and when i tried to run it the first time, I got this error!. Didnt work even the ** first request**.
This is the code:
const configuration = new Configuration({
apiKey: env,apiKey,
const openai = new OpenAIApi(configuration);
const chatCompletion = await openai.createChatCompletion({
model: ‘gpt-3.5-turbo’,
messages: [{role: “user”, content: message}],

Any clue?


What is the full error message you are getting?. Wrap your code in a try catch like this and get the message to share here if you still need help resolving the issue.

try {
    const chatCompletion = await openai.createChatCompletion({
} catch (error) {
    console.error(error.response.data ?? error.message);


I have this:

error Object { message: “You exceeded your current quota, please check your plan and billing details.”, type: “insufficient_quota”, code: “insufficient_quota”, … }

I created a new apikey and stil the error persist :frowning:

Do you have billing info entered on your account? You’ll need to add a credit card to your account here.

1 Like