Generate or edit an image with FLUX.1 Kontext
💡 Note that this API is async and will return the request_id instead of the image. Call the get_result API to obtain the generated image.
FLUX Kontext Pro is a specialized model for generating contextually-aware images from text descriptions. Designed for professional use cases requiring high-quality, consistent image generation.
Use our Playground to quickly try it out in your browser.
FLUX Kontext Pro is a specialized model for generating contextually-aware images from text descriptions. Designed for professional use cases requiring high-quality, consistent image generation.
Use our Playground to quickly try it out in your browser.
FLUX Kontext Max is the most advanced model in the Kontext series, offering maximum quality and context understanding. Ideal for enterprise applications requiring the highest level of image generation performance.
Use our Playground to quickly try it out in your browser.
Path
The model to use for image generation. Use flux-kontext-pro or flux-kontext-max as the model name in the API.
Headers
The media type of the request body.
Your Fireworks API key.
Request Body
Prompt to use for the image generation process.
Base64 encoded image or URL to use with Kontext.
Optional seed for reproducibility.
Aspect ratio of the image between 21:9 and 9:21.
Output format for the generated image. Can be ‘jpeg’ or ‘png’.
Options: jpeg
, png
URL to receive webhook notifications.
Length: 1-2083 characters
Optional secret for webhook signature verification.
Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation.
Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict. Limit of 2 for Image to Image.
Range: 0-6