You're looking at a specific version of this model. Jump to the model overview.
black-forest-labs /flux-2-pro:285631b5
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
|
|
| input_images |
array
|
[]
|
List of input images for image-to-image generation. Maximum 8 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 first input image's aspect ratio.
|
| resolution |
None
|
1 MP
|
Resolution in megapixels. Up to 4 MP is possible, but 2 MP or below is recommended. The maximum image size is 2048x2048, which means that high-resolution images may not respect the resolution if aspect ratio is not 1:1.
Resolution is not used when aspect_ratio is 'custom'. When aspect_ratio is 'match_input_image', use 'match_input_image' to match the input image's resolution (clamped to 0.5-4 MP).
|
| width |
integer
|
Min: 256 Max: 2048 |
Width of the generated image. 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: 2048 |
Height of the generated image. 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).
|
| safety_tolerance |
integer
|
2
Min: 1 Max: 5 |
Safety tolerance, 1 is most strict and 5 is most permissive
|
| 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
|
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'}