{"text": "This section outlines the main error codes returned by the OpenAI API, including both the cause and how to resolve the error. \n\n\n\n**Status Code Summaries**\n-------------------------\n\n\n\n\n| | |\n| --- | --- |\n| [401](https://help.openai.com/en/articles/6891767-error-code-401-invalid-authentication) | **Cause:** Invalid Authentication\n**Solution:** Ensure the correct API key and requesting organization are being used. |\n| [404 - Incorrect API key provided](https://help.openai.com/en/articles/6891781-error-code-404-incorrect-api-key-provided) | **Cause:** The requesting API key is not correct. \n**Solution:** Ensure the API key used is correct or [generate a new API key](https://beta.openai.com/account/api-keys). |\n| [404 - You must be a member of an organization to use the API](https://help.openai.com/en/articles/6891827-error-code-404-you-must-be-a-member-of-an-organization-to-use-the-api) | **Cause** Your account is not part of an organization.\n**Solution** Contact us to get added to a new organization or ask your organization manager to invite you to an organization [here](https://beta.openai.com/account/members). |\n| [429 - Rate limit reached for requests](https://help.openai.com/en/articles/6891829-error-code-429-rate-limit-reached-for-requests) | **Cause** You have hit your assigned rate limit. \n**Solution** Pace your requests. Read more [here](https://help.openai.com/en/articles/6891753-rate-limit-advice). |\n| [429 - You exceeded your current quota, please check your plan and billing details.](https://help.openai.com/en/articles/6891831-error-code-429-you-exceeded-your-current-quota-please-check-your-plan-and-billing-details) | **Cause** For customers with prepaid billing, you have consumed all [credits in your account](https://platform.openai.com/account/billing). For customers with monthly billing, you have exceeded your [monthly budget](https://platform.openai.com/account/limits).\n**Solution** Buy additional credits or [increase your limits](https://platform.openai.com/account/limits). |\n| [429 - The engine is currently overloaded. Please try again later.](https://help.openai.com/en/articles/6891834-error-code-429-the-engine-is-currently-overloaded-please-try-again-later) | **Cause:** Our servers are experiencing high traffic.\n**Solution** Please retry your requests after a brief wait. |\n| 500 - The server had an error while processing your request. | **Cause** Issue on our servers.\n**Solution** Retry your request after a brief wait and contact us if the issue persists. Read [status page](https://status.openai.com/). |\n\n", "title": "API Error Code Guidance", "article_id": "6891839", "url": "https://help.openai.com/en/articles/6891839-api-error-code-guidance"} |