After creating an API key on my personal account, I am able to make requests to the ChatGPT API. However, I am getting the following errors:
Calling https://api.openai.com/v1/chat/completions with model gpt-3.5-turbo results with error: 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.
Note that my dashboard usage displays as nil - I have not made an API call successfully yet.
If I change the model to be gpt-4, I get the error: The model gpt-4 does not exist or you do not have access to it
Note I also called the https://api.openai.com/v1/models endpoint, received a list of models available to my API key, but calling with any of those models produced the same result.
Is this a time-after-signup-related thing, or an expected issue? Do I have the right models and endpoint? Thank you.
Are you using your API key just checking
Outside of that everything looks right but this is just the basic call you can get way more advanced than this# A curl spell, refined and elegant,
The API usage is not free, nor included with a subscription to ChatGPT plus. Your account must have a funding method to pay for the language data used.
In your account at platform.openai.com, check āsettingsā-> ābillingā and on the main billing overview page see the credit balance that can pay for services
If that page says $0.00 available, along with text āadd payment methodā, then you need to proceed through that to actually purchasing a prepaid credit
Accounts may have been granted a free trial credit when they were originally created, but that also may have expired or never have been granted for your account type.
Also, understand organizations; see if you have more than just āpersonalā when selecting your name in the bottom of the account sidebar, and choose the one that is funded.
I suspect that after investigation, youāll find the reason your API attempts tell you to check your billing details.
Iām not sure why I got flagged, but did you ever figure this out? Iām just curious. I donāt come on here very often. I gotta start. But did you figure it out?