Step 1: Use the Imagine interface for image generation, which will respond with a task ID
Step 2: Use the task query interface to check the task ID and get the image results, which will contain image links and buttons that can be operated. Each operation corresponds to a separate custom_id.
Step 3: If you want to perform operations on the image, call the Action interface; use the custom_id and task ID obtained from the previous task query to perform operations, which will generate a new task ID. Repeat step 2 to continue querying results for the new task.
(If when calling the Action interface a popup appears, you need to use this task ID to call the Modal interface again.)