Ifan 767
Ifan 767

Reputation: 512

You exceeded your current quota, please check your plan and billing details with new ChatGPT account?

a Few days back, I created an account with chat gpt. Now I have tried api the first time but it's giving me an error; my quota has finished. but I have not used it. even in the usage section, it's telling 0 calls so far. I still have full credit. I created an account 5 days ago. and created API key 24 hours ago.

import openai
import os

# Set up OpenAI API client

openai.api_key = 'string_key'
# model_engine = "curie" # choose a language model, for example 'davinci' or 'curie'
# model = 'gpt-3.5-turbo'

# Generate text with GPT
prompt = 'what is moon size'
response = openai.Completion.create(
engine='gpt-3.5-turbo',
prompt=prompt,
max_tokens=10,
n=1,
stop=None,
temperature=0.5,
 )
print(response.choices[0].message.content)

But I saw people creating it and using it. is it locked because of country restrictions? just like the Google Bard project only allowed in certain countries?

I have read a couple of questions about that this_anser. But my problem is its a new account and I am using it for the first time. So getting out of quota does not seem right.

Upvotes: 2

Views: 14966

Answers (2)

Ruwan Pathirana
Ruwan Pathirana

Reputation: 157

OpenAI no longer give free 5$ credit for API, That's why you got this error, users can create API keys but it doesn't work. So you have to deposit credit (more than 5$) to your openAI account. Then you can use your API key.

OpenAI pricing

Upvotes: 1

Jay
Jay

Reputation: 1

I had the same message. It seems you need to have a paid account to use the API. I set up a pay as you go account and it cleared that particular error ( now getting another! but there may be a error in my code ) . Looking around online it seems to be the case though. Also worth noting that once you sign up as pay as you go, you lose the $18 grant.

Upvotes: 0

Related Questions