← All models
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
| Field | Type | Description |
|---|---|---|
| seed | integer | Random seed. Set for reproducible generation |
| promptrequired | string | Prompt for generated image |
| go_fast | boolean | Run 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. |
| megapixels | —enum: 1, 0.25 | Approximate number of megapixels for generated image |
| num_outputs | integer | Number of outputs to generate |
| aspect_ratio | —enum: 1:1, 16:9, 21:9, 3:2, 2:3, 4:5… | Aspect ratio for the generated image |
| output_format | —enum: webp, jpg, png | Format of the output images |
| output_quality | integer | Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs |
| num_inference_steps | integer | Number of denoising steps. 4 is recommended, and lower number of steps produce lower quality outputs, faster. |
| disable_safety_checker | boolean | Disable safety checker for generated images. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| image_size | — | The size of the generated image. |
| num_images | integer | The number of images to generate. |
| acceleration | stringenum: none, regular, high | The speed of the generation. The higher the speed, the faster the generation. |
| guidance_scale | number | 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_checker | boolean | If 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. |