Available models
Basic text-to-image
Image editing with FLUX Kontext
FLUX Kontext models accept an existing image and a text instruction describing the edit. Pass a file path, URL, or base64 string as theimage parameter.
Batch generation — product catalog
Generate a full set of product images in one script. This example creates hero images for an e-commerce catalog:Parameters reference
Parameters vary by model. These are the most common:Model-specific parameters
- FLUX Kontext models: Accept
imagefor image editing - FLUX Canny: Requires
control_imagefor edge-guided generation - FLUX.2 Pro: Accepts up to 8
input_imagesfor reference-based generation - FLUX Dev/Krea: Accept
imagefor img2img mode withprompt_strengthcontrol
Next.js API route
Add image generation to a web app with a single API route:Response format
All image generation requests return the same shape:url to the generated image or b64_json base64-encoded image data. The Runcrate SDKs provide a .save() helper that handles both formats automatically.