Edit an image
Uploads source images as multipart/form-data and edits them with a text prompt — compatible with OpenAI client.images.edit(). Reuses the image-to-image pipeline internally; the response is always sync JSON. mask is not supported yet, and response_format only supports URLs (b64_json is rejected).
/api/v1/images/editsAuthorizations
AuthorizationrequiredAPI key as bearer token in the Authorization header.
Body
imagerequiredSource image file(s) to edit. Repeat the image field (or use image[]) for multiple files — up to 8, 10 MB each, MIME must be image/*.
promptrequiredText description of the edit to apply.
"change the background to a night city"modelThe image edit model. When omitted, the server default applies (currently gpt-5.4-image-2).
"openai/gpt-5.4-image-2"nNumber of results to generate, 1–10.
1sizeOutput size, must be a "<width>x<height>" pixel string (e.g. 1024x1024); values in any other format are silently ignored.
"1024x1024"