GET/POST
/ai/image/detection/query
Using the taskID obtained from the Image Elements Detection Submit API, you can call this API to query the results of the background-generated images.
Name | Type | Required | Description |
---|---|---|---|
Name | Type | Description |
---|---|---|
Error Code | Error Message | Description |
---|---|---|
taskId
String
Yes
The taskId obtained through the submission interface.
resCode
Number
Response code; 200 indicates a successful call, other codes can refer to error code information.
data
Object
The structure of the returned result.
For example, productCharacter refers to the text in the main body area of the image, while backgroundCharacter refers to the text in the non-main body area of the image.
requestId
String
The request ID; used to identify a unique request call.
success
Boolean
Whether the operation was successful; true for success, false for failure.
resMessage
String
Error message, such as "content has sensitive data, please try other input"
200
success
The call was successful.
501
rate limit exceed
The current interface has reached the rate limit. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) to increase the limit.
700
invalid input
The format of the input parameters does not meet the requirements, and resMessage will return detailed information about the non-compliance.
801
model failed
An internal model call exception occurred. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) for troubleshooting.
900
tpp url error
An internal TPP URL call exception occurred. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) for troubleshooting.
1000
content has sensitive data, please try other input
The request contains sensitive information which is not supported at the moment. Please try other inputs.
1001
content control failed, please retry
The content control service failed to run. Please retry. If the error persists after retrying, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).
1002
content risk filter failed, please contact us
The content risk filter service encountered an exception.Please contact us via navigation bar or email us (aidge_support@service.alibaba.com).