Why am I getting a RateLimitError on my first request where I ask for a 100 word response?

I just registered with openai, the free tier. I have only made the one request:

client = OpenAI(

completion = client.chat.completions.create(
    {"role": "system", "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair."},
    {"role": "user", "content": "Compose a 100 word poem that explains the concept of recursion in programming."}


Here’s the message:

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'}}

I’ve used other API’s (twitter, flikr, etc) and there’s usually rate limits, but they typically don’t kick in until after the very first request of 100 words…


You probably just don’t have any funds in your account. Try to add funds, and that error will probably go away. I’ve seen a similar error when I was low on my balance.