Skip to content

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
object

Image to edit. Must be a supported image file.

Format"binary"

Text description of the desired image. Maximum length is 1000 characters.

An additional image whose fully transparent areas indicate where image should be edited.

Model used for image generation. Supports gpt-image-1, flux-kontext-pro, flux-kontext-max.

Number of images to generate. Must be between 1 and 10.

Quality of the generated image. Supports high, medium, and low. Defaults to auto.

Format of the generated image. Must be url or b64_json.

Aspect ratio. Enum values: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21

Allows setting transparency for the background. Must be transparent, opaque, or auto.

Controls content moderation level. Can be set to low or auto (default).

Responses

Success

application/json
object
object[]
object

Playground

Authorization
Body

Samples