black-forest-labs
/
flux-schnell
The fastest image generation model tailored for local development and personal use
Blog post: Learn about training with Flux Read the blog
Prediction
black-forest-labs/flux-schnellOfficial modelIDjd96x0dyqsrm00cj1jp90zeye0StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- black forest gateau cake spelling out the words "FLUX SCHNELL", tasty, food photography, dynamic shot
- go_fast
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- output_quality
- 80
{ "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot", go_fast: true, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", output_quality: 80 }; const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-schnell", input={ "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot", "go_fast": True, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "prompt": "black forest gateau cake spelling out the words \\"FLUX SCHNELL\\", tasty, food photography, dynamic shot", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T23:45:01.446202Z", "created_at": "2024-09-19T23:45:00.606000Z", "data_removed": false, "error": null, "id": "jd96x0dyqsrm00cj1jp90zeye0", "input": { "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }, "logs": "running quantized prediction\ngenerating\nUsing seed: 68235\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.61it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.49it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.07it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.829263399, "total_time": 0.840202 }, "output": [ "https://replicate.delivery/yhqm/hcDDSNf633zeDUz9sWkKfaftcfJLWIvuhn9vfCFWmufxelmemA/out-0.webp" ], "started_at": "2024-09-19T23:45:00.616939Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jd96x0dyqsrm00cj1jp90zeye0", "cancel": "https://api.replicate.com/v1/predictions/jd96x0dyqsrm00cj1jp90zeye0/cancel" }, "version": "hidden" }
Generated inrunning quantized prediction generating Using seed: 68235 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.61it/s] 100%|██████████| 4/4 [00:00<00:00, 13.49it/s] 100%|██████████| 4/4 [00:00<00:00, 14.07it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnellOfficial modelIDa7nfg37nvnrm00cj1jtth49krwStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- a tiny astronaut hatching from an egg on the moon
- go_fast
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- output_quality
- 80
{ "prompt": "a tiny astronaut hatching from an egg on the moon", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "a tiny astronaut hatching from an egg on the moon", go_fast: true, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", output_quality: 80 }; const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-schnell", input={ "prompt": "a tiny astronaut hatching from an egg on the moon", "go_fast": True, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "prompt": "a tiny astronaut hatching from an egg on the moon", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T23:55:05.370171Z", "created_at": "2024-09-19T23:55:04.541000Z", "data_removed": false, "error": null, "id": "a7nfg37nvnrm00cj1jtth49krw", "input": { "prompt": "a tiny astronaut hatching from an egg on the moon", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }, "logs": "running quantized prediction\ngenerating\nUsing seed: 78208\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.78it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.61it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.19it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.792524633, "total_time": 0.829171 }, "output": [ "https://replicate.delivery/yhqm/QeGlhr8w4CWefov8rFAozycqveU4anxkYuUVxANfolFP710bC/out-0.webp" ], "started_at": "2024-09-19T23:55:04.577646Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/a7nfg37nvnrm00cj1jtth49krw", "cancel": "https://api.replicate.com/v1/predictions/a7nfg37nvnrm00cj1jtth49krw/cancel" }, "version": "hidden" }
Generated inrunning quantized prediction generating Using seed: 78208 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.78it/s] 100%|██████████| 4/4 [00:00<00:00, 13.61it/s] 100%|██████████| 4/4 [00:00<00:00, 14.19it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnellOfficial modelIDawgeayn1nhrm20cj1jvtqknaawStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- womens street skateboarding final in Paris Olympics 2024
- go_fast
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- output_quality
- 80
{ "prompt": "womens street skateboarding final in Paris Olympics 2024", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "womens street skateboarding final in Paris Olympics 2024", go_fast: true, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", output_quality: 80 }; const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-schnell", input={ "prompt": "womens street skateboarding final in Paris Olympics 2024", "go_fast": True, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "prompt": "womens street skateboarding final in Paris Olympics 2024", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T23:56:54.892509Z", "created_at": "2024-09-19T23:56:54.060000Z", "data_removed": false, "error": null, "id": "awgeayn1nhrm20cj1jvtqknaaw", "input": { "prompt": "womens street skateboarding final in Paris Olympics 2024", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }, "logs": "running quantized prediction\ngenerating\nUsing seed: 48853\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.94it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.70it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.29it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.827877763, "total_time": 0.832509 }, "output": [ "https://replicate.delivery/yhqm/pNZ3A6l9B35dB9VxE0eGqkGfBGe401MjUttdOyzvpfWbEb6NB/out-0.webp" ], "started_at": "2024-09-19T23:56:54.064631Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/awgeayn1nhrm20cj1jvtqknaaw", "cancel": "https://api.replicate.com/v1/predictions/awgeayn1nhrm20cj1jvtqknaaw/cancel" }, "version": "hidden" }
Generated inrunning quantized prediction generating Using seed: 48853 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.94it/s] 100%|██████████| 4/4 [00:00<00:00, 13.70it/s] 100%|██████████| 4/4 [00:00<00:00, 14.29it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnellOfficial modelIDt344ym22yxrm00cj1jwb952wscStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- a cat holding a sign that says hello world
- go_fast
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- output_quality
- 80
{ "prompt": "a cat holding a sign that says hello world", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "a cat holding a sign that says hello world", go_fast: true, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", output_quality: 80 }; const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-schnell", input={ "prompt": "a cat holding a sign that says hello world", "go_fast": True, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "prompt": "a cat holding a sign that says hello world", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T23:57:36.170870Z", "created_at": "2024-09-19T23:57:35.351000Z", "data_removed": false, "error": null, "id": "t344ym22yxrm00cj1jwb952wsc", "input": { "prompt": "a cat holding a sign that says hello world", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }, "logs": "running quantized prediction\ngenerating\nUsing seed: 89463\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.90it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.74it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.32it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.812578275, "total_time": 0.81987 }, "output": [ "https://replicate.delivery/yhqm/74gHlK2Mrc7YL5dnnjopehWLftlfSA8449R6lECKI4OhjN9mA/out-0.webp" ], "started_at": "2024-09-19T23:57:35.358292Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/t344ym22yxrm00cj1jwb952wsc", "cancel": "https://api.replicate.com/v1/predictions/t344ym22yxrm00cj1jwb952wsc/cancel" }, "version": "hidden" }
Generated inrunning quantized prediction generating Using seed: 89463 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.90it/s] 100%|██████████| 4/4 [00:00<00:00, 13.74it/s] 100%|██████████| 4/4 [00:00<00:00, 14.32it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnellOfficial modelID9h5pyvddzdrm40cj1jwbxp5jhgStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’
- go_fast
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- output_quality
- 80
{ "prompt": "Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’", go_fast: true, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", output_quality: 80 }; const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-schnell", input={ "prompt": "Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’", "go_fast": True, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "prompt": "Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T23:58:03.608513Z", "created_at": "2024-09-19T23:58:02.747000Z", "data_removed": false, "error": null, "id": "9h5pyvddzdrm40cj1jwbxp5jhg", "input": { "prompt": "Three magical wizards standing on a yellow table, each holding a sign. On the left, a wizard in black robes holds a sign that says ‘AI’; in the middle, a witch in red robes holds a sign that says ‘is’; and on the right, a wizard in blue robes holds a sign that says ‘cool’", "go_fast": true, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "output_quality": 80 }, "logs": "running quantized prediction\ngenerating\nUsing seed: 13253\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.87it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.58it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.17it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.820627656, "total_time": 0.861513 }, "output": [ "https://replicate.delivery/yhqm/ocz3puvUrqrINZtxGrnbqEhIevfWBbtfeiPEkMsJT3PsIb6NB/out-0.webp" ], "started_at": "2024-09-19T23:58:02.787885Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/9h5pyvddzdrm40cj1jwbxp5jhg", "cancel": "https://api.replicate.com/v1/predictions/9h5pyvddzdrm40cj1jwbxp5jhg/cancel" }, "version": "hidden" }
Generated inrunning quantized prediction generating Using seed: 13253 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.87it/s] 100%|██████████| 4/4 [00:00<00:00, 13.58it/s] 100%|██████████| 4/4 [00:00<00:00, 14.17it/s] Total safe images: 1 out of 1
Want to make some of these yourself?
Run this model