# Integrations / OpenAI: Troubleshooting

Source: https://www.kerlig.com/help/integrations/open-ai/troubleshooting

##### Troubleshoot OpenAI error messages and find the solution

**Quota exceeded**

Cause: You have run out of credits or hit your maximum monthly spend.

Solution: [Buy more credits](https://platform.openai.com/account/billing) or learn how to [increase your limits](https://platform.openai.com/account/limits).

**Rate limit reached**

Cause: You are sending requests too quickly.

Solution: Pace your requests. Read the [Rate limit guide](https://platform.openai.com/docs/guides/rate-limits).

**Model unavailable**

Cause: The model you are trying to use does not exist or you do not have access to it.

Solution: Make sure you are on `Tier 1` or higher, as Free plan only allows GPT-3.5 Turbo model. To upgrade your OpenAI account buy at least $5 of credits in [Billing](https://platform.openai.com/account/billing).

**Not a chat model**

Cause: The selected model can't be used for chat.

Solution: Choose a chat model, such as a GPT model, in the model picker.

**API key error**

Cause: The requesting API key is not correct.

Solution: Ensure the API key used is correct, or [generate a new one](https://platform.openai.com/account/api-keys).

**No such project**

Cause: The project set in Kerlig's OpenAI settings doesn't exist in your OpenAI account.

Solution: Check the Project ID in Kerlig, or remove it to use your default project. See your [projects](https://platform.openai.com/settings/organization/projects).

**Organization mismatch**

Cause: The API key belongs to a different organization than the one set in Kerlig.

Solution: Clear the Organization ID in Kerlig, or use an API key from that organization.

**Organization not verified**

Cause: Your organization must be verified to stream this model.

Solution: Please go to [Organization settings](https://platform.openai.com/settings/organization/general) and click on **Verify Organization**. If you just verified, it can take up to 15 minutes for access to propagate.

**Access is forbidden**

Cause: OpenAI refused the request. Most often you're using the API from an unsupported country, region, or territory, or your account doesn't have access to the model.

Solution: Check the [supported countries](https://platform.openai.com/docs/supported-countries) and your organization's [model access](https://platform.openai.com/settings/organization/limits).

**Server error**

Cause: The server had an error while processing your request.

Solution: Retry your request after a brief wait and contact us if the issue persists. Check the [status page](https://status.openai.com/).

**Input too large**

Cause: Request too large for used model on tokens per minute (TPM).

Solution: The input or output tokens must be reduced in order to run successfully. Visit [Rate limits](https://platform.openai.com/account/rate-limits) to learn more.

**Message too long**

Cause: The request is longer than the model's context window, the most text it can read at once.

Solution: Shorten the selected text, start a new chat, or switch to a model with a larger context window.

**Image too large**

Cause: An attached image is larger than OpenAI accepts.

Solution: Attach a smaller image, or compress it first.

**Message flagged**

Cause: OpenAI's safety system rejected the request.

Solution: Rephrase your request. If you think it was flagged by mistake, contact OpenAI support.

**Billing not active**

Cause: Your account is not active.

Solution: Check your billing details in [Billing](https://platform.openai.com/account/billing).

**Incorrect Base URL**

Cause: You use custom Base URL which is incorrect.

Solution: Use valid URL as a Base URL.

**Server overloaded**

Cause: Our servers are experiencing high traffic.

Solution: Please retry your requests after a brief wait.

**Connection error**

Cause: Kerlig couldn't reach OpenAI.

Solution: Check your internet connection, VPN or proxy, then try again. Check the [status page](https://status.openai.com/).

**Error**

Cause: Something went wrong that Kerlig doesn't recognize.

Solution: Read OpenAI's own message, shown under the error. It usually names the cause. If it doesn't help, click **Copy details** and send it to [support@kerlig.com](mailto:support@kerlig.com).

---

[See OpenAI Error codes](https://platform.openai.com/docs/guides/error-codes)
