I can't use API because of 401 and 429 problem

I have tried many times for using gpt-3.5-turbo. But there were 401 and 429 problem. I think 429 error disapeared, but, there is still 401 error now. I heard that 401 error occur because of my rights about api keys. So I want to check my rights about keys. Or I want to know there is problem on my account.

Welcome, @gomg3953 .

401 - Invalid Authentication Cause: Invalid Authentication
Solution: Ensure the correct API key and requesting organization are being used.
401 - Incorrect API key provided Cause: The requesting API key is not correct.
Solution: Ensure the API key used is correct, clear your browser cache, or generate a new one.
401 - You must be a member of an organization to use the API Cause: Your account is not part of an organization.
Solution: Contact us to get added to a new organization or ask your organization manager to invite you to an organization.

You’re correct a 401 is your API key not authenticating correctly. You can follow the links in the error message. Here’s the page in the docs for error codes for future reference.

https://platform.openai.com/docs/guides/error-codes

Again, welcome to the community.

2 Likes