Skip to Content

Error Codes

When calling the Ant Ling API, you may encounter the following errors. This article lists the causes and solutions for common error codes to help you quickly locate and resolve issues.

Error Codes List

Error CodeTypeError MessageCauseSolution
400Invalid ParameterInvalid request parameterInvalid request body formatCheck that all required parameters are included, the fields are entered correctly, and the message format meets the API requirements
401Authentication Failedauthorization errorMissing or invalid API key, or incorrect Authorization request header formatCheck that your API key and request header format are correct
402Insufficient BalanceYou account balance exceeded your current quotaInsufficient account balanceCheck your account balance and top it up promptly
404Resource Not FoundThe Model not existsThe requested resource or model does not existConfirm the model you are using
413Request Too LargeRequest body exceeds the maximum allowedThe request body size exceeds the limitReduce the request body size and keep the number of parameters within the limit
428Content BlockedBeyond my scope as an AI, Try another questionIntercepted by content moderationAvoid entering unsafe or sensitive content
429Rate LimitRate limit reached for requestsRequests are sent too fast, exceeding the API’s rate limitPlease reduce the request frequency and keep QPS within the limit
500Server ErrorThe server had an error while processing your requestThe server encountered an unexpected error while processing the requestPlease wait a moment and retry; if the problem persists, record the request ID and contact support
503Service OverloadThe engine is currently overloadedThe server is under high traffic load and cannot process requests temporarilyPlease wait a moment and retry the request
504Task TimeoutThe request timed out while processingA non-streaming request timed outUse a streaming request to execute the task

Contact Support

If the above methods cannot resolve your issue, please contact us through:

  • Provide the complete error information and request ID
  • Describe the steps to reproduce the problem
  • Describe your use case and request volume
Was this page helpful?
Last updated on