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!