Skip to main content
Failed API requests return an error object. For example, requesting a brand that cannot be found returns HTTP 404:
Use code to decide how your application responds. message explains the failure to a person, and optional data supplies details specific to the error. Each endpoint’s response panel lists its error codes and fields. For credit and billing failures, see Credits and limits.

Failed generations

A generation can fail after Rainbrand accepts it. Retrieving that generation still returns HTTP 200; read its status and failure fields to learn the outcome. failure.code remains upstream_failed for upstream generation failures. Use failure.message to explain what happened. failure.providerMessage may include the provider’s explanation, with links and secrets removed. It is null when there is no explanation safe to share. failure.retryable: true means a new attempt with the same input may succeed later. It does not resume the failed generation or start another one automatically. If it is false, read both failure.message and failure.providerMessage before submitting again; changing the request or resolving an uncertain original request may be necessary. For a video wait-limit failure, the provider may still finish and charge for the original generation. Do not automatically resubmit it: a new attempt may incur another charge. If you used Idempotency-Key, reuse it only to retrieve the original generation with the same request body. Use a new key when you deliberately start a new attempt. Avoid immediate retry loops: generation can consume credits.

Feature not available

The API returns 403 FEATURE_NOT_AVAILABLE when a feature isn’t enabled for your integration.

Known feature values

These are the current identifiers. Availability depends on your integration. New values may be added. If a value is unfamiliar, show the error’s message.