Skip to content

Error codes

All API errors return a JSON body with an error field containing a machine-readable code and a human-readable message.

{
"error": "credit_insufficient",
"message": "Your balance is too low for this generation. Top up at https://depicta.ai/dashboard/billing"
}
HTTPCodeMeaningWhat to do
400bad_requestInvalid request body or parametersCheck the request against the API reference
401auth_invalidMissing or invalid API keyVerify your key starts with dpct_ and is active
402credit_insufficientBalance below EUR 0.01Top up credits in the dashboard
403auth_email_not_verifiedEmail not verifiedCheck your inbox for the verification link
403content_rejectedPrompt or image violated content policyRevise your prompt and try again
403account_suspendedAccount suspendedContact support via the dashboard
404not_foundEndpoint or resource not foundCheck the URL and method
413payload_too_largeUpload exceeds 50 MBReduce file size before uploading
429rate_limitedToo many concurrent requests (max 10)Wait for the Retry-After header duration
500internal_errorServer errorRetry with backoff; check the status page

The CLI maps API errors to exit codes:

Exit codeMeaningCorresponding HTTP
0Success200, 201, 202
1General error400, 404, 500
2Authentication failure401, 403 (auth)
3Insufficient credits402
4Content rejected403 (content)
5Rate limited429