Skip to main content

Error codes

Every code below comes from the API itself.

All codes

Error codes of the API
CodeStatusTypeWhat it means
api_disabled403permission_errorThe developer API is not open yet. Try again once it has been opened for your account.
key_in_query400invalid_request_errorA key was found in the address of the request. Send keys only in the Authorization header, and revoke any key you sent this way.
invalid_key401authentication_errorThe key is missing or not recognised. Send a valid key as a Bearer token in the Authorization header.
key_revoked401authentication_errorThis key has been revoked. Make a new key on the Developer API page.
key_expired401authentication_errorThis key has expired. Make a new key on the Developer API page.
plan_required403permission_errorYour plan does not include the developer API. Move to a plan that does, then try again.
missing_scope403permission_errorThis key is not allowed to do that. Use a key that has the scope this route needs.
wrong_key_type403permission_errorThis key cannot be used here.
foreign_origin403permission_errorRequests from other websites are not accepted.
not_verified403permission_errorVerify your email address before you use this feature.
account_on_hold403permission_errorThis account has a safety hold, so new requests are not accepted. Open your account page to see what to do next.
invalid_request400invalid_request_errorThe request could not be used. Check the field named in param and the documentation, then try again.
unsupported_parameter400invalid_request_errorThe request has a field or value that this API does not support. Remove it or change it, then try again.
unknown_model400invalid_request_errorThat model name is not known. Use a name from the list in the documentation.
too_many_images400invalid_request_errorThe request has more images than this route accepts. Send one image.
mask_unreadable400invalid_request_errorThe mask could not be read. Send a non-interlaced PNG with an alpha channel.
mask_size_mismatch400invalid_request_errorThe mask must have the same proportions as the image. Resize the mask and try again.
mask_too_complex400invalid_request_errorThe mask is too detailed to use. Send a smaller or simpler mask.
image_not_found404not_found_errorNo available image matches that id. Check the id, or send the image itself.
image_url_refused400invalid_request_errorThe image address could not be used. It must be a public https address that returns a picture.
image_refused400invalid_request_errorThe image was not accepted. Send a JPEG, PNG or WebP picture that is not too large.
body_too_large413invalid_request_errorThe request is larger than this route accepts. Send a smaller request.
not_found404not_found_errorNothing was found for that id. Check the id and try again.
rate_limited429rate_limit_errorToo many requests. Wait for the time in the Retry-After header, then try again.
daily_line_reached429quota_errorThe daily limit for your plan has been reached. Try again after the time in reset_at.
period_pool_used429quota_errorThe credits for this plan period have been used. Try again after the time in reset_at.
class_limit_reached429quota_errorThe limit for this kind of picture has been reached. Try again after the time in reset_at.
free_budget_spent429quota_errorThe free allowance has been used. Try again after the time in reset_at, or move to a paid plan.
key_budget_reached429quota_errorThis key's monthly credit budget has been reached. Raise the budget or use another key, or wait for the time in reset_at.
over_max_credits402quota_errorThis request would cost more credits than max_credits allows. Raise max_credits or change the request.
quote_changed409conflict_errorThe price changed while the request was being made. Send the request again.
idempotency_conflict409conflict_errorThat Idempotency-Key was already used for a different request. Use a new key, or repeat the first request exactly.
content_refused400content_policy_errorThe request was refused by the content rules. Change the request and try again.
class_not_in_plan403permission_errorYour plan does not include this kind of picture. Move to a plan that does, or choose another operation.
operation_unavailable503api_errorThis operation is not available right now. Try again later.
try_again503api_errorThe request could not be finished this time. Wait a few seconds and try again.