Skip to content

Error code ​

Request error ​

Non-2xx status code is returned when the request fails:

json
{
  "error": {
    "code": "invalid_request",
    "message": "image must be an HTTP(S) URL or a base64-encoded image",
    "request_id": "req_8fK2mQ9xZ1aB3cD5eF7g"
  }
}

Please use code for program judgment, message is only used for prompts.

HTTPcodedescription
400invalid_requestParameter error, template does not exist, image cannot be read
401invalid_api_keyKey is invalid, disabled or expired
402insufficient_balanceInsufficient points, task not created, see Billing and Points
403forbiddenThe IP is not in the whitelist, or the account has been disabled
404not_foundTask does not exist
422input_rejectedNo clear face detected, or suspected to be a minor
429rate_limitedRequests per minute exceeded
429concurrency_limitedThe number of ongoing tasks has reached the upper limit
500internal_errorServer error
503upstream_unavailableThe generation service is temporarily unavailable
503moderation_unavailableReview service is temporarily unavailable

429, 500, and 503 can be retried later. For the rest, please check the request before submitting it.

Reason for task failure ​

When the task status is failed, error.code is:

codedescription
generation_failedGeneration failed, you can try again or change the picture
empty_outputNo result returned, you can try again
output_rejectedThe result failed content review
timeoutNot completed for more than 15 minutes
Copyright © 2026 ModelGo all rights reserved | Technology powered by MoneyGo.ai