Flux Edit (OpenAI dall-e-3 Format)
POST
/v1/images/edits
- Given a prompt, the model will edit the image
- Official documentation: Image Edits
Authorizations
bearer
Type
HTTP (bearer)
Request Body
multipart/form-data
image
string
Required
Image to edit. Must be a supported image file.
Format
"binary"prompt
string
Required
Text description of the desired image. Maximum length is 1000 characters.
mask
string
An additional image whose fully transparent areas indicate where image should be edited.
model
string
Model used for image generation. Supports gpt-image-1, flux-kontext-pro, flux-kontext-max.
n
string
Number of images to generate. Must be between 1 and 10.
quality
string
Quality of the generated image. Supports high, medium, and low. Defaults to auto.
response_format
string
Format of the generated image. Must be url or b64_json.
aspect_ratio
string
Aspect ratio. Enum values: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21
background
string
Allows setting transparency for the background. Must be transparent, opaque, or auto.
moderation
string
Controls content moderation level. Can be set to low or auto (default).
Responses
Success
application/json
object
id
string
object
string
created
integer
choices
object[]
usage
object