black-forest-labs
/
flux-schnell-lora
The fastest image generation model tailored for fine-tuned use
Prediction
black-forest-labs/flux-schnell-loraOfficial modelIDam6fs78665rma0ck4y9srkb658StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- a closeup BLKLGHT portrait photo of a cyberpunk
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- fofr/flux-black-light
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "a closeup BLKLGHT portrait photo of a cyberpunk", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "fofr/flux-black-light", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "a closeup BLKLGHT portrait photo of a cyberpunk", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "fofr/flux-black-light", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "a closeup BLKLGHT portrait photo of a cyberpunk", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "fofr/flux-black-light", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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 closeup BLKLGHT portrait photo of a cyberpunk", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "fofr/flux-black-light", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T22:09:27.657357Z", "created_at": "2024-11-13T22:09:27.089000Z", "data_removed": false, "error": null, "id": "am6fs78665rma0ck4y9srkb658", "input": { "prompt": "a closeup BLKLGHT portrait photo of a cyberpunk", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "fofr/flux-black-light", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "Lora fofr/flux-black-light already loaded\nrunning quantized prediction\nUsing seed: 3844066928\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.98it/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.560387887, "total_time": 0.568357 }, "output": [ "https://replicate.delivery/xezq/T7gLEVc07aqvBdrWweJanOmMebAX97jUTfQrsLmXPQOvsahnA/out-0.webp" ], "started_at": "2024-11-13T22:09:27.096969Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-vqjxcipprymwyw3bd3zt36y6dmoolfnci3a4bskthw2s62gica6q", "get": "https://api.replicate.com/v1/predictions/am6fs78665rma0ck4y9srkb658", "cancel": "https://api.replicate.com/v1/predictions/am6fs78665rma0ck4y9srkb658/cancel" }, "version": "hidden" }
Generated inLora fofr/flux-black-light already loaded running quantized prediction Using seed: 3844066928 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.98it/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-schnell-loraOfficial modelIDb73f0wtwq9rma0ck4yar10xkyrStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- r3dcma, 35mm movie still; ::Ethereal misty fjord:: Towering cliffs, ::mirror-like water::, ancient longship emerging from fog, ::waterfall cascading:: into crystalline pool, ::Nordic runes:: carved into rock face, ::aurora borealis:: painting the sky, ::floating lanterns::, mystical stone archway, ::twilight ambiance::, epic scale, ::Terrence Malick-inspired::, anamorphic lens flare In the style of r3dcma.
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- halimalrasihi/flux-red-cinema
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "r3dcma, 35mm movie still;\n\n::Ethereal misty fjord:: Towering cliffs, ::mirror-like water::, ancient longship emerging from fog, ::waterfall cascading:: into crystalline pool, ::Nordic runes:: carved into rock face, ::aurora borealis:: painting the sky, ::floating lanterns::, mystical stone archway, ::twilight ambiance::, epic scale, ::Terrence Malick-inspired::, anamorphic lens flare\n\nIn the style of r3dcma.", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "halimalrasihi/flux-red-cinema", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "r3dcma, 35mm movie still;\n\n::Ethereal misty fjord:: Towering cliffs, ::mirror-like water::, ancient longship emerging from fog, ::waterfall cascading:: into crystalline pool, ::Nordic runes:: carved into rock face, ::aurora borealis:: painting the sky, ::floating lanterns::, mystical stone archway, ::twilight ambiance::, epic scale, ::Terrence Malick-inspired::, anamorphic lens flare\n\nIn the style of r3dcma.", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "halimalrasihi/flux-red-cinema", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "r3dcma, 35mm movie still;\n\n::Ethereal misty fjord:: Towering cliffs, ::mirror-like water::, ancient longship emerging from fog, ::waterfall cascading:: into crystalline pool, ::Nordic runes:: carved into rock face, ::aurora borealis:: painting the sky, ::floating lanterns::, mystical stone archway, ::twilight ambiance::, epic scale, ::Terrence Malick-inspired::, anamorphic lens flare\n\nIn the style of r3dcma.", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "halimalrasihi/flux-red-cinema", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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": "r3dcma, 35mm movie still;\\n\\n::Ethereal misty fjord:: Towering cliffs, ::mirror-like water::, ancient longship emerging from fog, ::waterfall cascading:: into crystalline pool, ::Nordic runes:: carved into rock face, ::aurora borealis:: painting the sky, ::floating lanterns::, mystical stone archway, ::twilight ambiance::, epic scale, ::Terrence Malick-inspired::, anamorphic lens flare\\n\\nIn the style of r3dcma.", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "halimalrasihi/flux-red-cinema", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T22:12:02.473971Z", "created_at": "2024-11-13T22:12:00.314000Z", "data_removed": false, "error": null, "id": "b73f0wtwq9rma0ck4yar10xkyr", "input": { "prompt": "r3dcma, 35mm movie still;\n\n::Ethereal misty fjord:: Towering cliffs, ::mirror-like water::, ancient longship emerging from fog, ::waterfall cascading:: into crystalline pool, ::Nordic runes:: carved into rock face, ::aurora borealis:: painting the sky, ::floating lanterns::, mystical stone archway, ::twilight ambiance::, epic scale, ::Terrence Malick-inspired::, anamorphic lens flare\n\nIn the style of r3dcma.", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "halimalrasihi/flux-red-cinema", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "free=29481308684288\nDownloading weights\n2024-11-13T22:12:00Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp17qujhxe/weights url=https://replicate.com/halimalrasihi/flux-red-cinema/_weights\n2024-11-13T22:12:00Z | INFO | [ Redirect ] redirect_url=https://replicate.delivery/yhqm/jX5OBXLnRtruANhVrcr67tlKzNUx7mxUz0TpU3wNy48MhK1E/trained_model.tar url=https://replicate.com/halimalrasihi/flux-red-cinema/_weights\n2024-11-13T22:12:00Z | INFO | [ Complete ] dest=/tmp/tmp17qujhxe/weights size=\"172 MB\" total_elapsed=0.548s url=https://replicate.com/halimalrasihi/flux-red-cinema/_weights\nDownloaded weights in 0.57s\n2024-11-13 22:12:00.889 | INFO | fp8.lora_loading:load_lora:497 - Loading LoRA weights for /src/weights-cache/1c44dcf497c3dba2\n2024-11-13 22:12:00.970 | INFO | fp8.lora_loading:load_lora:518 - LoRA weights loaded\n2024-11-13 22:12:00.971 | DEBUG | fp8.lora_loading:apply_lora_to_model:547 - Extracting keys\n2024-11-13 22:12:00.971 | DEBUG | fp8.lora_loading:apply_lora_to_model:554 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 0%| | 1/304 [00:00<01:16, 3.95it/s]\nApplying LoRA: 42%|████▏ | 127/304 [00:00<00:00, 454.34it/s]\nApplying LoRA: 69%|██████▉ | 209/304 [00:00<00:00, 576.77it/s]\nApplying LoRA: 95%|█████████▍| 288/304 [00:00<00:00, 645.94it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 532.72it/s]\n2024-11-13 22:12:01.542 | SUCCESS | fp8.lora_loading:load_lora:521 - LoRA applied in 0.65s\nrunning quantized prediction\nUsing seed: 2370588944\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": 2.153612107, "total_time": 2.159971 }, "output": [ "https://replicate.delivery/xezq/3JmS3gjhLWoUHZLKiIrbEByF5bWRvOHheyzq633FjcBZsW4JA/out-0.webp" ], "started_at": "2024-11-13T22:12:00.320359Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-exrnifpht7oqjj6phddagw63axbgtz4z3v47hfst3ejdfhoczbpq", "get": "https://api.replicate.com/v1/predictions/b73f0wtwq9rma0ck4yar10xkyr", "cancel": "https://api.replicate.com/v1/predictions/b73f0wtwq9rma0ck4yar10xkyr/cancel" }, "version": "hidden" }
Generated infree=29481308684288 Downloading weights 2024-11-13T22:12:00Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp17qujhxe/weights url=https://replicate.com/halimalrasihi/flux-red-cinema/_weights 2024-11-13T22:12:00Z | INFO | [ Redirect ] redirect_url=https://replicate.delivery/yhqm/jX5OBXLnRtruANhVrcr67tlKzNUx7mxUz0TpU3wNy48MhK1E/trained_model.tar url=https://replicate.com/halimalrasihi/flux-red-cinema/_weights 2024-11-13T22:12:00Z | INFO | [ Complete ] dest=/tmp/tmp17qujhxe/weights size="172 MB" total_elapsed=0.548s url=https://replicate.com/halimalrasihi/flux-red-cinema/_weights Downloaded weights in 0.57s 2024-11-13 22:12:00.889 | INFO | fp8.lora_loading:load_lora:497 - Loading LoRA weights for /src/weights-cache/1c44dcf497c3dba2 2024-11-13 22:12:00.970 | INFO | fp8.lora_loading:load_lora:518 - LoRA weights loaded 2024-11-13 22:12:00.971 | DEBUG | fp8.lora_loading:apply_lora_to_model:547 - Extracting keys 2024-11-13 22:12:00.971 | DEBUG | fp8.lora_loading:apply_lora_to_model:554 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 0%| | 1/304 [00:00<01:16, 3.95it/s] Applying LoRA: 42%|████▏ | 127/304 [00:00<00:00, 454.34it/s] Applying LoRA: 69%|██████▉ | 209/304 [00:00<00:00, 576.77it/s] Applying LoRA: 95%|█████████▍| 288/304 [00:00<00:00, 645.94it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 532.72it/s] 2024-11-13 22:12:01.542 | SUCCESS | fp8.lora_loading:load_lora:521 - LoRA applied in 0.65s running quantized prediction Using seed: 2370588944 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
Prediction
black-forest-labs/flux-schnell-loraOfficial modelIDkpw8hnkcd1rme0ck4yb985wx2gStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- GHIBSKY style, the most beautiful place in the universe
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- aleksa-codes/flux-ghibsky-illustration
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "GHIBSKY style, the most beautiful place in the universe", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "aleksa-codes/flux-ghibsky-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "GHIBSKY style, the most beautiful place in the universe", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "aleksa-codes/flux-ghibsky-illustration", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "GHIBSKY style, the most beautiful place in the universe", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "aleksa-codes/flux-ghibsky-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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": "GHIBSKY style, the most beautiful place in the universe", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "aleksa-codes/flux-ghibsky-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T22:13:18.628037Z", "created_at": "2024-11-13T22:13:09.864000Z", "data_removed": false, "error": null, "id": "kpw8hnkcd1rme0ck4yb985wx2g", "input": { "prompt": "GHIBSKY style, the most beautiful place in the universe", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "aleksa-codes/flux-ghibsky-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "2024-11-13 22:13:09.869 | DEBUG | fp8.lora_loading:apply_lora_to_model:547 - Extracting keys\n2024-11-13 22:13:09.869 | DEBUG | fp8.lora_loading:apply_lora_to_model:554 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 12956.96it/s]\n2024-11-13 22:13:09.893 | SUCCESS | fp8.lora_loading:unload_loras:537 - LoRAs unloaded in 0.024s\nfree=29481139367936\nDownloading weights\n2024-11-13T22:13:09Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmply3dg0kj/weights url=https://replicate.com/aleksa-codes/flux-ghibsky-illustration/_weights\n2024-11-13T22:13:10Z | INFO | [ Redirect ] redirect_url=https://replicate.delivery/yhqm/vL5AgPaGiNbIBp9jRwKBLqz42yxmQHZDmqTxf2wejILflOpmA/trained_model.tar url=https://replicate.com/aleksa-codes/flux-ghibsky-illustration/_weights\n2024-11-13T22:13:17Z | INFO | [ Complete ] dest=/tmp/tmply3dg0kj/weights size=\"172 MB\" total_elapsed=7.682s url=https://replicate.com/aleksa-codes/flux-ghibsky-illustration/_weights\nDownloaded weights in 7.71s\n2024-11-13 22:13:17.602 | INFO | fp8.lora_loading:load_lora:497 - Loading LoRA weights for /src/weights-cache/66cdc76cc1faa86a\n2024-11-13 22:13:17.674 | INFO | fp8.lora_loading:load_lora:518 - LoRA weights loaded\n2024-11-13 22:13:17.674 | DEBUG | fp8.lora_loading:apply_lora_to_model:547 - Extracting keys\n2024-11-13 22:13:17.674 | DEBUG | fp8.lora_loading:apply_lora_to_model:554 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 41%|████▏ | 126/304 [00:00<00:00, 1247.38it/s]\nApplying LoRA: 83%|████████▎ | 251/304 [00:00<00:00, 946.47it/s] \nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 955.29it/s]\n2024-11-13 22:13:17.993 | SUCCESS | fp8.lora_loading:load_lora:521 - LoRA applied in 0.39s\nrunning quantized prediction\nUsing seed: 2992198366\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.76it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.57it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.15it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 8.758689035, "total_time": 8.764037 }, "output": [ "https://replicate.delivery/xezq/ZfdgGiGFmlQdEqldePTY2g3JKzlZnJ3hGmYJrnk6s27ezahnA/out-0.webp" ], "started_at": "2024-11-13T22:13:09.869348Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-w6w2cnhbxyxu7hjilclmc2aowxo43tedffh4fqtsb3uo7czuxspq", "get": "https://api.replicate.com/v1/predictions/kpw8hnkcd1rme0ck4yb985wx2g", "cancel": "https://api.replicate.com/v1/predictions/kpw8hnkcd1rme0ck4yb985wx2g/cancel" }, "version": "hidden" }
Generated in2024-11-13 22:13:09.869 | DEBUG | fp8.lora_loading:apply_lora_to_model:547 - Extracting keys 2024-11-13 22:13:09.869 | DEBUG | fp8.lora_loading:apply_lora_to_model:554 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 12956.96it/s] 2024-11-13 22:13:09.893 | SUCCESS | fp8.lora_loading:unload_loras:537 - LoRAs unloaded in 0.024s free=29481139367936 Downloading weights 2024-11-13T22:13:09Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmply3dg0kj/weights url=https://replicate.com/aleksa-codes/flux-ghibsky-illustration/_weights 2024-11-13T22:13:10Z | INFO | [ Redirect ] redirect_url=https://replicate.delivery/yhqm/vL5AgPaGiNbIBp9jRwKBLqz42yxmQHZDmqTxf2wejILflOpmA/trained_model.tar url=https://replicate.com/aleksa-codes/flux-ghibsky-illustration/_weights 2024-11-13T22:13:17Z | INFO | [ Complete ] dest=/tmp/tmply3dg0kj/weights size="172 MB" total_elapsed=7.682s url=https://replicate.com/aleksa-codes/flux-ghibsky-illustration/_weights Downloaded weights in 7.71s 2024-11-13 22:13:17.602 | INFO | fp8.lora_loading:load_lora:497 - Loading LoRA weights for /src/weights-cache/66cdc76cc1faa86a 2024-11-13 22:13:17.674 | INFO | fp8.lora_loading:load_lora:518 - LoRA weights loaded 2024-11-13 22:13:17.674 | DEBUG | fp8.lora_loading:apply_lora_to_model:547 - Extracting keys 2024-11-13 22:13:17.674 | DEBUG | fp8.lora_loading:apply_lora_to_model:554 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 41%|████▏ | 126/304 [00:00<00:00, 1247.38it/s] Applying LoRA: 83%|████████▎ | 251/304 [00:00<00:00, 946.47it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 955.29it/s] 2024-11-13 22:13:17.993 | SUCCESS | fp8.lora_loading:load_lora:521 - LoRA applied in 0.39s running quantized prediction Using seed: 2992198366 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.76it/s] 100%|██████████| 4/4 [00:00<00:00, 13.57it/s] 100%|██████████| 4/4 [00:00<00:00, 14.15it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnell-loraOfficial modelIDb3zzc3ywv9rm80ck4ybsrpe4h0StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- In the style of TOK, a vibrant urban streetwear photo of a woman, white shirt, editorial featuring an edgy, fashion-forward model in a dramatic action pose, adjusting quirky 90s round sunglasses while giving a direct, intense gaze. Set in futuristic Tokyo at sunset, with towering marble structures and sculpted bonsai trees. The model wears a eye-catching, pop art-inspired jacket adorned with whimsical, cartoon-like illustrations. Surrounding the subject, a playful mix of animated doodles including Neon-outlined daisies, swirling smoke tendrils, stylized flames, kawaii ice cream cones, glittery sparkles, electric guitar silhouettes, floating music notes, colorful stars, bubble letters, emoji-style suns, abstract squiggles, and graffiti-style tags. The overall aesthetic blends eclectic streetwear with digital art, creating a funky, contemporary vibe that's both expressive and unconventional.
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- davisbrown/flux-half-illustration
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "In the style of TOK, a vibrant urban streetwear photo of a woman, white shirt, editorial featuring an edgy, fashion-forward model in a dramatic action pose, adjusting quirky 90s round sunglasses while giving a direct, intense gaze. Set in futuristic Tokyo at sunset, with towering marble structures and sculpted bonsai trees. The model wears a eye-catching, pop art-inspired jacket adorned with whimsical, cartoon-like illustrations. Surrounding the subject, a playful mix of animated doodles including Neon-outlined daisies, swirling smoke tendrils, stylized flames, kawaii ice cream cones, glittery sparkles, electric guitar silhouettes, floating music notes, colorful stars, bubble letters, emoji-style suns, abstract squiggles, and graffiti-style tags. The overall aesthetic blends eclectic streetwear with digital art, creating a funky, contemporary vibe that's both expressive and unconventional.", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "davisbrown/flux-half-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "In the style of TOK, a vibrant urban streetwear photo of a woman, white shirt, editorial featuring an edgy, fashion-forward model in a dramatic action pose, adjusting quirky 90s round sunglasses while giving a direct, intense gaze. Set in futuristic Tokyo at sunset, with towering marble structures and sculpted bonsai trees. The model wears a eye-catching, pop art-inspired jacket adorned with whimsical, cartoon-like illustrations. Surrounding the subject, a playful mix of animated doodles including Neon-outlined daisies, swirling smoke tendrils, stylized flames, kawaii ice cream cones, glittery sparkles, electric guitar silhouettes, floating music notes, colorful stars, bubble letters, emoji-style suns, abstract squiggles, and graffiti-style tags. The overall aesthetic blends eclectic streetwear with digital art, creating a funky, contemporary vibe that's both expressive and unconventional.", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "davisbrown/flux-half-illustration", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "In the style of TOK, a vibrant urban streetwear photo of a woman, white shirt, editorial featuring an edgy, fashion-forward model in a dramatic action pose, adjusting quirky 90s round sunglasses while giving a direct, intense gaze. Set in futuristic Tokyo at sunset, with towering marble structures and sculpted bonsai trees. The model wears a eye-catching, pop art-inspired jacket adorned with whimsical, cartoon-like illustrations. Surrounding the subject, a playful mix of animated doodles including Neon-outlined daisies, swirling smoke tendrils, stylized flames, kawaii ice cream cones, glittery sparkles, electric guitar silhouettes, floating music notes, colorful stars, bubble letters, emoji-style suns, abstract squiggles, and graffiti-style tags. The overall aesthetic blends eclectic streetwear with digital art, creating a funky, contemporary vibe that's both expressive and unconventional.", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "davisbrown/flux-half-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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": "In the style of TOK, a vibrant urban streetwear photo of a woman, white shirt, editorial featuring an edgy, fashion-forward model in a dramatic action pose, adjusting quirky 90s round sunglasses while giving a direct, intense gaze. Set in futuristic Tokyo at sunset, with towering marble structures and sculpted bonsai trees. The model wears a eye-catching, pop art-inspired jacket adorned with whimsical, cartoon-like illustrations. Surrounding the subject, a playful mix of animated doodles including Neon-outlined daisies, swirling smoke tendrils, stylized flames, kawaii ice cream cones, glittery sparkles, electric guitar silhouettes, floating music notes, colorful stars, bubble letters, emoji-style suns, abstract squiggles, and graffiti-style tags. The overall aesthetic blends eclectic streetwear with digital art, creating a funky, contemporary vibe that\'s both expressive and unconventional.", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "davisbrown/flux-half-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T22:14:44.760419Z", "created_at": "2024-11-13T22:14:44.186000Z", "data_removed": false, "error": null, "id": "b3zzc3ywv9rm80ck4ybsrpe4h0", "input": { "prompt": "In the style of TOK, a vibrant urban streetwear photo of a woman, white shirt, editorial featuring an edgy, fashion-forward model in a dramatic action pose, adjusting quirky 90s round sunglasses while giving a direct, intense gaze. Set in futuristic Tokyo at sunset, with towering marble structures and sculpted bonsai trees. The model wears a eye-catching, pop art-inspired jacket adorned with whimsical, cartoon-like illustrations. Surrounding the subject, a playful mix of animated doodles including Neon-outlined daisies, swirling smoke tendrils, stylized flames, kawaii ice cream cones, glittery sparkles, electric guitar silhouettes, floating music notes, colorful stars, bubble letters, emoji-style suns, abstract squiggles, and graffiti-style tags. The overall aesthetic blends eclectic streetwear with digital art, creating a funky, contemporary vibe that's both expressive and unconventional.", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "davisbrown/flux-half-illustration", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "Lora davisbrown/flux-half-illustration already loaded\nrunning quantized prediction\nUsing seed: 152539322\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.99it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.57it/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.569065969, "total_time": 0.574419 }, "output": [ "https://replicate.delivery/xezq/hCebaGAhEC3FXqmcPMMIZqiYBjN4dDj9wUIDcne2pXTUbtwTA/out-0.webp" ], "started_at": "2024-11-13T22:14:44.191353Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-etmtygg6es4ujmm424t7iu5spuhhyajj5qge2oeokicv4tdqiqjq", "get": "https://api.replicate.com/v1/predictions/b3zzc3ywv9rm80ck4ybsrpe4h0", "cancel": "https://api.replicate.com/v1/predictions/b3zzc3ywv9rm80ck4ybsrpe4h0/cancel" }, "version": "hidden" }
Generated inLora davisbrown/flux-half-illustration already loaded running quantized prediction Using seed: 152539322 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 18.99it/s] 100%|██████████| 4/4 [00:00<00:00, 13.57it/s] 100%|██████████| 4/4 [00:00<00:00, 14.17it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnell-loraOfficial modelIDzc04acfd61rme0ck5dfrq6bs74StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A tabby cat lounging on a sun-dappled windowsill, half its body in shadow, half in bright light, flmft style
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- huggingface.co/alvdansen/flux-koda
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "A tabby cat lounging on a sun-dappled windowsill, half its body in shadow, half in bright light, flmft style", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/alvdansen/flux-koda", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A tabby cat lounging on a sun-dappled windowsill, half its body in shadow, half in bright light, flmft style", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "huggingface.co/alvdansen/flux-koda", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "A tabby cat lounging on a sun-dappled windowsill, half its body in shadow, half in bright light, flmft style", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/alvdansen/flux-koda", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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 tabby cat lounging on a sun-dappled windowsill, half its body in shadow, half in bright light, flmft style", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/alvdansen/flux-koda", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-14T15:52:07.774566Z", "created_at": "2024-11-14T15:52:07.216000Z", "data_removed": false, "error": null, "id": "zc04acfd61rme0ck5dfrq6bs74", "input": { "prompt": "A tabby cat lounging on a sun-dappled windowsill, half its body in shadow, half in bright light, flmft style", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/alvdansen/flux-koda", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "Lora huggingface.co/alvdansen/flux-koda already loaded\nrunning quantized prediction\nUsing seed: 1352387723\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 19.43it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.04it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.64it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.550792339, "total_time": 0.558566 }, "output": [ "https://replicate.delivery/xezq/JpQucrz6jHbpIp3lHZD7cXpJ4YhysSX0glMdZKl7fOvTdewTA/out-0.webp" ], "started_at": "2024-11-14T15:52:07.223774Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-ga3hifocygcdzfxpnbtqmshpzogaerjrlsrnfefp4hfuwpztr6vq", "get": "https://api.replicate.com/v1/predictions/zc04acfd61rme0ck5dfrq6bs74", "cancel": "https://api.replicate.com/v1/predictions/zc04acfd61rme0ck5dfrq6bs74/cancel" }, "version": "hidden" }
Generated inLora huggingface.co/alvdansen/flux-koda already loaded running quantized prediction Using seed: 1352387723 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 19.43it/s] 100%|██████████| 4/4 [00:00<00:00, 14.04it/s] 100%|██████████| 4/4 [00:00<00:00, 14.64it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnell-loraOfficial modelID51300wbj51rm80ck5dhrajzz90StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- a dog eating pasta, in the style of TOK a trtcrd, tarot style
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- huggingface.co/multimodalart/flux-tarot-v1
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "a dog eating pasta, in the style of TOK a trtcrd, tarot style", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/multimodalart/flux-tarot-v1", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "a dog eating pasta, in the style of TOK a trtcrd, tarot style", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "huggingface.co/multimodalart/flux-tarot-v1", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "a dog eating pasta, in the style of TOK a trtcrd, tarot style", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/multimodalart/flux-tarot-v1", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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 dog eating pasta, in the style of TOK a trtcrd, tarot style", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/multimodalart/flux-tarot-v1", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-14T15:55:58.437125Z", "created_at": "2024-11-14T15:55:57.864000Z", "data_removed": false, "error": null, "id": "51300wbj51rm80ck5dhrajzz90", "input": { "prompt": "a dog eating pasta, in the style of TOK a trtcrd, tarot style", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/multimodalart/flux-tarot-v1", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "Lora huggingface.co/multimodalart/flux-tarot-v1 already loaded\nrunning quantized prediction\nUsing seed: 3591274728\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 19.04it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.79it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.38it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.567579739, "total_time": 0.573125 }, "output": [ "https://replicate.delivery/xezq/fOXyUSHfhEtIY0ArENAVxRZoxDFzSqdVvkPX2Af7VDAd85hnA/out-0.webp" ], "started_at": "2024-11-14T15:55:57.869545Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-nzmarortzp3kypnck2nw6qwv5q77iu2ygypoyveguouzlx2f2s6q", "get": "https://api.replicate.com/v1/predictions/51300wbj51rm80ck5dhrajzz90", "cancel": "https://api.replicate.com/v1/predictions/51300wbj51rm80ck5dhrajzz90/cancel" }, "version": "hidden" }
Generated inLora huggingface.co/multimodalart/flux-tarot-v1 already loaded running quantized prediction Using seed: 3591274728 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 19.04it/s] 100%|██████████| 4/4 [00:00<00:00, 13.79it/s] 100%|██████████| 4/4 [00:00<00:00, 14.38it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-schnell-loraOfficial modelIDbme9tsefjdrma0ck5dj8s2t64wStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- v3ct0r style, simple vector art, isolated on white bg, xmas tree with beautifully wrapped gifts beneath it, character asset, clip art
- go_fast
- lora_scale
- 0.8
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- lora_weights
- huggingface.co/renderartist/simplevectorflux
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 4
{ "prompt": "v3ct0r style, simple vector art, isolated on white bg, xmas tree with beautifully wrapped gifts beneath it, character asset, clip art", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/renderartist/simplevectorflux", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-schnell-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "v3ct0r style, simple vector art, isolated on white bg, xmas tree with beautifully wrapped gifts beneath it, character asset, clip art", go_fast: true, lora_scale: 0.8, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", lora_weights: "huggingface.co/renderartist/simplevectorflux", output_format: "webp", output_quality: 80, num_inference_steps: 4 }; const output = await replicate.run("black-forest-labs/flux-schnell-lora", { input }); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run black-forest-labs/flux-schnell-lora 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-lora", input={ "prompt": "v3ct0r style, simple vector art, isolated on white bg, xmas tree with beautifully wrapped gifts beneath it, character asset, clip art", "go_fast": True, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/renderartist/simplevectorflux", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run black-forest-labs/flux-schnell-lora 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": "v3ct0r style, simple vector art, isolated on white bg, xmas tree with beautifully wrapped gifts beneath it, character asset, clip art", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/renderartist/simplevectorflux", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-schnell-lora/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-14T15:57:27.860342Z", "created_at": "2024-11-14T15:57:27.315000Z", "data_removed": false, "error": null, "id": "bme9tsefjdrma0ck5dj8s2t64w", "input": { "prompt": "v3ct0r style, simple vector art, isolated on white bg, xmas tree with beautifully wrapped gifts beneath it, character asset, clip art", "go_fast": true, "lora_scale": 0.8, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "lora_weights": "huggingface.co/renderartist/simplevectorflux", "output_format": "webp", "output_quality": 80, "num_inference_steps": 4 }, "logs": "Lora huggingface.co/renderartist/simplevectorflux already loaded\nrunning quantized prediction\nUsing seed: 215961804\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 19.03it/s]\n100%|██████████| 4/4 [00:00<00:00, 13.80it/s]\n100%|██████████| 4/4 [00:00<00:00, 14.38it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 0.539286288, "total_time": 0.545342 }, "output": [ "https://replicate.delivery/xezq/5KTPbGTsUiYMHlSdVjr4kWfHxR3JRJ6YqXh8eH9BZHHnf5hnA/out-0.webp" ], "started_at": "2024-11-14T15:57:27.321056Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zhoty3jnz5dtfwgpccsg7y2kmt65lsapt5tiiod5a2r2taxypt5a", "get": "https://api.replicate.com/v1/predictions/bme9tsefjdrma0ck5dj8s2t64w", "cancel": "https://api.replicate.com/v1/predictions/bme9tsefjdrma0ck5dj8s2t64w/cancel" }, "version": "hidden" }
Generated inLora huggingface.co/renderartist/simplevectorflux already loaded running quantized prediction Using seed: 215961804 0%| | 0/4 [00:00<?, ?it/s] 50%|█████ | 2/4 [00:00<00:00, 19.03it/s] 100%|██████████| 4/4 [00:00<00:00, 13.80it/s] 100%|██████████| 4/4 [00:00<00:00, 14.38it/s] Total safe images: 1 out of 1
Want to make some of these yourself?
Run this model