Unable to connect to API key with credit

Hello everyone

I created an API key and have US$10 credit on my account. I have created a plugin which works fine but when I try and call the API key I get the message: “OpenAI API is not accessible. Please check your API key and network connection.”

I’ve checked the API via a website that tests the API and it says the key is configured but then I get an error message: “Check your billing info at the billing portal”

I have credit. My usage is zero so nothing is getting through vis the API.

OpenAI have ignored my support messages for days. Anybody able to help before I give up and ask for a refund?

Paul

I’ve tried generating another API key and get the same result.

:thinking:

given the above, is that still true?

Sounds like you might have been scammed

That doesn’t sound like an OpenAI error.

What are you using? Plugging your API key into random programs and websites is… …not an amazing idea :confused:


If you want to test your API key, you can go here: https://platform.openai.com/docs/api-reference/chat?lang=curl

paste this into your terminal

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant."
      },
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'

If you don’t have bash, or python, you can use ChatGPT to turn it into a powershell or bat script for you.