88| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |88| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
89| `invalid_request` | **Cause:** Input or configuration is invalid. <br /> **Solution:** Correct the input described in the message before trying again. |89| `invalid_request` | **Cause:** Input or configuration is invalid. <br /> **Solution:** Correct the input described in the message before trying again. |
90| `context_length_exceeded` | **Cause:** Input exceeds the model's context window. <br /> **Solution:** Reduce the input. If the conversation is too long, start a new session with a shorter summary. |90| `context_length_exceeded` | **Cause:** Input exceeds the model's context window. <br /> **Solution:** Reduce the input. If the conversation is too long, start a new session with a shorter summary. |
9191| `session_budget_exceeded` | **Cause:** The session reached its usage budget. <br /> **Solution:** Start a new session to continue. || `session_budget_exceeded` | **Cause:** The turn stopped because the session reached its spending limit. <br /> **Solution:** [Increase or remove the session limit](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage#set-a-session-budget) to continue unfinished work. |
92| `credit_balance_exhausted` | **Cause:** The organization has no API credits remaining. <br /> **Solution:** See [credit balance guidance](https://developers.openai.com/api/docs/guides/error-codes#api-errors). |92| `credit_balance_exhausted` | **Cause:** The organization has no API credits remaining. <br /> **Solution:** See [credit balance guidance](https://developers.openai.com/api/docs/guides/error-codes#api-errors). |
93| `project_spend_limit_exceeded` | **Cause:** The project reached its enforced spend limit. <br /> **Solution:** See [project spend limit guidance](https://developers.openai.com/api/docs/guides/error-codes#api-errors). |93| `project_spend_limit_exceeded` | **Cause:** The project reached its enforced spend limit. <br /> **Solution:** See [project spend limit guidance](https://developers.openai.com/api/docs/guides/error-codes#api-errors). |
94| `organization_spend_limit_exceeded` | **Cause:** The organization reached its enforced spend limit. <br /> **Solution:** See [organization spend limit guidance](https://developers.openai.com/api/docs/guides/error-codes#api-errors). |94| `organization_spend_limit_exceeded` | **Cause:** The organization reached its enforced spend limit. <br /> **Solution:** See [organization spend limit guidance](https://developers.openai.com/api/docs/guides/error-codes#api-errors). |