Billing hard limit has been reached error on Free account

Hi, I’m trying to familiarise myself with the API and implemented a simple image request as described in the Github OpenAIKit Swift SDK documentation.

However I’m seeing the following error on my very first request:
{
“error”: {
“code”: “billing_hard_limit_reached”,
“message”: “Billing hard limit has been reached”,
“param”: null,
“type”: “invalid_request_error”
}

If I check my account limits, I see that I’m on a Free account.
However, the limits for using the dall-e-2 api (which the sdk uses) are specified as follows on the limits page of my Personal account.

Can someone confirm if these limits are for Free tier or paid tier? Because the wording that precedes the rate limits table is confusing as it says: “Your organization’s rate limits are listed below”. It doesn’t mention if the limits are when on a free or paid tier.

Thank you!

Welcome to the community!

The error means that you ran out of money.

https://platform.openai.com/usage shows your limits
https://platform.openai.com/account/billing/overview allows you to stock up on credits

The page in the documentation you cited is talking about your rate limit.

Thank you for the welcome!

Edit: So it turns out that although I’m only using the API now, I had created an account quite some time ago and the free $5 credits have since expired. It would’ve helped though if the documentation would state the same on the limits page.

1 Like