Error Codes
API error codes and troubleshooting
Error Codes
Reference for all APIXO API error codes and how to handle them.
HTTP Status Codes
| Code | Name | Description | Action |
|---|---|---|---|
200 | OK | Request successful | Process the response |
400 | Bad Request | Invalid request parameters | Check your request body |
401 | Unauthorized | Missing or invalid API key | Verify your API key |
403 | Forbidden | API key lacks permission | Check key permissions |
404 | Not Found | Resource doesn't exist | Verify model ID or task ID |
429 | Too Many Requests | Rate limit exceeded | Wait and retry with backoff |
500 | Server Error | Internal server error | Retry after a few seconds |
503 | Service Unavailable | Model temporarily unavailable | Try again later |
Task Failure Codes
When a task fails, the response includes failCode and failMsg:
Content Errors
| failCode | Description | Solution |
|---|---|---|
CONTENT_VIOLATION | Prompt violates content policy | Modify your prompt |
NSFW_DETECTED | NSFW content detected | Use appropriate content |
PROMPT_TOO_LONG | Prompt exceeds character limit | Shorten your prompt |
INVALID_PROMPT | Prompt is empty or malformed | Provide a valid prompt |
Image/Media Errors
| failCode | Description | Solution |
|---|---|---|
INVALID_IMAGE_URL | Cannot access the provided image URL | Use a publicly accessible URL |
IMAGE_TOO_LARGE | Input image exceeds size limit | Resize to under 10MB |
UNSUPPORTED_FORMAT | Image format not supported | Use JPEG, PNG, or WebP |
IMAGE_DOWNLOAD_FAILED | Failed to download reference image | Check URL accessibility |
Processing Errors
| failCode | Description | Solution |
|---|---|---|
PROCESSING_TIMEOUT | Generation took too long | Retry the request |
MODEL_UNAVAILABLE | Model is temporarily offline | Try again later |
GENERATION_FAILED | Generic generation failure | Retry with different parameters |
INSUFFICIENT_CREDITS | Account has no credits | Add credits to your account |
Error Response Examples
400 Bad Request
401 Unauthorized
429 Rate Limited
Error Handling Best Practices
Retry Strategy
Handling Task Failures
Getting Help
If you encounter persistent errors:
- Check the status page for outages
- Review your request against the API Reference
- Contact support with your
taskIdfor debugging