black-forest-labs/flux-2-dev
Quality image generation and editing with support for reference images
Capabilities
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt* | string | Text description of the image to generate. | — | — |
aspect_ratio | string | Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio. | "1:1" | match_input_imagecustom1:116:93:22:34:55:49:163:44:3 |
disable_safety_checker | boolean | Disable safety checker for generated images. | false | — |
go_fast | boolean | Run faster predictions with additional optimizations. | true | — |
height | integer | Height of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32). | — | min: 256, max: 1440 |
input_images | array | List of input images for image-to-image generation. Maximum 4 images. Must be jpeg, png, gif, or webp. | | — |
output_format | string | Format of the output images. | "webp" | webpjpgpng |
output_quality | integer | Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs. | 80 | min: 0, max: 100 |
seed | integer | Random seed. Set for reproducible generation. | — | — |
width | integer | Width of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32). | — | min: 256, max: 1440 |
promptrequiredstringText description of the image to generate.
aspect_ratiostringAspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio.
"1:1"disable_safety_checkerbooleanDisable safety checker for generated images.
falsego_fastbooleanRun faster predictions with additional optimizations.
trueheightintegerHeight of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32).
input_imagesarrayList of input images for image-to-image generation. Maximum 4 images. Must be jpeg, png, gif, or webp.
output_formatstringFormat of the output images.
"webp"output_qualityintegerQuality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs.
80min: 0, max: 100seedintegerRandom seed. Set for reproducible generation.
widthintegerWidth of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32).
7bba46bdde86Updated: 7/25/20261.2M runs
cinemasetfree.com