Rate limiting (Error code: 429)

I am constantly getting the below error when trying to follow tutorial examples for the API. I am on the free tier, but haven’t used anything like the limits that apply to that tier.

Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

I can see that other forum users were having similar problems earlier in the year, but haven’t seen any actual solutions. Have I missed something?

Hi, and welcome to the forum.

There is a “free tier” when you haven’t previously paid OpenAI any money to the API billing system, but there is not “free API usage”.

When an account is created (even when created initially for ChatGPT), it may have been granted a trial credit amount, most recently $5. However those expire after three months.

You can see the expired amount on this page: Usage


You can also see your current credit balance and “add payment method”, the first step to adding more credits: Billing overview

1 Like

Thanks! Yes, I see that my credit has expired, and have now added some new funds. I did think that use of the gpt-3.5-turbo model was free, however (within rate limits). Is that not correct?

All API use is paid, charged by the amount of data transferred, usually measured in language tokens.

You can visit the pricing page to see the cost per model.

Model Input Output
gpt-3.5-turbo-1106 $0.0010 / 1K tokens $0.0020 / 1K tokens
gpt-3.5-turbo $0.0015 / 1K tokens $0.0020 / 1K tokens