Limits

  • Generation: 50 images per hour.
  • Other writes: 500 requests per 15 minutes. Reads: 2000 requests per 15 minutes.
  • Maximum request size: 50 MB, product photo up to 10 MB.
  • Higher limits are available on request.

Error codes

StatusWhenWhat to do
400Invalid parameter, e.g. Invalid aspect ratio, image too large, no image, template or promptFix the request as the message says.
402Insufficient creditsYour plan is used up. Top up or change your plan.
429Rate limit exceededWait for retryAfter and retry.
503Service temporarily unavailable, retryable: trueThe model is overloaded. Retry shortly.
500Generation or save failedCheck your token and retry. If it keeps happening, contact us.

Error format

{
  "success": false,
  "error": "Insufficient credits",
  "message": "You don't have enough credits to generate an image."
}

Retries

Retry on 429 and 503 with an increasing delay (e.g. 5, 10, 20 seconds). Do not retry on 400 or 402.