| input.prompt | string | Yes | – | Edit instructions, non-blank, up to 32,000 characters. Refer to references by order, such as image 1. |
| input.image_urls | string[] | string | Yes | – | Provide 1–16 public HTTP(S) image URLs without embedded credentials, in the order the prompt refers to them. Each image adds 2.50 credits to the upfront cap. |
| input.size | string | No | Follows image 1 | When omitted, the output follows the first reference image's aspect ratio. Ratios: auto, 1:1, 2:3, 3:2, 4:3, 3:4, 4:5, 5:4, 16:9, 9:16, 21:9, or custom WIDTHxHEIGHT. auto works at any resolution and is billed at 1K. Custom WIDTHxHEIGHT works at any resolution: positive multiples of 16, maximum edge 3840, ratio at most 3:1 and 655360–8294400 pixels, billed at the higher of the selected resolution and its pixel tier (up to 1,572,864 px 1K, up to 4,194,304 px 2K, above that 4K). |
| input.resolution | string | No | 1K | 1K, 2K or 4K. Default 1K. 1K, 2K, 4K. |
| input.output_format | string | No | png | png, jpeg or webp. Default png. png, jpeg, webp. |
| input.quality | string | No | high | low, medium, high, xhigh or max. Default high. Quality and the billing tier set the upfront cap; final billing uses actual tokens. low, medium, high, xhigh, max. |
| input.background | string | No | auto | auto, transparent or opaque. Default auto. transparent requires png or webp. auto, transparent, opaque. |
| input.output_compression | integer | No | – | Integer from 0 to 100 for jpeg or webp output. Leave empty for the default compression. |
| input.moderation | string | No | auto | auto or low. Default auto; low applies less restrictive filtering. Does not change the price. auto, low. |
| input.complexity | string | No | high | low, medium or high. Default high. Sets how much the model plans before rendering and does not change the price; low suits most edits. low, medium, high. |
| input.mask_url | string | No | – | Optional single public HTTP(S) mask image. Its fully transparent area marks the region of image 1 to change. Masks are free. |