infery
← All models

Flux 2 Pro

flux-2-pro

Image generationby Black Forest Labs
images

Details

Accepts
text + image

Pricing

Price
3.75 cr / megapixel

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedThe seed to use for the generation.
promptstringThe prompt to generate an image from.
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.
image_sizeThe size of the generated image.
output_formatstringenum: jpeg, pngThe format of the generated image.
safety_tolerancestringenum: 1, 2, 3, 4, 5The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.
enable_safety_checkerbooleanWhether to enable the safety checker. Disabling it requires account authorization; unauthorized requests are always checked.
image_urlsarrayList of URLs of input images for editing
modestringenum: high, fastQuality/speed trade-off for outpainting. `high` (default) delivers the highest-fidelity results; `fast` is significantly faster and extends most scenes well but may produce lower fidelity.
auto_cropbooleanWhether to automatically crop the reference image when the expanded canvas does not fully contain it.
image_urlstringThe image URL to expand using outpainting.
expand_topintegerPixels to expand at the top of the image.
expand_leftintegerPixels to expand on the left of the image.
expand_rightintegerPixels to expand on the right of the image.
expand_bottomintegerPixels to expand at the bottom of the image.

Output

FieldTypeDescription
seedintegerThe seed used for the generation.
imagesarrayThe generated images.