Do not send response_format. Read the image from data[0].url. Models: gpt-image-2-t, gpt-image-2.5-flare-t, gpt-image-2.5-sunburst-t, gpt-image-2.6-flare-t, gpt-image-2.6-sunburst-t.

Text to image

Image to image

Use the same POST /v1/images/generations. Put your own public image URLs in image.
Put multiple references in the same array, in order, and say what each image is for: