Error: You exceeded your current quota, please check your plan and billing details

Hello!, I’m getting openai.error.RateLimitError: 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.,
It’s an error previous resolved (can’t include links), but today is happening to me, I’m using the whisper-1 api.
I’ve already created a new key but still getting the same error. My account is Pay as you go and my spend limit is $20 right now ($0 used by now).
Anyone with the same problem today?

2 Likes

the same to you.

curl *******/v1/chat/completions -H “Content-Type: application/json” -H “Authorization: Bearer sk-*****” -d ‘{
“model”: “gpt-3.5-turbo”,
“messages”: [
{
“role”: “system”,
“content”: “You are a poetic assistant, skilled in explaining complex programming concepts with creative flair.”
},
{
“role”: “user”,
“content”: “Compose a poem that explains the concept of recursion in programming.”
}
]
}’

“error”: {
“message”: “You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: ****.”,
“type”: “insufficient_quota”,
“param”: null,
“code”: “insufficient_quota”
}

Welcome to the community!

For some reason, your limit is set to 0.00. have you tried clicking on the “increase limit” button?

It’s possible that this no longer works. Have you checked your email? I’ve gotten mine on monday:

My API is work, thanks for your help!

1 Like

@Diet Thanks!! You’re right, pay as you go doesn’t work anymore, even if the email said it will starts on 25th March, But yeah I bought some credits and also I’ve created a new API Key (Old one didn’t work) and worked as before!.

1 Like

Happened to me few minutes ago, not sure what kind of limit I was hitting tho.

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.

Hi - do you have sufficient pre-paid credits on your account?

1 Like

Aha, I have a negative balance now. But I am on Pay-as-you-go plan, it said it would charge my credit card whenever the credit is low.

Thanks dude, manually top up the balance and the API is working now. It’s a bit confusing looking at the $8.87 / $30 limit that I thought I still have $30 pre-paid credits.

2 Likes

Yes, as we sniff out in numerous confusions about the user interface: placing the current credit balance on multiple screens front-and-center, or the destination as soon as you log in, could clear up why the API returns an error for so many.

It currently is much easier to find “usage” than “billing overview” – which then has information unrelated to past usage to confuse and also incomplete information about the account balance.

We were able to resolve the issue by creating a new separate API and discontinuing the use of environment variables.

I had the same error about exceeding the quota for the API key even though I haven’t used it at all this month, in my case I was able to resolve it by creating a new project specifically for the API key.
The project API key I was using was being set to the “default” project, which apparently had a usage limit of zero, maybe they changed how it works recently because it worked fine a few months ago