black-forest-labs/flux-dev
A 12 billion parameter rectified flow transformer capable of generating images from text descriptions
Capabilities
Cost
$0.025 / image
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt* | string | Prompt for generated image | — | — |
aspect_ratio | string | Aspect ratio for the generated image | "1:1" | 1:116:921:93:22:34:55:43:44:39:169:21 |
disable_safety_checker | boolean | Disable safety checker for generated images. | false | — |
go_fast | boolean | Run faster predictions with model optimized for speed (currently fp8 quantized); disable to run in original bf16. Note that outputs will not be deterministic when this is enabled, even if you set a seed. | true | — |
guidance | number | Guidance for generated image | 3 | min: 0, max: 10 |
image | string(uri) | Input image for image to image mode. The aspect ratio of your output will match this image | — | — |
megapixels | string | Approximate number of megapixels for generated image | "1" | 10.25 |
num_inference_steps | integer | Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster. | 28 | min: 1, max: 50 |
num_outputs | integer | Number of outputs to generate | 1 | min: 1, max: 4 |
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 |
prompt_strength | number | Prompt strength when using img2img. 1.0 corresponds to full destruction of information in image | 0.8 | min: 0, max: 1 |
seed | integer | Random seed. Set for reproducible generation | — | — |
promptrequiredstringPrompt for generated image
aspect_ratiostringAspect ratio for the generated image
"1:1"disable_safety_checkerbooleanDisable safety checker for generated images.
falsego_fastbooleanRun faster predictions with model optimized for speed (currently fp8 quantized); disable to run in original bf16. Note that outputs will not be deterministic when this is enabled, even if you set a seed.
trueguidancenumberGuidance for generated image
3min: 0, max: 10imagestringInput image for image to image mode. The aspect ratio of your output will match this image
megapixelsstringApproximate number of megapixels for generated image
"1"num_inference_stepsintegerNumber of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster.
28min: 1, max: 50num_outputsintegerNumber of outputs to generate
1min: 1, max: 4output_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: 100prompt_strengthnumberPrompt strength when using img2img. 1.0 corresponds to full destruction of information in image
0.8min: 0, max: 1seedintegerRandom seed. Set for reproducible generation
6e4a938f8595Updated: 7/25/202641.2M runs
cinemasetfree.com