run_text_to_image
Submit a text prompt to generate images, automatically polling until completion. Returns image URLs on success or status on failure.
Instructions
Submit a text-to-image task and poll until completion. Combines text_to_image + query_task polling into one call. Returns immediately with image URLs when SUCCESS, or status details if FAILED or TIMEOUT. Default timeout is 10 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Image width in pixels (e.g. 1024, 2048) | |
| height | No | Image height in pixels (e.g. 1024, 2048) | |
| prompt | Yes | Text prompt describing the image to generate | |
| timeout | No | Maximum wait time in seconds before timing out | |
| max_images | No | Maximum number of images to generate (e.g. 1, 4) | |
| tools_type | No | Tools type, e.g. 'web_search' | |
| poll_interval | No | Polling interval in seconds between status checks | |
| sequential_image_generation | No | Enable sequential generation: 'enabled' or 'disabled' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||