generate_image_batch
Generate many images from a list of prompts concurrently. Isolates failures so one bad prompt does not stop the batch, completing all generations in roughly the time of a single image.
Instructions
Generate many images concurrently from a list of prompts.
Each item runs through the same auto provider selection as generate_image,
bounded by max_concurrency. Per-item failures are isolated — one bad
prompt does not fail the whole batch. Returns every result (saved paths plus
any per-item errors).
Use this instead of calling generate_image in a loop: 8 prompts that
would take ~4 minutes serially complete in roughly one generation's time
(subject to max_concurrency and provider rate limits).
Args: params: The batch (items + concurrency + optional default provider).
Returns: A formatted summary of all results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |