Generate images (parallel, new chats)
generate_imagesGenerate one or many images with ChatGPT in parallel, each in its own chat, and get saved file paths plus chat IDs for follow-up edits.
Instructions
Generate one or many images with ChatGPT. Each job runs in its OWN NEW chat, and all jobs in one call generate in parallel (send 10-20 at once for variations or a whole asset set). Returns saved file paths plus a chat_id per image for follow-up edits via edit_images. Typical time: 30-120 s; if the call returns before everything is done, call wait_for_jobs until all_finished is true. For quality, pick a preset (list_presets) and/or borrow proven wording via search_prompts. Attach user-provided images with reference_images.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jobs": "<jobs>"
},
"name": "generate_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | Yes | One entry per image/chat. | |
| wait | No | Wait for the images before returning (default). false = return job ids immediately; collect later with wait_for_jobs. | |
| model | No | Optional ChatGPT model slug for the new chats (default: account default). | |
| output_dir | No | Folder to save images into. Default: /root/.gpt-image-mcp/images | |
| return_images | No | Return small JPEG previews inline (~500 tokens each) so you can see the results. Set false to save tokens. Files are always saved. | |
| timeout_seconds | No | Max seconds this call blocks (capped at 50s so it never hits client tool timeouts). Unfinished jobs keep running — collect them with wait_for_jobs. |