Midjourney
Edits (image edit)
Rewrite the whole image from an existing image + prompt. Good for background replacement, style transfer, content changes
POST
| Item | Value |
|---|---|
| action | EDITS |
| Billing | midjourney@edits[-speed] |
| Required | prompt + image_urls |
Parameters
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
prompt | string | Yes | — | Edit instruction |
image_urls | string[] | Yes | — | Image to edit; each ≤ 12 MiB |
speed | string | No | relax | relax / fast / turbo |
metadata | object | No | — | Custom metadata |
Structured fields (optional)
Same as Imagine — set them in the body or inprompt (e.g. --ar 16:9). Body values take priority, are appended to the prompt, and override same-name flags written by hand.
| Field | Type | MJ equivalent | Notes |
|---|---|---|---|
size | string | --ar | e.g. "16:9", "1:1", "9:16" |
quality | string | --q | "0.25", "0.5", "1", "2" |
style | string | --style | e.g. "raw" |
version | string | --v | Version. Main MJ versions append --v <version>; when used with niji: true and "7" / "6", it is normalized as a Niji version |
seed | int | --seed | Seed |
negative_prompt | string | --no | e.g. "ugly, blurry" |
stylize | int | --s | 0–1000 |
chaos | int | --c | 0–100 |
weird | int | --w | 0–3000 |
tile | bool | --tile | Tile mode |
niji | bool | --niji | Niji switch. Recommended: niji: true + version: "7" / "6" |
iw | float | --iw | 0–3, image weight |
cw | int | --cw | 0–100 |
sw | int | --sw | 0–1000 |
cref | string | --cref | Character ref URL |
sref | string | --sref | Style ref URL |
dref | string | --dref | Depth reference image URL |
dw | float | --dw | Depth weight (0–100) |
repeat | int | --repeat | 2–40 |
raw | bool | --raw | Raw style (v5.1+) |
draft | bool | --draft | Draft mode (v7+) |
hd | bool | --hd | HD mode (v8 / v8.1 only; backend auto-injects --v 8.1 when version is unspecified) |
stop | int | --stop | Early stop (10–100; v5–6.1 / niji 5–6 only) |
extra | string | any --xxx | Escape hatch; appended to prompt verbatim |
Request example
Response
Submission returns atask_id; on SUCCESS the result includes edited image_urls (may be 1–4) plus grid_image_url.
Notes
- Difference from imagine image-guidance: edits “rewrites the whole image”, while imagine + reference images “borrows the style”.
- Missing
promptorimage_urlsreturns400; a single image over 12 MiB returns400.