Rate limited on first API request (free version)

On my very first call to the OpenAI API:

from openai import OpenAI

client = OpenAI()

chat_completion = client.chat.completions.create(


messages=[{'role': 'user', 'content': 'Hello world'}]


I get the following error:

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 have a free account and haven’t set any billing details. However, according to this, I should have access to 3 requests/minute, 200 requests/day.

On the Usage dashboard I can confirm I haven’t performed any API request yet. Do I need to set up a paid account?

Yes, OpenAI recently discontinued the trial plan but haven’t updated the platform according. If you buy $5 of credits you will be brought to rate limit teir one where you can also use GPT-4, etc.