Image Background Generation Query API Reference
Image Background Generation Query
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.
Request Parameters
Parameter | Type | Required | Description | explanation |
---|---|---|---|---|
| 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. |
Sample Request
Response Parameters
Parameter | Type | Description |
---|---|---|
| Number | The returned result code, where 200 indicates success. For detailed error codes, please refer to the error code list. |
| Object | The returned JSON result data. |
| String | The returned task information. |
| String | A unique task ID. It is used for subsequent result query requests. |
| String | Return the status of task execution. |
| Object[] | Return the task results. |
| Object[] | Return the list of URLs for the result images. |
| String | Return the scene template. |
| String | Return the record content. |
| String | Return the task status. |
| String | Return the task message. |
| String | A unique request ID used for troubleshooting. |
| Boolean | The status of the returned request, indicating whether the request was successful. |
| String | The returned request information. |
Sample Response
Errors
Error Code | Error Message | Description |
---|---|---|
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). |
Last updated