Skip to main content
API Error Codes

Causes and resolutions for the most commonly experienced error codes on the OpenAI API

Updated over 8 months ago

401 - Invalid authentication

Cause: Invalid Authentication

Solution: Ensure the correct API key and requesting organization are being used.

403 - Country, region, or territory not supported

Cause: You are accessing the API from an unsupported country, region, or territory.
Solution: Please see this page for more information.

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.

403 - Country, region, or territory not supported

Cause: You are accessing the API from an unsupported country, region, or territory.
Solution: Please see this page for more information.

Cause: The requesting API key is not correct.

Solution: Ensure the API key used is correct or generate a new API key.

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 here.

Cause: You have hit your assigned rate limit.

Solution: Pace your requests. Read more here.

Cause: For customers with prepaid billing, you have consumed all credits in your account. For customers with monthly billing, you have exceeded your monthly budget.

Solution: Buy additional credits or increase your limits.

Cause: Our servers are experiencing high traffic.

Solution: Please retry your requests after a brief wait.

500 - The server had an error while processing your request.

Cause: Issue on our servers.

Solution: Retry your request after a brief wait and contact us if the issue persists. Read status page.

503 - The engine is currently overloaded, please try again later

Cause: Our servers are experiencing high traffic.
Solution: Please retry your requests after a brief wait.

Did this answer your question?