infery
← All models

FLUX.1 [dev]

flux-dev

Image generationby Black Forest Labs

Generate high-quality images from text prompts using Flux Dev, a 12B parameter rectified flow transformer. Ideal for research, creative projects, and fine-tuning.

images

Details

Accepts
text + image

Pricing

Price
3.75 cr / megapixel

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedintegerRandom seed. Set for reproducible generation
imagestringInput image for image to image mode. The aspect ratio of your output will match this image
promptrequiredstringPrompt for generated image
go_fastbooleanRun faster predictions with model optimized for speed (currently fp8 quantized); disable to run in original bf16. Note that outputs will not be deterministic when this is enabled, even if you set a seed.
guidancenumberGuidance for generated image
megapixelsenum: 1, 0.25Approximate number of megapixels for generated image
num_outputsintegerNumber of outputs to generate
aspect_ratioenum: 1:1, 16:9, 21:9, 3:2, 2:3, 4:5Aspect ratio for the generated image
output_formatenum: webp, jpg, pngFormat of the output images
output_qualityintegerQuality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs
prompt_strengthnumberPrompt strength when using img2img. 1.0 corresponds to full destruction of information in image
num_inference_stepsintegerNumber of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster.
disable_safety_checkerbooleanDisable safety checker for generated images.
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.
num_imagesintegerThe number of images to generate.
accelerationstringenum: none, regular, highThe speed of the generation. The higher the speed, the faster the generation.
guidance_scalenumber The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images.
strengthnumberThe strength of the initial image. Higher strength values are better for this model.
image_urlstringThe URL of the image to generate an image from.