Skip to main content
POST
Image editing

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
model
enum<string>
required

model ID

Available options:
flux-1-kontext-pro
image
file
required

The image file to edit.

prompt
string
required

Edit instruction. Must be in English.

Example:

"Change the background to a sunset beach"

n
integer
default:1

Number of images to generate. Only 1 is supported.

Required range: 1 <= x <= 1
size
string

Output image size, e.g. 1024x1024.

Response

Image edited successfully

created
integer

Unix timestamp

Example:

1774002799

data
object[]