1For AI
  • Welcome
  • Getting Started
    • Quickstart
  • Model
    • Retrieve Model List
    • Get Single Model
  • Chat
    • Create new chat
    • Continue Chat Conversation
  • User
    • User Balance
  • Errors
    • Common Errors
Powered by GitBook
On this page
  1. Errors

Common Errors

Common Error Cases

400 Bad Request

  • Cause: Malformed JSON or missing required fields in the request.

  • Example Response:

{
  "error": "Invalid request format. Please check your JSON syntax."
}

401 Unauthorized

  • Cause: Missing or invalid API key.

  • Example Response:

{
  "error": "Unauthorized. Please provide a valid API key."
}

404 Not Found

  • Cause: Incorrect endpoint or model name not found.

  • Example Response:

{
  "error": "Resource not found. Please verify the endpoint or model name."
}

429 Too Many Requests

  • Cause: Exceeding allowable usage rates or hitting rate limits (if any future limits are applied).

  • Example Response:

{
  "error": "Too many requests. Please try again later."
}

500 Internal Server Error

  • Cause: Unexpected server-side error.

  • Example Response:

{
  "error": "Internal server error. Please try again later."
}

Notes

  • Always validate your input data before sending requests.

  • In case of consistent errors, contact support with request and response examples for faster troubleshooting.

PreviousUser Balance

Last updated 1 month ago