Issue Accessing ChatGPT (gpt-3.5-turbo and others) using API Key

I am encountering an issue when trying to access the ChatGPT (gpt-3.5-turbo and others) model using my API key.

DESCRIPTION

When I make this call…

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-proj-sEcrETsEcrETsEcrETsEcrETsEcrETsEcrETsEcrETsEcrET" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [{"role": "user", "content": "Hello, how are you?"}]
  }'

…the following error is being returned…

{
    "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": null,
        "code": "insufficient_quota"
    }
}

DETAILS

  • API Key: [api-key]ETsEcrET
  • Subscription Plan: “Plus” (USD $20/month)
  • Steps Taken: Verified model name, checked subscription plan, attempted using gpt-3.5-turbo successfully, verified current quota, verified for more projects, double check on API Key.

Any ideas on how I can resolve this? :hugs:

NOTE: I have a subscription to OpenAI, but we don’t really have support, just “AI Bots” and an open forum… Absurd… :disappointed_relieved:

We are also receiving this error message today when using any models. We haven’t used our organization balance even remotely, as there is plenty of headroom for usage. We have confirmed our token usage is not high either and that we have not hit the token limits of any of the models.

We have also tried a different, separate account using a new API key, but we are continuing to receive the same error, “You exceeded your current quota, please check your plan and billing details.”

The status site for OpenAI doesn’t show any issue with the API right now. Either, but it doesn’t matter which account we try to use we are still receiving the same error.

1 Like

We resolved this issue by going into the Settings > Billing and looking at our balance. We had a -$.0.70 balance, and it states in there, “When your credit balance reaches $0, your API requests will stop working. Enable automatic recharge to automatically keep your credit balance topped up.”

Even though we had a sufficient usage limit and balance set, the credits balance was not positive and we did not have the auto recharge setup, which is what caused the error message.

I hope this helps you in resolving your problem as it did for us.