Get Image Job
get_image_jobPoll a backgrounded image generation job using its job_id to get generated files, model settings, usage, and cost when finished.
Instructions
Poll a backgrounded gpt-image job: every image tool (generate_image, edit_image, start_edit_session, continue_edit_session) hands off immediately and returns a job_id rather than blocking past MCP client timeouts. Call this with that job_id until state becomes "completed" (files are already written to disk and returned inline, with the model, requested/applied settings, usage, and cost) 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 | ||
| turn | No | ||
| error | Yes | ||
| model | No | ||
| notes | No | ||
| route | No | ||
| state | Yes | ||
| usage | No | ||
| images | No | Written image files — present once the job completed successfully. | |
| job_id | Yes | ||
| prompt | No | ||
| applied | No | ||
| poll_hint | No | Present while a job is still running. | |
| requested | No | ||
| elapsed_ms | Yes | ||
| session_id | No | ||
| started_at | Yes | ||
| completed_at | Yes | ||
| prompt_preview | Yes | ||
| cost_usd_estimated | No |