AIone API (English)
    • 01 - Quick Start
    • 02 - Authentication
    • 03 - Error Codes
    • 04 - Pricing
    • 05 - Contact Us
    • 06 - Quality of Service
    • 07 - Complete Examples
    • 08 - Caching & Cost Optimization
    • 11 - Model Quality Monitoring
    • 12 - Network & Connectivity
    • 13 - Model Naming & Compatibility
    • 14 - Gemini Image Generation
    • 09 - Model Verification
    • 10 - IDE Integration

    03 - Error Codes

    HTTP Status Codes#

    Status CodeMeaningRecommended Action
    200Success--
    400Bad RequestCheck JSON format and ensure all required parameters are present
    401Authentication FailedVerify that your API Key is correct and has not expired or been disabled
    403ForbiddenThis key may not be authorized to access the requested model
    429Rate Limit ExceededReduce request frequency, or contact support to increase your RPM quota
    500Internal Server ErrorRetry the request; if the issue persists, submit a support ticket
    502/503Upstream Service UnavailableWait and retry; consider switching to an alternative model

    Error Response Format#

    {
      "error": {
        "message": "Invalid API key provided: sk-nex-xxx...xxx.",
        "type": "authentication_error",
        "code": "invalid_api_key"
      }
    }

    Common Errors and Solutions#

    invalid_api_key#

    Invalid API key provided
    Cause: The API Key is incorrect or has been deleted.
    Solution: Go to the console to verify the key status and re-copy the full key.

    model_not_found#

    Model 'xxx' not found
    Cause: The model ID is misspelled, or the model is not enabled for your plan.
    Solution: Check the model ID for correctness (model IDs are case-sensitive). Query the /v1/models endpoint to retrieve the full list of available models.

    rate_limit_exceeded#

    Rate limit exceeded
    Cause: Request frequency has exceeded the RPM (requests per minute) quota.
    Solution: Reduce request frequency and increase the interval between requests. Contact support if you need a higher quota.

    context_length_exceeded#

    This model's maximum context length is xxx tokens
    Cause: The combined input and output token count exceeds the model's context limit.
    Solution: Reduce the input length or lower the max_tokens parameter.

    Retry Strategy#

    For 429 and 5xx errors, we recommend exponential backoff:
    Modified at 2026-04-04 15:55:30
    Previous
    02 - Authentication
    Next
    04 - Pricing
    Built with