Official

black-forest-labs / flux-pro

State-of-the-art image generation with top of the line prompt following, visual quality, image detail and output diversity.

  • Public
  • 10.1M runs
  • $0.055 per image
  • Commercial use
  • License

Blog post: Learn about training with Flux Read the blog

Input

*string
Shift + Return to add a new line

Text prompt for image generation

file

Image to use with Flux Redux. This is used together with the text prompt to guide the generation towards the composition of the image_prompt. Must be jpeg, png, gif, or webp.

string

Aspect ratio for the generated image

Default: "1:1"

integer
(minimum: 256, maximum: 1440)

Width of the generated image in text-to-image mode. 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). Note: Ignored in img2img and inpainting modes.

integer
(minimum: 256, maximum: 1440)

Height of the generated image in text-to-image mode. 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). Note: Ignored in img2img and inpainting modes.

integer
(minimum: 1, maximum: 50)

Number of diffusion steps

Default: 25

number
(minimum: 2, maximum: 5)

Controls the balance between adherence to the text prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt.

Default: 3

number
(minimum: 1, maximum: 4)

Interval is a setting that increases the variance in possible outputs letting the model be a tad more dynamic in what outputs it may produce in terms of composition, color, detail, and prompt interpretation. Setting this value low will ensure strong prompt following with more consistent outputs, setting it higher will produce more dynamic or varied outputs.

Default: 2

integer
(minimum: 1, maximum: 6)

Safety tolerance, 1 is most strict and 6 is most permissive

Default: 2

boolean

Automatically modify the prompt for more creative generation

Default: false

integer

Random seed. Set for reproducible generation

string

Format of the output images.

Default: "webp"

integer
(minimum: 0, maximum: 100)

Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs

Default: 80

Output

output
Generated in

Pricing

Official model
Pricing for official models works differently from other models. Instead of being billed by time, you’re billed by input and output, making pricing more predictable.

This model is priced by how many images are generated.

TypePer unitPer $1
Output
$0.055 / image
or
18 images / $1

For example, generating 100 images should cost around $5.50.

Check out our docs for more information about how per-image pricing works on Replicate.

Readme

FLUX.1 [pro] is the best of FLUX.1, offering state-of-the-art performance image generation with top of the line prompt following, visual quality, image detail and output diversity.

All FLUX.1 model variants support a diverse range of aspect ratios and resolutions in 0.1 and 2.0 megapixels

All public FLUX.1 models are based on a hybrid architecture of multimodal and parallel diffusion transformer blocks and scaled to 12B parameters. We improve over previous state-of-the-art diffusion models by building on flow matching, a general and conceptually simple method for training generative models, which includes diffusion as a special case. In addition, we increase model performance and improve hardware efficiency by incorporating rotary positional embeddings and parallel attention layers.

License

By using FLUX.1 [pro] through Replicate you agree to the Black Forest Labs API agreement and the Black Forest Labs Terms of Service.