bingbangboom-lab / flux-new-whimscape
Flux LoRA for creating whimsical illustrations. Use "illustration in the style of WHMSCPE001" to trigger the model.
- Public
- 19.3K runs
-
H100
- Paper
Prediction
bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682ID3k0g8j8ggnrm00cj0fjtdwp1wrStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- width
- 856
- height
- 1156
- prompt
- a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 3.5
- output_quality
- 100
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 25
{ "model": "dev", "width": 856, "height": 1156, "prompt": "a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 }
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 bingbangboom-lab/flux-new-whimscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", { input: { model: "dev", width: 856, height: 1156, prompt: "a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "png", guidance_scale: 3.5, output_quality: 100, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 25 } } ); // 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 bingbangboom-lab/flux-new-whimscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", input={ "model": "dev", "width": 856, "height": 1156, "prompt": "a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bingbangboom-lab/flux-new-whimscape 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 $'{ "version": "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", "input": { "model": "dev", "width": 856, "height": 1156, "prompt": "a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-18T06:51:43.933112Z", "created_at": "2024-09-18T06:49:56.613000Z", "data_removed": false, "error": null, "id": "3k0g8j8ggnrm00cj0fjtdwp1wr", "input": { "model": "dev", "width": 856, "height": 1156, "prompt": "a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 }, "logs": "Using seed: 49684\nPrompt: a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001\n[!] txt2img mode\nUsing dev model\nfree=7335144284160\nDownloading weights\n2024-09-18T06:51:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp5riwrpq7/weights url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar\n2024-09-18T06:51:08Z | INFO | [ Complete ] dest=/tmp/tmp5riwrpq7/weights size=\"172 MB\" total_elapsed=1.240s url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar\nDownloaded weights in 1.27s\nLoaded LoRAs in 28.67s\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:06, 3.54it/s]\n 8%|▊ | 2/25 [00:00<00:05, 4.01it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 3.78it/s]\n 16%|█▌ | 4/25 [00:01<00:05, 3.68it/s]\n 20%|██ | 5/25 [00:01<00:05, 3.63it/s]\n 24%|██▍ | 6/25 [00:01<00:05, 3.60it/s]\n 28%|██▊ | 7/25 [00:01<00:05, 3.58it/s]\n 32%|███▏ | 8/25 [00:02<00:04, 3.56it/s]\n 36%|███▌ | 9/25 [00:02<00:04, 3.56it/s]\n 40%|████ | 10/25 [00:02<00:04, 3.55it/s]\n 44%|████▍ | 11/25 [00:03<00:03, 3.55it/s]\n 48%|████▊ | 12/25 [00:03<00:03, 3.54it/s]\n 52%|█████▏ | 13/25 [00:03<00:03, 3.54it/s]\n 56%|█████▌ | 14/25 [00:03<00:03, 3.54it/s]\n 60%|██████ | 15/25 [00:04<00:02, 3.54it/s]\n 64%|██████▍ | 16/25 [00:04<00:02, 3.54it/s]\n 68%|██████▊ | 17/25 [00:04<00:02, 3.54it/s]\n 72%|███████▏ | 18/25 [00:05<00:01, 3.54it/s]\n 76%|███████▌ | 19/25 [00:05<00:01, 3.54it/s]\n 80%|████████ | 20/25 [00:05<00:01, 3.54it/s]\n 84%|████████▍ | 21/25 [00:05<00:01, 3.54it/s]\n 88%|████████▊ | 22/25 [00:06<00:00, 3.54it/s]\n 92%|█████████▏| 23/25 [00:06<00:00, 3.54it/s]\n 96%|█████████▌| 24/25 [00:06<00:00, 3.54it/s]\n100%|██████████| 25/25 [00:07<00:00, 3.54it/s]\n100%|██████████| 25/25 [00:07<00:00, 3.57it/s]", "metrics": { "predict_time": 36.438915546, "total_time": 107.320112 }, "output": [ "https://replicate.delivery/yhqm/0lisZ7bAP3ZOE1elMqPWUmVeVRp5ldfVebEKfisfT3qefpCemA/out-0.png" ], "started_at": "2024-09-18T06:51:07.494196Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3k0g8j8ggnrm00cj0fjtdwp1wr", "cancel": "https://api.replicate.com/v1/predictions/3k0g8j8ggnrm00cj0fjtdwp1wr/cancel" }, "version": "2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682" }
Generated inUsing seed: 49684 Prompt: a cat taking a nap on a work table, plants and flowers, illustration in the style of WHMSCPE001 [!] txt2img mode Using dev model free=7335144284160 Downloading weights 2024-09-18T06:51:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp5riwrpq7/weights url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar 2024-09-18T06:51:08Z | INFO | [ Complete ] dest=/tmp/tmp5riwrpq7/weights size="172 MB" total_elapsed=1.240s url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar Downloaded weights in 1.27s Loaded LoRAs in 28.67s 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:06, 3.54it/s] 8%|▊ | 2/25 [00:00<00:05, 4.01it/s] 12%|█▏ | 3/25 [00:00<00:05, 3.78it/s] 16%|█▌ | 4/25 [00:01<00:05, 3.68it/s] 20%|██ | 5/25 [00:01<00:05, 3.63it/s] 24%|██▍ | 6/25 [00:01<00:05, 3.60it/s] 28%|██▊ | 7/25 [00:01<00:05, 3.58it/s] 32%|███▏ | 8/25 [00:02<00:04, 3.56it/s] 36%|███▌ | 9/25 [00:02<00:04, 3.56it/s] 40%|████ | 10/25 [00:02<00:04, 3.55it/s] 44%|████▍ | 11/25 [00:03<00:03, 3.55it/s] 48%|████▊ | 12/25 [00:03<00:03, 3.54it/s] 52%|█████▏ | 13/25 [00:03<00:03, 3.54it/s] 56%|█████▌ | 14/25 [00:03<00:03, 3.54it/s] 60%|██████ | 15/25 [00:04<00:02, 3.54it/s] 64%|██████▍ | 16/25 [00:04<00:02, 3.54it/s] 68%|██████▊ | 17/25 [00:04<00:02, 3.54it/s] 72%|███████▏ | 18/25 [00:05<00:01, 3.54it/s] 76%|███████▌ | 19/25 [00:05<00:01, 3.54it/s] 80%|████████ | 20/25 [00:05<00:01, 3.54it/s] 84%|████████▍ | 21/25 [00:05<00:01, 3.54it/s] 88%|████████▊ | 22/25 [00:06<00:00, 3.54it/s] 92%|█████████▏| 23/25 [00:06<00:00, 3.54it/s] 96%|█████████▌| 24/25 [00:06<00:00, 3.54it/s] 100%|██████████| 25/25 [00:07<00:00, 3.54it/s] 100%|██████████| 25/25 [00:07<00:00, 3.57it/s]
Prediction
bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682ID3zewb5254drm00cj0fkrvpbz2mStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- width
- 856
- height
- 1156
- prompt
- a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 3.5
- output_quality
- 100
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 25
{ "model": "dev", "width": 856, "height": 1156, "prompt": "a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 }
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 bingbangboom-lab/flux-new-whimscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", { input: { model: "dev", width: 856, height: 1156, prompt: "a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "png", guidance_scale: 3.5, output_quality: 100, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 25 } } ); // 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 bingbangboom-lab/flux-new-whimscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", input={ "model": "dev", "width": 856, "height": 1156, "prompt": "a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bingbangboom-lab/flux-new-whimscape 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 $'{ "version": "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", "input": { "model": "dev", "width": 856, "height": 1156, "prompt": "a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-18T06:54:12.772630Z", "created_at": "2024-09-18T06:52:21.155000Z", "data_removed": false, "error": null, "id": "3zewb5254drm00cj0fkrvpbz2m", "input": { "model": "dev", "width": 856, "height": 1156, "prompt": "a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 }, "logs": "Using seed: 15136\nPrompt: a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001\n[!] txt2img mode\nUsing dev model\nfree=7334192365568\nDownloading weights\n2024-09-18T06:53:20Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpzyozns17/weights url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar\n2024-09-18T06:53:22Z | INFO | [ Complete ] dest=/tmp/tmpzyozns17/weights size=\"172 MB\" total_elapsed=1.336s url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar\nDownloaded weights in 1.37s\nLoaded LoRAs in 44.04s\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:06, 3.53it/s]\n 8%|▊ | 2/25 [00:00<00:05, 4.01it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 3.78it/s]\n 16%|█▌ | 4/25 [00:01<00:05, 3.68it/s]\n 20%|██ | 5/25 [00:01<00:05, 3.63it/s]\n 24%|██▍ | 6/25 [00:01<00:05, 3.60it/s]\n 28%|██▊ | 7/25 [00:01<00:05, 3.58it/s]\n 32%|███▏ | 8/25 [00:02<00:04, 3.57it/s]\n 36%|███▌ | 9/25 [00:02<00:04, 3.56it/s]\n 40%|████ | 10/25 [00:02<00:04, 3.55it/s]\n 44%|████▍ | 11/25 [00:03<00:03, 3.55it/s]\n 48%|████▊ | 12/25 [00:03<00:03, 3.55it/s]\n 52%|█████▏ | 13/25 [00:03<00:03, 3.55it/s]\n 56%|█████▌ | 14/25 [00:03<00:03, 3.54it/s]\n 60%|██████ | 15/25 [00:04<00:02, 3.54it/s]\n 64%|██████▍ | 16/25 [00:04<00:02, 3.54it/s]\n 68%|██████▊ | 17/25 [00:04<00:02, 3.54it/s]\n 72%|███████▏ | 18/25 [00:05<00:01, 3.54it/s]\n 76%|███████▌ | 19/25 [00:05<00:01, 3.54it/s]\n 80%|████████ | 20/25 [00:05<00:01, 3.54it/s]\n 84%|████████▍ | 21/25 [00:05<00:01, 3.54it/s]\n 88%|████████▊ | 22/25 [00:06<00:00, 3.54it/s]\n 92%|█████████▏| 23/25 [00:06<00:00, 3.54it/s]\n 96%|█████████▌| 24/25 [00:06<00:00, 3.54it/s]\n100%|██████████| 25/25 [00:07<00:00, 3.54it/s]\n100%|██████████| 25/25 [00:07<00:00, 3.57it/s]", "metrics": { "predict_time": 51.96078388, "total_time": 111.61763 }, "output": [ "https://replicate.delivery/yhqm/tiRsqyv36EZLJJkZWTv8VC9eTAAIT7w7JfoFOJ1GoD1UsCemA/out-0.png" ], "started_at": "2024-09-18T06:53:20.811846Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3zewb5254drm00cj0fkrvpbz2m", "cancel": "https://api.replicate.com/v1/predictions/3zewb5254drm00cj0fkrvpbz2m/cancel" }, "version": "2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682" }
Generated inUsing seed: 15136 Prompt: a white-haired young woman wearing a flower crown, a very large fiery dragon, castle in the background, illustration in the style of WHMSCPE001 [!] txt2img mode Using dev model free=7334192365568 Downloading weights 2024-09-18T06:53:20Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpzyozns17/weights url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar 2024-09-18T06:53:22Z | INFO | [ Complete ] dest=/tmp/tmpzyozns17/weights size="172 MB" total_elapsed=1.336s url=https://replicate.delivery/yhqm/AWKuvAwZat5RJpucihcXh8QVq4jrWwK65bjpqAVjEftoXCuJA/trained_model.tar Downloaded weights in 1.37s Loaded LoRAs in 44.04s 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:06, 3.53it/s] 8%|▊ | 2/25 [00:00<00:05, 4.01it/s] 12%|█▏ | 3/25 [00:00<00:05, 3.78it/s] 16%|█▌ | 4/25 [00:01<00:05, 3.68it/s] 20%|██ | 5/25 [00:01<00:05, 3.63it/s] 24%|██▍ | 6/25 [00:01<00:05, 3.60it/s] 28%|██▊ | 7/25 [00:01<00:05, 3.58it/s] 32%|███▏ | 8/25 [00:02<00:04, 3.57it/s] 36%|███▌ | 9/25 [00:02<00:04, 3.56it/s] 40%|████ | 10/25 [00:02<00:04, 3.55it/s] 44%|████▍ | 11/25 [00:03<00:03, 3.55it/s] 48%|████▊ | 12/25 [00:03<00:03, 3.55it/s] 52%|█████▏ | 13/25 [00:03<00:03, 3.55it/s] 56%|█████▌ | 14/25 [00:03<00:03, 3.54it/s] 60%|██████ | 15/25 [00:04<00:02, 3.54it/s] 64%|██████▍ | 16/25 [00:04<00:02, 3.54it/s] 68%|██████▊ | 17/25 [00:04<00:02, 3.54it/s] 72%|███████▏ | 18/25 [00:05<00:01, 3.54it/s] 76%|███████▌ | 19/25 [00:05<00:01, 3.54it/s] 80%|████████ | 20/25 [00:05<00:01, 3.54it/s] 84%|████████▍ | 21/25 [00:05<00:01, 3.54it/s] 88%|████████▊ | 22/25 [00:06<00:00, 3.54it/s] 92%|█████████▏| 23/25 [00:06<00:00, 3.54it/s] 96%|█████████▌| 24/25 [00:06<00:00, 3.54it/s] 100%|██████████| 25/25 [00:07<00:00, 3.54it/s] 100%|██████████| 25/25 [00:07<00:00, 3.57it/s]
Prediction
bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682IDzwxxmmvwrxrm60cj0fsv598brrStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- width
- 856
- height
- 1156
- prompt
- a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- png
- guidance_scale
- 3.5
- output_quality
- 100
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 25
{ "model": "dev", "width": 856, "height": 1156, "prompt": "a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 }
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 bingbangboom-lab/flux-new-whimscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", { input: { model: "dev", width: 856, height: 1156, prompt: "a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "png", guidance_scale: 3.5, output_quality: 100, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 25 } } ); // 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 bingbangboom-lab/flux-new-whimscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", input={ "model": "dev", "width": 856, "height": 1156, "prompt": "a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bingbangboom-lab/flux-new-whimscape 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 $'{ "version": "bingbangboom-lab/flux-new-whimscape:2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682", "input": { "model": "dev", "width": 856, "height": 1156, "prompt": "a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-18T07:06:15.067304Z", "created_at": "2024-09-18T07:05:41.831000Z", "data_removed": false, "error": null, "id": "zwxxmmvwrxrm60cj0fsv598brr", "input": { "model": "dev", "width": 856, "height": 1156, "prompt": "a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "png", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 25 }, "logs": "Using seed: 11240\nPrompt: a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 8.34s\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:06, 3.54it/s]\n 8%|▊ | 2/25 [00:00<00:05, 4.01it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 3.78it/s]\n 16%|█▌ | 4/25 [00:01<00:05, 3.68it/s]\n 20%|██ | 5/25 [00:01<00:05, 3.63it/s]\n 24%|██▍ | 6/25 [00:01<00:05, 3.60it/s]\n 28%|██▊ | 7/25 [00:01<00:05, 3.58it/s]\n 32%|███▏ | 8/25 [00:02<00:04, 3.57it/s]\n 36%|███▌ | 9/25 [00:02<00:04, 3.56it/s]\n 40%|████ | 10/25 [00:02<00:04, 3.55it/s]\n 44%|████▍ | 11/25 [00:03<00:03, 3.55it/s]\n 48%|████▊ | 12/25 [00:03<00:03, 3.55it/s]\n 52%|█████▏ | 13/25 [00:03<00:03, 3.54it/s]\n 56%|█████▌ | 14/25 [00:03<00:03, 3.54it/s]\n 60%|██████ | 15/25 [00:04<00:02, 3.54it/s]\n 64%|██████▍ | 16/25 [00:04<00:02, 3.54it/s]\n 68%|██████▊ | 17/25 [00:04<00:02, 3.54it/s]\n 72%|███████▏ | 18/25 [00:05<00:01, 3.54it/s]\n 76%|███████▌ | 19/25 [00:05<00:01, 3.54it/s]\n 80%|████████ | 20/25 [00:05<00:01, 3.54it/s]\n 84%|████████▍ | 21/25 [00:05<00:01, 3.54it/s]\n 88%|████████▊ | 22/25 [00:06<00:00, 3.54it/s]\n 92%|█████████▏| 23/25 [00:06<00:00, 3.54it/s]\n 96%|█████████▌| 24/25 [00:06<00:00, 3.54it/s]\n100%|██████████| 25/25 [00:07<00:00, 3.54it/s]\n100%|██████████| 25/25 [00:07<00:00, 3.57it/s]", "metrics": { "predict_time": 16.336818428, "total_time": 33.236304 }, "output": [ "https://replicate.delivery/yhqm/SW58SPbxMKJrA5Uvu3wRTejRANzbrnyqk453B6L4lVWzbBvJA/out-0.png" ], "started_at": "2024-09-18T07:05:58.730486Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zwxxmmvwrxrm60cj0fsv598brr", "cancel": "https://api.replicate.com/v1/predictions/zwxxmmvwrxrm60cj0fsv598brr/cancel" }, "version": "2e8de10f217bc56da163a0204cf09f89995eaf643459014803fae79753183682" }
Generated inUsing seed: 11240 Prompt: a girl wearing sunglasses, a cute scarf, a baseball hat, doing finger guns, posing for a photo, vibrant pattern background, illustration in the style of WHMSCPE001 [!] txt2img mode Using dev model Loaded LoRAs in 8.34s 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:06, 3.54it/s] 8%|▊ | 2/25 [00:00<00:05, 4.01it/s] 12%|█▏ | 3/25 [00:00<00:05, 3.78it/s] 16%|█▌ | 4/25 [00:01<00:05, 3.68it/s] 20%|██ | 5/25 [00:01<00:05, 3.63it/s] 24%|██▍ | 6/25 [00:01<00:05, 3.60it/s] 28%|██▊ | 7/25 [00:01<00:05, 3.58it/s] 32%|███▏ | 8/25 [00:02<00:04, 3.57it/s] 36%|███▌ | 9/25 [00:02<00:04, 3.56it/s] 40%|████ | 10/25 [00:02<00:04, 3.55it/s] 44%|████▍ | 11/25 [00:03<00:03, 3.55it/s] 48%|████▊ | 12/25 [00:03<00:03, 3.55it/s] 52%|█████▏ | 13/25 [00:03<00:03, 3.54it/s] 56%|█████▌ | 14/25 [00:03<00:03, 3.54it/s] 60%|██████ | 15/25 [00:04<00:02, 3.54it/s] 64%|██████▍ | 16/25 [00:04<00:02, 3.54it/s] 68%|██████▊ | 17/25 [00:04<00:02, 3.54it/s] 72%|███████▏ | 18/25 [00:05<00:01, 3.54it/s] 76%|███████▌ | 19/25 [00:05<00:01, 3.54it/s] 80%|████████ | 20/25 [00:05<00:01, 3.54it/s] 84%|████████▍ | 21/25 [00:05<00:01, 3.54it/s] 88%|████████▊ | 22/25 [00:06<00:00, 3.54it/s] 92%|█████████▏| 23/25 [00:06<00:00, 3.54it/s] 96%|█████████▌| 24/25 [00:06<00:00, 3.54it/s] 100%|██████████| 25/25 [00:07<00:00, 3.54it/s] 100%|██████████| 25/25 [00:07<00:00, 3.57it/s]
Want to make some of these yourself?
Run this model