Edit an image using a text prompt and mask.
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer authentication header |
| Parameter | Type | Required | Description |
|---|---|---|---|
| image | file | Yes | Image to edit (PNG only, must have transparency) |
| mask | file | No | Mask image indicating areas to edit (PNG with transparency) |
| prompt | string | Yes | Text description of the desired edit |
| model | string | Yes | Model identifier (e.g., dall-e-2) |
| n | integer | No | Number of images to generate (1-10). Default: 1 |
| size | string | No | Image size: 256x256, 512x512, 1024x1024. Default: 1024x1024 |
| response_format | string | No | Response format: url or b64_json. Default: url |
| user | string | No | Unique identifier for end-user |