Available models
| Model | Speed | Quality | Features |
|---|---|---|---|
| FLUX.1 Schnell | Fast | Good | Text-to-image, best for prototyping |
| FLUX.1 Dev | Medium | High | Open weights, img2img support |
| FLUX.1 Pro | Medium | Very High | Production-grade |
| FLUX.1.1 Pro | Medium | Very High | Updated Pro model |
| FLUX.2 Pro | Medium | Highest | Up to 4MP, multi-reference images |
| FLUX Kontext | Medium | High | Image editing with text instructions |
| Stable Diffusion 3.5 | Medium | High | Open weights |
| Ideogram v2 | Medium | High | Best text rendering in images |
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:| Parameter | Type | Description |
|---|---|---|
model | string | Model ID (required) |
prompt | string | Text description of the image (required) |
aspect_ratio | string | Output ratio: 1:1, 16:9, 9:16, 4:3, 3:2 |
seed | integer | Reproducibility seed (omit for random) |
num_inference_steps | integer | Number of diffusion steps — more steps = more detail, slower |
guidance | number | How closely to follow the prompt |
negative_prompt | string | What to avoid in the image |
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.