Title: Issue with API Quota - Never Used API Before

Hello,

I am French and I don’t understand English very well.
I have a problem with the OpenAI API. I received a message indicating that I have exceeded my quota, but I have never used the API before.

I am unable to use the API from Python or curl. I paid €21 for access to the API with the “ChatGPT Plus $20 USD/month” plan and I don’t understand what the problem is.

Here is an example of the error message I am receiving:

ruby

anons@anons:~/Bureau/discord_bot/chatgpt$ curl https://api.openai.com/v1/embeddings \
  -H "Authorization: Bearer sk-projXXXXX" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "The food was delicious and the waiter...",
    "model": "text-embedding-ada-002",
    "encoding_format": "float"
  }'
{
    "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"
    }
}
anons@anons:~/Bureau/discord_bot/chatgpt$ curl https://api.openai.com/v1/embeddings \
  -H "Authorization: Bearer sk-None-XXXXX" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "The food was delicious and the waiter...",
    "model": "text-embedding-ada-002",
    "encoding_format": "float"
  }'
{
    "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"
    }
}

I would appreciate any help in resolving this issue. Thank you!

Welcome to the community!

It sounds like the issue is that you’ve purchased a ChatGPT subscription on chat.openai.com

But you actually want API access. That is something completely different. You need to purchase API credits (not a subscription) from platform.openai.com.

If you can get the playground to work (https://platform.openai.com/playground/chat) your API access should be good to go :slight_smile:

2 Likes