API
Error Codes
Common API errors and how to respond.
| Status | Meaning | Suggested action |
|---|---|---|
| 400 | Invalid request | Check JSON, endpoint, model ID and parameters. |
| 401 | Unauthorized | Verify the Authorization header and API key. |
| 402 | Balance issue | Add prepaid balance or review spending limits. |
| 404 | Not found | Check endpoint path and model availability. |
| 429 | Rate limited | Reduce concurrency and retry later. |
| 500+ | Server or upstream issue | Retry later and check usage logs. |
Failed requests should be reviewed in the platform's usage and billing logs. Do not assume billing behavior without checking the actual record.