# OpenAI API Error Codes

{% embed url="<https://platform.openai.com/docs/guides/error-codes>" %}

<table><thead><tr><th width="130.06669108072919" valign="top">Error Codes</th><th width="275.199951171875" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><strong>401</strong></td><td valign="top">Invalid Authentication</td><td valign="top"><strong>Cause:</strong> Invalid Authentication.<br><strong>Solution:</strong> Ensure the correct <a href="https://platform.openai.com/settings/organization/api-keys">API key</a> and requesting organization are being used.</td></tr><tr><td valign="top"><strong>401</strong></td><td valign="top">Incorrect API key provided</td><td valign="top"><strong>Cause:</strong> The requesting API key is not correct.<br><strong>Solution:</strong> Ensure the API key used is correct, clear your browser cache, or <a href="https://platform.openai.com/settings/organization/api-keys">generate a new one</a>.</td></tr><tr><td valign="top"><strong>401</strong></td><td valign="top">You must be a member of an organization to use the API</td><td valign="top"><strong>Cause:</strong> Your account is not part of an organization.<br><strong>Solution:</strong> Contact us to get added to a new organization or ask your organization manager to <a href="https://platform.openai.com/settings/organization/people">invite you to an organization</a>.</td></tr><tr><td valign="top"><strong>401</strong></td><td valign="top">IP not authorized</td><td valign="top"><strong>Cause:</strong> Your request IP does not match the configured IP allowlist for your project or organization.<br><strong>Solution:</strong> Send the request from the correct IP, or update your <a href="https://platform.openai.com/settings/organization/security/ip-allowlist">IP allowlist settings</a>.</td></tr><tr><td valign="top"><strong>403</strong></td><td valign="top">Country, region, or territory not supported</td><td valign="top"><strong>Cause:</strong> You are accessing the API from an unsupported country, region, or territory.<br><strong>Solution:</strong> Please see <a href="https://platform.openai.com/docs/supported-countries">this page</a> for more information.</td></tr><tr><td valign="top"><strong>429</strong></td><td valign="top">Rate limit reached for requests</td><td valign="top"><strong>Cause:</strong> You are sending requests too quickly.<br><strong>Solution:</strong> Pace your requests. Read the <a href="https://platform.openai.com/docs/guides/rate-limits">Rate limit guide</a>.</td></tr><tr><td valign="top"><strong>429</strong></td><td valign="top">You exceeded your current quota, please check your plan and billing details</td><td valign="top"><strong>Cause:</strong> You have run out of credits or hit your maximum monthly spend.<br><strong>Solution:</strong> <a href="https://platform.openai.com/settings/organization/billing">Buy more credits</a> or learn how to <a href="https://platform.openai.com/settings/organization/limits">increase your limits</a>.</td></tr><tr><td valign="top"><strong>500</strong></td><td valign="top">The server had an error while processing your request</td><td valign="top"><strong>Cause:</strong> Issue on our servers.<br><strong>Solution:</strong> Retry your request after a brief wait and contact us if the issue persists. Check the <a href="https://status.openai.com/">status page</a>.</td></tr><tr><td valign="top"><strong>503</strong></td><td valign="top">The engine is currently overloaded, please try again later</td><td valign="top"><strong>Cause:</strong> Our servers are experiencing high traffic.<br><strong>Solution:</strong> Please retry your requests after a brief wait.</td></tr><tr><td valign="top"><strong>503</strong></td><td valign="top">Slow Down</td><td valign="top"><strong>Cause:</strong> A sudden increase in your request rate is impacting service reliability.<br><strong>Solution:</strong> Please reduce your request rate to its original level, maintain a consistent rate for at least 15 minutes, and then gradually increase it.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vntranslator.com/help/troubleshooting/machine-translation-mt/openai-api-error-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
