OpenAI has recently discontinued the free tier and you will need to first add credits to your account in order to use the API independent of the model used.
Please refer to this post for a few more details:
OpenAI has recently discontinued the free tier and you will need to first add credits to your account in order to use the API independent of the model used.
Please refer to this post for a few more details: