Skip to main content
When a request fails, you get a status code and a JSON body that says why.
error is always there. Some responses add more fields:
  • message with a longer explanation.
  • details when the body fails validation. Its keys match your request fields.
  • required and topup on a 402, with the credits the job needs and where to buy more.
  • retryAfter on a 429, in seconds.
  • currentPlan on a 403, when your plan has no API access.

Status codes

When to retry

  • Retry 429, 500, 502 and 503. Start at 2 seconds and double each time, up to about 30 seconds.
  • Do not retry 400, 401, 403 or 404 until you fix the cause.
  • Never resend a start call to check on it. Poll the job instead. See Jobs and polling.