Even Though I have Credits $5, Still getting RateLimitError Error code: 429 - {

I have created account 10 days ago, credited my account with 5$. did not used any api but when I added secret key and tried to use the gpt-3.5-turbo-0125 its throwing the same error again and again even if I have tried to revoked the previous api_key and creation of new api_key.

Below is the error I am getting.

 Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

The code that I am trying to implement is as below.

from langchain.chains import create_sql_query_chain
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="gpt-3.5-turbo-0125", temperature=0)
generate_query = create_sql_query_chain(llm, db)
query = generate_query.invoke({"question": "Hey"})

Note: I have also tried to remove existing credit info and adding new card info, again 5$ deducted but it is not showing in my account balance.

Hi, I had the same problem. I read in some places that it might be a bug, but in a section of the documentation it says “When the following criteria are met, you will automatically move to the next level: At least $5 spent on the API since account creation.”
Which seems to me that in addition to adding credits, you need to spend them until you reach Tier 1, which has unlimited embed token generation.

I’m not sure if it will work after spending them, but for now I’ve managed to reduce my token generation from 9.0 to 5.7 per request using GPT2TokenizerFast and TextSppliter

I am running into the same issue now.

1 Like

Hi, this bug is being investigated, hopefully a fix rolled out soon.

Thanks for taking the time to flag it.

Not sure about OP but my account was manually refreshed (as was communicated to me on email by a support guy) and my issue is resolved.

1 Like

Has this been resolved? I am facing the exact same issue.