Edit an existing image or generate a new one using FLUX.1 Kontext [pro]. Pass input_image for editing, or omit it for text-to-image generation. Returns the result synchronously as base64-encoded JSON.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Model ID
flux-1-kontext-pro "flux-1-kontext-pro"
Text description of the desired image, or editing instructions (e.g. 'change the red car to blue').
"Change the background to a sunset beach"
Base64-encoded or URL of the reference image to edit. Required for image editing.
Number of images to generate.
1 <= x <= 4Output image size, e.g. 1024x1024.
"1024x1024"
Output image format.
jpeg, png "jpeg"
Random seed for reproducible generation.