generate_image_async
Start an asynchronous image generation task from a text prompt. Get a task ID to poll for results, ideal for long-running or batch generation.
Instructions
Start an asynchronous image generation task. Returns a task ID to poll for results. Use this for long-running generations or when you need to process multiple images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size (e.g., "1280x1280", "1568x1056") | 1280x1280 |
| model | No | Model to use (only glm-image supports async) | glm-image |
| prompt | Yes | Text description of the image to generate | |
| quality | No | Quality level (only "hd" supported for async) | hd |
| user_id | No | Unique end user ID for abuse prevention (6-128 characters) |