Skip to content

Error Codes

All errors follow this format:

{
"error": {
"message": "Human-readable description",
"type": "error_category",
"code": "machine_readable_code"
}
}
CodeHTTPMeaningSolution
invalid_api_key401Key is missing, wrong, or revokedVerify your API key
insufficient_balance402Not enough creditTop up in Wallet
token_expired401Key has expiredCreate a new key
token_disabled403Key has been disabledRe-enable in dashboard
CodeHTTPMeaningSolution
invalid_model400Unknown model IDCheck Models
invalid_duration400Duration out of rangeCheck model’s allowed range
invalid_resolution400Resolution not supportedCheck model’s supported resolutions
invalid_ratio400Aspect ratio not supportedUse one of the valid ratios
invalid_media400Media URL invalid or unreachableVerify URL is public HTTPS
invalid_prompt400Prompt missing or emptyProvide a prompt
content_policy400Content violates policyRephrase your prompt
rate_limit_exceeded429Too many requestsWait and retry
model_price_error400Model pricing not configuredContact support

These appear in the polling response when status: "failed":

CodeMeaningSolution
generation_failedModel failed to generateCheck message; often content-related
timeoutTask exceeded time limitCheck if result exists; don’t resubmit
upstream_errorUpstream service issueWait and retry
media_download_failedReference media couldn’t be downloadedVerify URL accessibility
HeaderDescription
X-RateLimit-LimitMaximum requests per window
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the window resets