Skip to content
Pixii

Errors

Error response shape, HTTP status codes and the full Pixii error code reference.

Pixii uses conventional HTTP response codes to indicate the success or failure of an API request. Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error with the information provided. Codes in the 5xx range indicate an error with Pixii’s servers.

Error response format

All errors return a consistent JSON body:

FieldTypeDescription
codestringMachine-readable error code. Use this to handle specific errors in your code
messagestringHuman-readable description of the error
detailstring or nullAdditional context about what went wrong. Present on validation errors and rate limit errors

Rate limit errors include an additional retry_after field.

HTTP status codes

StatusMeaning
200Request succeeded
201Resource created successfully
202Job accepted and queued for processing
400Bad request
401Unauthorized — missing or invalid API key
404Resource not found
429Too many requests — rate limit exceeded
500Internal server error
503Service temporarily unavailable

API errors

Returned in the top-level error envelope on a non-2xx HTTP response.

CodeHTTPDescriptionHow to fix
UNAUTHORIZED401Missing or invalid API keyCheck your API key is correct and has not been revoked
VALIDATION_ERROR400One or more request parameters are invalidCheck the detail field for which parameters failed and why
RATE_LIMIT_MINUTE_EXCEEDED429Too many requests in the current minuteWait the number of seconds in retry_after before retrying
RATE_LIMIT_DAY_EXCEEDED429Daily request limit reachedWait until tomorrow or check retry_after for exact reset time
INSUFFICIENT_CREDITS400Not enough credits to process this requestTop up your credits from your dashboard
NO_ACTIVE_BRAND422No active brand found for your organizationSet up a brand in your Pixii dashboard before making API requests
JOB_NOT_FOUND404Job not foundCheck the job ID is correct and belongs to your organization
PROCESSING_ERROR500Unable to process the requestRetry the request. Contact support if this persists
INTERNAL_ERROR500An unexpected error occurredRetry the request. Contact support if this persists
SERVICE_UNAVAILABLE503Service is temporarily unavailableWait a few minutes and retry

Job errors

Job errors are returned inside a successful (200) job payload — they have no HTTP status. They appear either as the job’s top-level error_code (when an entire job fails) or as ads[].error.code (when an individual image fails inside an otherwise-completed job).

CodeDescriptionHow to fix
PRODUCT_FETCH_ERRORUnable to fetch product data for the given ASINVerify the ASIN is correct and available on the target marketplace
PRODUCT_NOT_AVAILABLEProduct data is not available or invalidThe ASIN exists but product data could not be retrieved — try a different ASIN
PRODUCT_ANALYSIS_ERRORFailed to analyze product dataRetry the request. Contact support if this persists
CONTENT_MODERATION_ERRORContent was flagged by moderationThe product or images were flagged — try different images or contact support
IMAGE_GENERATION_ERRORFailed to generate one or more imagesCredits for failed images are automatically refunded. Retry the request