A bug maybe? exceeded quota

so i got a simple code form ChatGPT to test answers from the chat’s api
and even on a newly created api Key its says “exceeded quota”
i understand there is a “free trial” for amount of requests, and i got the message on the 1st of newly created account.

Not a bug. A misunderstanding. Beyond OpenAI’s Quickstart:

  1. Don’t follow the AI’s advice to compile a hard-coded API key
  2. API services need to be prepaid (purchasing API credits), and are pay-per-use.
  3. Any free trial program is discontinued.
  4. Then: you can use an AI model beyond ChatGPT’s knowledge cutoff, such as gpt-4o-mini

The error would also have a body message “check your plan and billing details”, hinting where you need to go.