Image Background Generation Query API Reference
Last updated
Last updated
GET/POST
/ai/image/background/generation/query
Using the taskID obtained from the Background Generation Submit API, you can call this API to query the results of the background-generated images.
Parameter | Type | Required | Description | explanation |
---|---|---|---|---|
Parameter | Type | Description |
---|---|---|
Error Code | Error Message | Description |
---|---|---|
taskId
String
Yes
The unique task ID. You can query the corresponding generation results using the task ID.
Unique task ID. Query the corresponding generation results based on the task ID.
resCode
Number
The returned result code, where 200 indicates success. For detailed error codes, please refer to the error code list.
data
Object
The returned JSON result data.
taskMessage
String
The returned task information.
taskId
String
A unique task ID. It is used for subsequent result query requests.
taskStatus
String
Return the status of task execution.
taskResult
Object[]
Return the task results.
imageUrlList
Object[]
Return the list of URLs for the result images.
sceneTemplate
String
Return the scene template.
recordContent
String
Return the record content.
taskStatus
String
Return the task status.
taskMessage
String
Return the task message.
requestId
String
A unique request ID used for troubleshooting.
success
Boolean
The status of the returned request, indicating whether the request was successful.
resMessage
String
The returned request information.
500
system error
System error.
501
rate limit exceed
The current interface has reached the current limit. Please contact us via navigation bar or email us (aidge_support@service.alibaba.com) to increase the current limit value.
700
invalid input
The format of the input parameters does not meet the requirements, and resMessage will return detailed fields that do not meet the requirements.
801
model failed
Internal call exception, 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
Content has sensitive data and cannot be handled now. Please try other input.
1001
content control failed, please retry
Content risk failed, please try other input. If an error persists,please contact us via navigation bar or email us (aidge_support@service.alibaba.com) for troubleshooting.
1002
content risk filter failed, please contact us
Content risk failed, please contact us via navigation bar or email us (aidge_support@service.alibaba.com).