Canvas Size isteğe bağlı
The desired size of the final image after the expansion, as [width, height]. Area must be under 25 megapixels. Pairs with 'original_image_location'.
Aspect Ratio isteğe bağlı
The desired aspect ratio of the final image. Used over 'original_image_size' and 'original_image_location' if provided: the original is centred and the canvas grows around it.
1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9
Original Image Size isteğe bağlı
The desired size of the original inside the canvas, as [width, height]; it is resized to this before being placed. Ignored if 'aspect_ratio' is provided.
Original Image Location isteğe bağlı
Top-left corner of the original within the canvas, as [x, y]. May sit outside the canvas, in which case the original is cropped. Ignored if 'aspect_ratio' is provided.
Seed isteğe bağlı
Reuse the seed from a previous response to recreate that result. Omit it for a random one, which is reported in the response either way.
Negative Prompt isteğe bağlı
Not supported by this model, and refused rather than ignored -- see 'prompt'. Present only so a request written against the SDXL expansion endpoint fails loudly here instead of silently losing the field.
Retain Original Quality isteğe bağlı
Keep the original's own pixels at full resolution. Generation happens near one megapixel, so a larger canvas is scaled up afterwards; leave this on and the region the mask protected is not resampled at all. Turn it off for a uniformly soft result, which can hide the seam on a textured background.
Açık Retain Original Quality Preserve Alpha isteğe bağlı
Keep the input's transparency. The model works in RGB, so the alpha channel is not generated -- the original's own is extended outwards by replicating its edges, which is what expanding a cutout means. Turn it off to get a flattened RGB result.
Açık Preserve Alpha Return Model Output isteğe bağlı
Also return the model's own frame, before the original was pasted back and the seam blended. Diagnostic only -- it does not change the returned image. Use it to tell a bad generation apart from a bad composite: a boundary already broken in that frame came from the model, not from post-processing.
Kapalı Return Model Output