infery
← All models

Flux 2 Flex

flux-2-flex

Image generationby Black Forest Labs

FLUX.2 [flex] is Black Forest Labs' image model with adjustable quality-speed trade-offs and strong text rendering. Use FLUX.2 [flex] with an API.

images

Details

Accepts
text + image

Pricing

Price
6.25 cr / megapixel

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedThe seed to use for the generation.
promptrequiredstringThe 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.
guidance_scalenumberThe guidance scale to use for the generation.
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.
num_inference_stepsintegerThe number of inference steps to perform.
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

Output

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