You exceeded your current quota, please check your plan and billing details

I want to make me an discord bot that is hosted by I used chatgpt to write the code for the bot. I finally got the bot online and i wrote him !chat hello then i got this message on Does anyone know how to fix this? (i dont want to pay anything)

Usually this can be solved by adding a payment method.
Once you add a payment method, you should create a new API key and use that. Revoke the old one.