Flux Schnell
Generate images quickly from text prompts with Flux Schnell. Optimized for speed with just 4 denoising steps, making it ideal for rapid prototyping and real-time applications.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-schnell",
"version": "0.0.1",
"input": {
"prompt": "a cozy reading nook with floor-to-ceiling bookshelves, warm afternoon light streaming through a window",
"aspect_ratio": "1:1",
"num_inference_steps": 4,
"output_format": "webp"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| aspect_ratio |
string |
1:1 |
Output aspect ratio. enum: 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21 |
| disable_safety_checker |
boolean |
true |
Disable safety checker for generated images |
| go_fast |
boolean |
true |
Run faster with fp8 quantized model optimized for speed |
| megapixels |
string |
1 |
Resolution scale. enum: 1, 0.25 |
| num_inference_steps |
integer |
4 |
Number of denoising steps |
| num_outputs |
integer |
1 |
Number of images to generate |
| output_format |
string |
webp |
Output format. enum: webp, jpg, png |
| output_quality |
integer |
80 |
Quality when saving output images, from 0 to 100 |
| prompt |
string |
- |
Prompt for generated image |
| seed |
integer |
- |
Random seed. Set for reproducible generation |
Examples
Quick batch generation:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-schnell",
"version": "0.0.1",
"input": {
"prompt": "a minimalist logo design for a tech startup, clean lines, modern typography",
"aspect_ratio": "1:1",
"num_outputs": 4,
"num_inference_steps": 4,
"output_format": "png"
}
}'
Widescreen cinematic:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "flux-schnell",
"version": "0.0.1",
"input": {
"prompt": "an epic battle scene between samurai warriors on a misty bridge, cinematic composition, dramatic lighting",
"aspect_ratio": "21:9",
"num_inference_steps": 4,
"go_fast": true,
"seed": 42
}
}'
Related Models
Documentation
1---2name: flux-schnell3description: Flux Schnell | Fast AI Image Generation. Generate images quickly from text prompts with Flux Schnell in just 4 steps. Triggers: flux schnell, fast image, quick generation, text to image, flux fast4---56# Flux Schnell78Generate images quickly from text prompts with Flux Schnell. Optimized for speed with just 4 denoising steps, making it ideal for rapid prototyping and real-time applications.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314```bash15curl -X POST https://api.eachlabs.ai/v1/prediction \16 -H "Content-Type: application/json" \17 -H "X-API-Key: $EACHLABS_API_KEY" \18 -d '{19 "model": "flux-schnell",20 "version": "0.0.1",21 "input": {22 "prompt": "a cozy reading nook with floor-to-ceiling bookshelves, warm afternoon light streaming through a window",23 "aspect_ratio": "1:1",24 "num_inference_steps": 4,25 "output_format": "webp"26 }27 }'28```2930## Parameters3132| Parameter | Type | Default | Description |33|-----------|------|---------|-------------|34| aspect_ratio | string | 1:1 | Output aspect ratio. enum: 1:1, 16:9, 21:9, 3:2, 2:3, 4:5, 5:4, 3:4, 4:3, 9:16, 9:21 |35| disable_safety_checker | boolean | true | Disable safety checker for generated images |36| go_fast | boolean | true | Run faster with fp8 quantized model optimized for speed |37| megapixels | string | 1 | Resolution scale. enum: 1, 0.25 |38| num_inference_steps | integer | 4 | Number of denoising steps |39| num_outputs | integer | 1 | Number of images to generate |40| output_format | string | webp | Output format. enum: webp, jpg, png |41| output_quality | integer | 80 | Quality when saving output images, from 0 to 100 |42| prompt | string | - | Prompt for generated image |43| seed | integer | - | Random seed. Set for reproducible generation |4445## Examples4647**Quick batch generation:**48```bash49curl -X POST https://api.eachlabs.ai/v1/prediction \50 -H "Content-Type: application/json" \51 -H "X-API-Key: $EACHLABS_API_KEY" \52 -d '{53 "model": "flux-schnell",54 "version": "0.0.1",55 "input": {56 "prompt": "a minimalist logo design for a tech startup, clean lines, modern typography",57 "aspect_ratio": "1:1",58 "num_outputs": 4,59 "num_inference_steps": 4,60 "output_format": "png"61 }62 }'63```6465**Widescreen cinematic:**66```bash67curl -X POST https://api.eachlabs.ai/v1/prediction \68 -H "Content-Type: application/json" \69 -H "X-API-Key: $EACHLABS_API_KEY" \70 -d '{71 "model": "flux-schnell",72 "version": "0.0.1",73 "input": {74 "prompt": "an epic battle scene between samurai warriors on a misty bridge, cinematic composition, dramatic lighting",75 "aspect_ratio": "21:9",76 "num_inference_steps": 4,77 "go_fast": true,78 "seed": 4279 }80 }'81```8283## Related Models8485- [flux-dev](../flux-dev/) - Higher quality Flux with more steps86- [flux-1-1-pro](../flux-1-1-pro/) - Professional quality Flux87- [flux-dev-realism](../flux-dev-realism/) - Photorealistic Flux generation8889## Documentation9091- [each::labs Docs](https://docs.eachlabs.ai)92- [API Reference](https://docs.eachlabs.ai/api/overview)