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 Code | Type | Error Message | Cause | Solution |
|---|---|---|---|---|
| 400 | Invalid Parameter | Invalid request parameter | Invalid request body format | Check that all required parameters are included, the fields are entered correctly, and the message format meets the API requirements |
| 401 | Authentication Failed | authorization error | Missing or invalid API key, or incorrect Authorization request header format | Check that your API key and request header format are correct |
| 402 | Insufficient Balance | You account balance exceeded your current quota | Insufficient account balance | Check your account balance and top it up promptly |
| 404 | Resource Not Found | The Model not exists | The requested resource or model does not exist | Confirm the model you are using |
| 413 | Request Too Large | Request body exceeds the maximum allowed | The request body size exceeds the limit | Reduce the request body size and keep the number of parameters within the limit |
| 428 | Content Blocked | Beyond my scope as an AI, Try another question | Intercepted by content moderation | Avoid entering unsafe or sensitive content |
| 429 | Rate Limit | Rate limit reached for requests | Requests are sent too fast, exceeding the API’s rate limit | Please reduce the request frequency and keep QPS within the limit |
| 500 | Server Error | The server had an error while processing your request | The server encountered an unexpected error while processing the request | Please wait a moment and retry; if the problem persists, record the request ID and contact support |
| 503 | Service Overload | The engine is currently overloaded | The server is under high traffic load and cannot process requests temporarily | Please wait a moment and retry the request |
| 504 | Task Timeout | The request timed out while processing | A non-streaming request timed out | Use 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