API v1

Error codes

Every error.code with its meaning, status and endpoints.

View Markdown

Error responses carry error.code and trace_id. Handle error.code, and quote trace_id when you contact us. Retry rules are on Idempotency and retries.

Statuserror.codeMeaningWhat to doRetry as isCharged
400 404asset_not_foundAsset is unknown, deleted or outside your teamCheck an asset, Create a video taskCheck that the asset ID belongs to your team and still exists.NoNo
400asset_unusableAsset failed, has an unsuitable media type or lacks review approval for this requestCreate a video taskUse another asset, or one whose media type fits its role.NoNo
400callback_target_not_verifiedThe address does not exactly match a verified, unrevoked and unexpired callback target owned by your teamCreate a video taskRegister and verify the callback address in the console, or drop callback_url.NoNo
400input_video_duration_exceededCombined video input exceeds the model's duration limitCreate a video taskShorten the reference videos to the model's total limit.NoNo
400invalid_requestInvalid request, including too many references for the modelRegister an asset, Check an asset, Create a video task, List team tasks, Read a video task, Cancel a video task, Read task billingFix the request as error.message describes, then send it again.NoNo
400source_url_not_allowedThe source address does not meet the fetch policyRegister an assetUse a public HTTPS address that the fetch policy accepts.NoNo
400unsupported_capabilityThe available choices cannot satisfy the required capabilities togetherCreate a video taskAdjust the parameters named in error.details.NoNo
401authentication_failedThe request could not be authenticatedRegister an asset, Check an asset, Create a video task, List team tasks, Read a video task, Cancel a video task, Read task billingCheck the API key after Authorization: Bearer.NoNo
403permission_deniedRequired permission is missingRegister an asset, Check an assetUse an API key that has service.use permission.NoNo
404task_not_foundThe task is unknown or not visible to your teamRead a video task, Cancel a video task, Read task billingCheck that the task ID belongs to your team.NoNo
409asset_not_readyA referenced asset is still processingCreate a video taskWait until the asset is active, then retry with the same key and body.After the cause is fixedNo
409idempotency_conflictThe same idempotency value was used for a different requestRegister an asset, Create a video task, Cancel a video taskRetry the original body with the same key; send a new request with a new key.NoNo
409 410idempotency_replay_expiredThe saved response can no longer be replayed exactlyRegister an asset, Create a video task, Cancel a video taskThe original request was accepted: read it by ID instead of sending it again with a new key.NoNo
409key_provisioning_incompleteAPI key setup is incomplete; delete the key and create anotherCreate a video taskDelete this API key and create a new one.NoNo
409task_not_cancellableThis finished task has no cancellation operation to refer toCancel a video taskThe task has already finished; there is nothing to cancel.NoNo
429asset_intake_rate_limit_exceededAsset intake capacity is limitedRegister an assetRetry later with the same key.After the cause is fixedNo
429asset_storage_quota_exceededAsset storage allowance is insufficientRegister an asset, Create a video taskThe storage allowance is used up; free space or contact us before registering more.NoNo
429insufficient_balanceBalance is insufficient to accept the requestCreate a video taskTop up, then retry with the same key; error.details gives the reservation needed.After the cause is fixedNo
429rate_limitedThe request rate is limitedCreate a video task, List team tasks, Read a video task, Cancel a video task, Read task billingWait Retry-After seconds, then retry with the same key.After the cause is fixedNo
500internal_errorThe service could not complete the requestCreate a video task, List team tasks, Read a video task, Cancel a video task, Read task billingRetry with the same Idempotency-Key and body.Yes, same keyNo; a retry is never charged twice
503dependency_unavailableThe service is temporarily unavailable and the outcome is unknownRegister an asset, Check an asset, Create a video task, List team tasks, Read a video task, Cancel a video task, Read task billingThe outcome is unknown: retry with the same key and body.Yes, same keyNo; a retry is never charged twice
503funding_intake_closedNew intake is closedCreate a video taskNew intake is closed for now; try later. Exact replays of accepted requests still return their response.After the cause is fixedNo