/flux-kontext-pro
endpoint, provides the following key functionalities:
Change the car color to red
Before editing
After editing
Input Image
Remove the object from her face
She is now taking a selfie in the streets of Freiburg, it’s a lovely day out.
It’s now snowing, everything is covered in snow.
Replace '[original text]' with '[new text]'
Example - We can see below where we have an input image with “Choose joy” written, and we replace “joy” with “BFL” - note the upper case format for BFL.
Input image
JOY replaced with BFL
Input image
Sync & Bloom changed to 'FLUX & JOY'
/flux-kontext-pro
endpoint:
polling_url
to retrieve the output when ready.
result['sample']
is a signed URL for retrieval.
aspect_ratio
to override this behavior if needed./flux-kontext-pro
endpoint:
Parameter | Type | Default | Description | Required |
---|---|---|---|---|
prompt | string | Text description of the edit to be applied. | Yes | |
input_image | string | Base64 encoded image to use as reference. Supports up to 20MB or 20 megapixels. | Yes | |
aspect_ratio | string / null | "1:1" | Desired aspect ratio (e.g., “16:9”). All outputs are ~1MP total. Supports ratios from 3:7 to 7:3. | No |
seed | integer / null | null | Seed for reproducibility. If null or omitted, a random seed is used. Accepts any integer. | No |
prompt_upsampling | boolean | false | If true, performs upsampling on the prompt | No |
safety_tolerance | integer | 2 | Moderation level for inputs and outputs. Value ranges from 0 (most strict) to 6 (more permissive). | No |
output_format | string | "jpeg" | Desired format of the output image. Can be “jpeg” or “png”. | No |
webhook_url | string / null | null | URL for asynchronous completion notification. Must be a valid HTTP/HTTPS URL. | No |
webhook_secret | string / null | null | Secret for webhook signature verification, sent in the X-Webhook-Secret header. | No |