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

black-forest-labs /flux-2-klein-4b:8e9c42d7

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 prompt for image generation.
images
array
[]
List of input images for image-to-image generation. Maximum 5 images. Must be jpeg, png, gif, or webp.
aspect_ratio
None
1:1
Aspect ratio for the generated image. Use 'match_input_image' to match the aspect ratio of the first input image.
output_megapixels
None
1
Resolution of the output image in megapixels
seed
integer
Random seed. Set for reproducible generation
go_fast
boolean
False
Run faster predictions with additional optimizations.
output_format
None
jpg
Format of the output images
output_quality
integer
95

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
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}