Do I have to be a paid user before I can try the APIs?

I am new to openai’s world, however, as I started to follow the developers’ tutorial, I found some problems:
from openai import OpenAI
client = OpenAI()

completion = client.chat.completions.create(
model=“gpt-3.5-turbo”,
messages=[
{“role”: “system”, “content”: “You are a poetic assistant, skilled in explaining complex programming concepts with creative flair.”},
{“role”: “user”, “content”: “Compose a poem that explains the concept of recursion in programming.”}
]
)

print(completion.choices[0].message)

The error is:
raise self._make_status_error_from_response(err.response) from None
openai.RateLimitError: Error code: 429 - {‘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’: None, ‘code’: ‘insufficient_quota’}}

Shall I be a paid user at first?

Are you on a new account, or are you using an api key that was generated by someone else (like in a company)?

New accounts get 5$ of free credit, after that you’ll have to pay

1 Like

Yesterday’s copy of the answer:

1 Like