gpt_image_gen_batch
Execute multiple image generation prompts simultaneously via ChatGPT, allowing concurrent processing and independent failure handling.
Instructions
Run multiple image-gen prompts in parallel via ChatGPT image gen.
Each request opens its own ChatGPT tab and runs concurrently with the others. This is how you actually parallelize image gen — issuing multiple separate gpt_image_gen tool calls from a single Claude message gets serialized by the MCP harness, but a single gpt_image_gen_batch call fans out internally and bypasses that.
Each item in requests is a dict with keys:
prompt(required, str): the full image-gen promptfilename_prefix(optional, str): stem for saved files; falls back to a hash of the promptsave_dir(optional, str): override save location for this item; defaults to<cwd>/generated/
embed_images is batch-level — applies to all items. Set False during long iteration loops to keep Claude's context light.
All items run concurrently, capped at 3 ChatGPT tabs at a time server-wide; larger batches queue internally. If one fails, the others still complete; failed items show up in the response as [<prefix>] FAILED: <error>.
Account-level rate limits may still apply under sustained concurrency.
Returns a list of MCP content blocks: per-item text summaries plus, if embed_images is True, the image blobs in order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requests | Yes | ||
| embed_images | No |