You're looking at a specific version of this model. Jump to the model overview.

black-forest-labs /flux-2-dev:7bba46bd

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Text description of the image to generate.
input_images
array
[]
List of input images for image-to-image generation. Maximum 4 images. Must be jpeg, png, gif, or webp.
go_fast
boolean
True
Run faster predictions with additional optimizations.
aspect_ratio
None
1:1
Aspect ratio for the generated image. Use 'match_input_image' to match the first input image's aspect ratio.
width
integer

Min: 256

Max: 1440

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).
height
integer

Min: 256

Max: 1440

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).
seed
integer
Random seed. Set for reproducible generation.
output_format
None
webp
Format of the output images.
output_quality
integer
80

Max: 100

Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs.
disable_safety_checker
boolean
False
Disable safety checker for generated images.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}