Try FLUX.2 [dev] in the Workbench
Run this model interactively, tune parameters, and compare outputs.
flux-2-dev
FLUX.2 [dev] is a 32-billion parameter image generation model that excels in generating highly detailed, photorealistic images and performing precise image editing, including multi-reference editing with strong consistency across subjects, products, and styles. It is best at rendering complex typography, infographics, and UI mockups with legible fine text, and supports flexible input/output ratios up to 4 megapixels.
Some other noteworthy features of FLUX.2 [dev] include native support for LoRA fine-tuning workflows, making it suitable for rapid prototyping and custom training, and efficient resource usage for high-volume generation tasks.
| Metric | Value |
|---|---|
| Parameter Count | 32 billion |
| Mixture of Experts | No |
| Context Length | Unknown |
| Multilingual | Yes |
| Quantized* | No |
Example request
- Sync
- Async
- Async with SSE
See the image editing reference for more details.
- Minimal
- All parameters
Fetch model details
The models endpoint returns the full model object, including itsjson_request_schema.
Request parameters
Required parameters
| Field | Type | Default | Description |
|---|---|---|---|
prompt | string | "Bloxy, the cartoon ox in the reference image, as a superhero. The overall style should be kept the same as the reference image. Bloxy should be wearing a blue suit with whitish-grey sleeves and leggings. On Bloxy's shoulders rest a yellow shoulder mantle and yellow capelet with a collar clasp. A red jewel lies in the center of the collar clasp." | Prompt for generated image |
input_image | array<string> | ["https://hub.oxen.ai/api/repos/elau/assets/file/main/bloxy/bloxy_cropped_1024x1024.png"] | Input images to transform or use as reference (supports multiple image urls) |
Optional parameters
| Field | Type | Default | Description |
|---|---|---|---|
aspect_ratio | string | "1:1" | Aspect ratio for the generated image One of: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, match_input_image. |
resolution | string | "1 MP" | Resolution for the generated image One of: 1 MP, 2 MP, 0.5 MP. |
num_inference_steps | integer | 30 | Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster. Range: 1 – 50. |
guidance | number | 2 | Guidance for generated image. Lower values can give more realistic images. Good values to try are 2, 2.5, 3 and 3.5 Range: 0 – 10. |
seed | integer | — | Random seed. Set for reproducible generation |
output_format | string | "webp" | Format of the output images One of: webp, jpg, png. |
output_quality | integer | 80 | Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs Range: 0 – 100. |
disable_safety_checker | boolean | false | Disable safety checker for generated images. |