The API is not billed on a subscription basis (and not connected to ChatGPT).
There also has never been any “API for free”.
What you may have had is a free trial credit, Which expired after three months or was exhausted.
Within your account at platform.openai.com, in the selection sidebar you can choose usage, and see the status of any grants.
In billing, the overview will show the balance you have in paid credits, and the option to add payment method and purchase some. (which expire within a year)