Skip to main content
The same endpoint does image-to-image and editing: put 1–3 {"image": "..."} items and exactly one {"text": "instruction"} in content. The model can edit text in the image, add, delete or move objects, change a subject’s action, transfer styles, enhance details, and fuse elements of several images into one.

Input image requirements

The output is PNG.

Image order

Images are numbered in the order they appear in content: the first is “image 1”, the second “image 2” (“[image 1]” works too). text can come before or after the images.

Edit one image

Keep the person and change only the outfit and background; n: 2 returns two candidates:

Fuse several images

Say what each image is for with “image 1”, “image 2”, “image 3”:

Common instructions

Editing only supports prompt_extend_mode: direct (the default); agent returns 400. Without size the model picks the output size; pass size to fix it.