infery
← All models

Flux Schnell

flux-schnell

Image generationby Black Forest Labs

Generate high-quality images from text prompts in seconds with Flux Schnell. Optimized for speed and ideal for rapid prototyping and creative projects.

images

Details

Accepts
text

Pricing

Price
0.375 cr / image

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedintegerRandom seed. Set for reproducible generation
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.
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
num_inference_stepsintegerNumber of denoising steps. 4 is recommended, 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.