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

Image file to edit.

prompt
string
required

Editing instructions. Must be in English.

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[]