Documentation

Errors and Status Codes

Error meanings and troubleshooting

StatusMeaningAction
400Invalid requestCheck JSON and model-supported fields
401Authentication failedCheck the header and API key
403Access restrictedCheck account, group, and allowlist
404Resource not foundCheck path, model ID, or task ID
429Rate or quota limitBack off and check balance and RPM/TPM
500Service errorRetry later and retain the request ID

Verify that OpenAI-compatible base URLs retain /v1, while the Anthropic base URL does not include it.