Edit an image
Upload reference images and edit them using a prompt.
/v1/images/editsUpload reference images and edit them using a prompt.
Authorization
bearerAuth Use a platform API key in the format Authorization: Bearer your-api-key.
In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
JSON image references
JSON requests submit reference images as an images array of objects; other fields match file upload requests.
| Field | JSON representation |
|---|---|
images[].image_url | Required. Supports public URLs, Base64 Data URLs or mm_file://{file_id}. Replace the sample URL with the saved image address from a generation request. |
Response Body
application/json
application/json
application/json
application/json
application/json
Streaming response events
These fields describe the JSON in one data: event, not the complete SSE text stream.
Set the client timeout to at least 600 seconds. Generation may continue after a timeout or disconnection; sending again creates a new request.
MiniMax image editing APISee request parameters and response structure.