Get Image Job
get_image_jobPoll a backgrounded image generation or editing job using its job ID to retrieve the result once it completes or fails.
Instructions
Poll a backgrounded gpt-image-2 job. generate_image and edit_image automatically move work that runs longer than ~20s (slow proxy / large sizes / high quality) into a background job and return a job_id instead of blocking past MCP client timeouts. Call this with that job_id until state becomes "completed" (files are already written to disk and returned inline) or "failed". While still "running", wait a few seconds between polls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id returned by generate_image / edit_image when they moved the work to the background. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| error | Yes | ||
| state | Yes | ||
| images | No | Written image files — present once the job completed successfully. | |
| job_id | Yes | ||
| elapsed_ms | Yes | ||
| started_at | Yes | ||
| completed_at | Yes | ||
| prompt_preview | Yes |