black-forest-labs/flux-2-klein-4b
Very fast image generation and editing model. 4 steps distilled, sub-second inference for production and near real-time applications.
Capabilities
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt * | string | Text prompt for image generation. | — | — |
aspect_ratio | string | Aspect ratio for the generated image. Use 'match_input_image' to match the aspect ratio of the first input image. | "1:1" | 1:1 16:9 9:16 3:2 2:3 4:3 3:4 5:4 4:5 21:9 9:21 match_input_image |
disable_safety_checker | boolean | Disable safety checker for generated images. | false | — |
go_fast | boolean | Run faster predictions with additional optimizations. | false | — |
images | array | List of input images for image-to-image generation. Maximum 5 images. Must be jpeg, png, gif, or webp. | | — |
output_format | string | Format of the output images | "jpg" | webp jpg png |
output_megapixels | string | Resolution of the output image in megapixels | "1" | 0.25 0.5 1 2 4 |
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. | 95 | min: 0, max: 100 |
seed | integer | Random seed. Set for reproducible generation | — | — |
prompt required string Text prompt for image generation.
aspect_ratio string Aspect ratio for the generated image. Use 'match_input_image' to match the aspect ratio of the first input image.
"1:1" disable_safety_checker boolean Disable safety checker for generated images.
false go_fast boolean Run faster predictions with additional optimizations.
false images array List of input images for image-to-image generation. Maximum 5 images. Must be jpeg, png, gif, or webp.
output_format string Format of the output images
"jpg" output_megapixels string Resolution of the output image in megapixels
"1" 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.
95 min: 0, max: 100 seed integer Random seed. Set for reproducible generation
8e9c42d77b10 Updated: 2/26/2026 4.7M runs
cinemasetfree.com