You can buy credits on the OpenAI Developer Dashboard, under Accounts > Billing page
Next, go to the Usage Limits page, and set the Monthly budget field to the same as the value above (e.g.: 120), then save your changes.
Once you have purchased credits, GPT4 models will be available to you.