/status/:id
endpoint, refer to this guide for details on runtime errors.
Code | Cause | Solution |
---|---|---|
400 - BAD_REQUEST | The request is invalid or improperly formatted. | Check the API documentation and ensure the request follows the correct format and includes all required parameters. |
401 - UNAUTHORIZED_ACCESS | The API key is invalid, inactive, or missing in the request. | Double-check your API key and ensure it is included in the request headers under “Authorization”. (See Authentication) |
404 - NOT_FOUND | The requested resource could not be found, or the requested prediction status is no longer tracked. | Double-check the URL or endpoint. If it’s due to an untracked prediction ID, a corresponding message will appear. |
429 - RATE_LIMIT_EXCEEDED | Too many requests were made in a short period. | Implement request throttling and respect the API rate limits. Wait before retrying. |
402 - OUT_OF_CREDITS | You’ve used up all your API credits. | Check your account’s API usage. Purchase more credits if needed. |
500 - INTERNAL_SERVER_ERROR | A server error occurred while processing the request. | Retry the request after some time. If the issue persists, please reach out to api.support@getayna.com. |
200
status code with a prediction status: failed
. Additionally, an error object will be included under the error key in the response.
Code | Cause | Solution |
---|---|---|
IMAGE_LOAD_ERROR | The pipeline was unable to load the model or garment image from the provided inputs. | - For Image URLs: Ensure the URL is publicly accessible and not permission-restricted. Verify the Content-Type header is correct (e.g., image/jpeg , image/png ).- For Base64 images: Prefix with data:image/<format>;base64, (e.g., data:image/png;base64, ).- Image size: Images below 512x512 and above 4096x4096 are not supported. |
CONTENT_MODERATION_ERROR | Prohibited content detected in the provided garment or model image. | Ensure images do not contain nudity, violence, or inappropriate content. Only safe-for-work images are allowed. |
/status/:id
endpoint: