Error Codes
Quick Reference
| Status | Meaning | How to Fix |
|---|---|---|
| 400 | Invalid request parameters | Check JSON, model name, and required fields |
| 401 | Authentication failed | Check API Key and Authorization |
| 403 | Permission denied | Check model permissions and group permissions |
| 404 | Resource not found | Check endpoint path and model name |
| 405 | Wrong method | Confirm GET / POST / PUT / DELETE |
| 413 | Request body too large | Reduce context, image, or file size |
| 429 | Too many requests | Lower concurrency or check rate limits |
| 500 | Internal server error | Check logs and contact admin if needed |
| 503 | Upstream unavailable | Retry later or switch group |
| 504 | Request timeout | Reduce task size or use a stable group |
| 524 | Gateway timeout | Use async APIs for long-running tasks |
401 Example
Wrong:
http
Authorization: sk-logox-your-keyCorrect:
http
Authorization: Bearer sk-logox-your-key404 Example
Common causes:
/v1/chat/completionis missing the finals.- Model name is wrong.
- The current key does not have permission for this model.
429 Example
Common causes:
- Software concurrency is too high.
- Automated workflow calls in a loop.
- The key has rate limits configured.
Fixes:
- Lower concurrency.
- Increase retry interval.
- Use a separate key for high-concurrency workloads.
