1.
For a small number of vendors, their image generation/editing original APIs are asynchronous and require polling. To standardize the interface into a synchronous response, the system polls every 3 seconds up to 30 times. If a successful response is not received after 30 attempts, the unified interface returns a failure status. The error message will include a taskid
, which can be used to query additional information from the original task status interface.
2.
Some vendors' interfaces can generate multiple images. The image_url
field contains the public link for the first generated image. If you need the other result images, you can retrieve them from the data
field in the original response.