How does topping up your OpenAI account for API use work? Here's how to keep your costs under control
Want to get started with the OpenAI API? Then it's important to know how to top up your account and how to keep an eye on your costs.
Lees in het Nederlands →Want to get started with the OpenAI API? Then it's important to know how to top up your account and how to keep an eye on your costs. In this blog I explain how topping up your account works and how to set up notifications so you don't get any nasty surprises.
Adding credit at OpenAI: how it works
OpenAI uses a prepaid system for the API. That means you first put credit on your account before you can use the AI services. So you pay an amount upfront, which you then use to send requests to the API.
The advantage is that you always know exactly how much you're spending, and you won't be hit with unexpected costs afterwards.
How do you add credit?
- Log in to your OpenAI account via https://platform.openai.com.
- Go to the billing section (Billing).
- Choose the amount you want to add. OpenAI accepts various payment methods, such as a credit card or debit card.
- Complete the payment and the credit is added to your account.
As soon as your credit runs out, the API automatically stops responding to requests. That way you never spend more than you've set.
Tracking costs and usage
In your dashboard you can see exactly how much credit you have and how much you've already used. It's smart to check this regularly, especially if you have an app or website that makes a lot of API calls.
Setting up alerts to keep your budget under control
OpenAI also lets you set up alerts. They give you a heads-up by email or notification as soon as your usage reaches a certain percentage of your credit. For example:
- At 50% of your credit
- At 80% of your credit
- Or any other percentage you like
That way you stay in control and can top up in time or adjust your usage.
Extra tip: set limits
You can also set a monthly limit on your account. That makes sure you never go over a certain amount. Ideal if you're on a tight budget.
In summary
- You pay upfront by topping up credit
- You use this credit to make API requests
- You can always track your usage and remaining credit in your dashboard
- Set up alerts so you're warned when usage is high
- Use limits to cap your spending

