Save a job's images to disk
download_jobDownload the finished images from a Midjourney job and write them to disk as PNGs, returning local paths and byte counts. Bypasses CDN restrictions by using the browser.
Instructions
Download the finished images from a job and write them to disk, returning the local paths and byte counts.
These are the real files as the CDN served them, not screenshots: full resolution, original encoding. Files are named <job-id>-<index>.png so a directory of downloads from different jobs stays usable.
Midjourney's CDN refuses ordinary HTTP clients, so this goes through the browser. Expect a second or two per image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job whose images to download. | |
| indexes | No | Which images to take, zero-based. Omit for all of them. | |
| out_dir | No | Directory to write into, created if needed. Defaults to MIDJOURNEY_DOWNLOAD_DIR. |