its-magick / merlin-bob
- Public
- 22 runs
Prediction
its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9IDgepw5cpne1rj40cj9ne865sf38StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- model
- dev
- prompt
- an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run its-magick/merlin-bob using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", { input: { model: "dev", prompt: "an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 its-magick/merlin-bob using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", input={ "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run its-magick/merlin-bob 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": "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", "input": { "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-02T13:13:28.488316Z", "created_at": "2024-10-02T13:13:02.576000Z", "data_removed": false, "error": null, "id": "gepw5cpne1rj40cj9ne865sf38", "input": { "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 12530\nPrompt: an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street\n[!] txt2img mode\nUsing dev model\nfree=3687775768576\nDownloading weights\n2024-10-02T13:13:05Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpahf69z5h/weights url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar\n2024-10-02T13:13:09Z | INFO | [ Complete ] dest=/tmp/tmpahf69z5h/weights size=\"172 MB\" total_elapsed=3.486s url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar\nDownloaded weights in 3.52s\nLoaded LoRAs in 4.33s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:17, 1.55it/s]\n 7%|▋ | 2/28 [00:01<00:14, 1.74it/s]\n 11%|█ | 3/28 [00:01<00:15, 1.65it/s]\n 14%|█▍ | 4/28 [00:02<00:14, 1.60it/s]\n 18%|█▊ | 5/28 [00:03<00:14, 1.58it/s]\n 21%|██▏ | 6/28 [00:03<00:14, 1.57it/s]\n 25%|██▌ | 7/28 [00:04<00:13, 1.56it/s]\n 29%|██▊ | 8/28 [00:05<00:12, 1.55it/s]\n 32%|███▏ | 9/28 [00:05<00:12, 1.55it/s]\n 36%|███▌ | 10/28 [00:06<00:11, 1.55it/s]\n 39%|███▉ | 11/28 [00:07<00:10, 1.55it/s]\n 43%|████▎ | 12/28 [00:07<00:10, 1.54it/s]\n 46%|████▋ | 13/28 [00:08<00:09, 1.54it/s]\n 50%|█████ | 14/28 [00:08<00:09, 1.54it/s]\n 54%|█████▎ | 15/28 [00:09<00:08, 1.54it/s]\n 57%|█████▋ | 16/28 [00:10<00:07, 1.54it/s]\n 61%|██████ | 17/28 [00:10<00:07, 1.54it/s]\n 64%|██████▍ | 18/28 [00:11<00:06, 1.54it/s]\n 68%|██████▊ | 19/28 [00:12<00:05, 1.54it/s]\n 71%|███████▏ | 20/28 [00:12<00:05, 1.54it/s]\n 75%|███████▌ | 21/28 [00:13<00:04, 1.54it/s]\n 79%|███████▊ | 22/28 [00:14<00:03, 1.54it/s]\n 82%|████████▏ | 23/28 [00:14<00:03, 1.54it/s]\n 86%|████████▌ | 24/28 [00:15<00:02, 1.54it/s]\n 89%|████████▉ | 25/28 [00:16<00:01, 1.54it/s]\n 93%|█████████▎| 26/28 [00:16<00:01, 1.54it/s]\n 96%|█████████▋| 27/28 [00:17<00:00, 1.54it/s]\n100%|██████████| 28/28 [00:18<00:00, 1.54it/s]\n100%|██████████| 28/28 [00:18<00:00, 1.55it/s]", "metrics": { "predict_time": 22.854143238, "total_time": 25.912316 }, "output": [ "https://replicate.delivery/yhqm/03dpvftq2QX5fU5HGgOhUhkUmp5EED1k4DnQPeTWJbfiPeVcC/out-0.webp" ], "started_at": "2024-10-02T13:13:05.634173Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gepw5cpne1rj40cj9ne865sf38", "cancel": "https://api.replicate.com/v1/predictions/gepw5cpne1rj40cj9ne865sf38/cancel" }, "version": "5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9" }
Generated inUsing seed: 12530 Prompt: an image of BOB from beetlejuice, in a bright yellow suit, running down a manhattan street [!] txt2img mode Using dev model free=3687775768576 Downloading weights 2024-10-02T13:13:05Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpahf69z5h/weights url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar 2024-10-02T13:13:09Z | INFO | [ Complete ] dest=/tmp/tmpahf69z5h/weights size="172 MB" total_elapsed=3.486s url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar Downloaded weights in 3.52s Loaded LoRAs in 4.33s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:17, 1.55it/s] 7%|▋ | 2/28 [00:01<00:14, 1.74it/s] 11%|█ | 3/28 [00:01<00:15, 1.65it/s] 14%|█▍ | 4/28 [00:02<00:14, 1.60it/s] 18%|█▊ | 5/28 [00:03<00:14, 1.58it/s] 21%|██▏ | 6/28 [00:03<00:14, 1.57it/s] 25%|██▌ | 7/28 [00:04<00:13, 1.56it/s] 29%|██▊ | 8/28 [00:05<00:12, 1.55it/s] 32%|███▏ | 9/28 [00:05<00:12, 1.55it/s] 36%|███▌ | 10/28 [00:06<00:11, 1.55it/s] 39%|███▉ | 11/28 [00:07<00:10, 1.55it/s] 43%|████▎ | 12/28 [00:07<00:10, 1.54it/s] 46%|████▋ | 13/28 [00:08<00:09, 1.54it/s] 50%|█████ | 14/28 [00:08<00:09, 1.54it/s] 54%|█████▎ | 15/28 [00:09<00:08, 1.54it/s] 57%|█████▋ | 16/28 [00:10<00:07, 1.54it/s] 61%|██████ | 17/28 [00:10<00:07, 1.54it/s] 64%|██████▍ | 18/28 [00:11<00:06, 1.54it/s] 68%|██████▊ | 19/28 [00:12<00:05, 1.54it/s] 71%|███████▏ | 20/28 [00:12<00:05, 1.54it/s] 75%|███████▌ | 21/28 [00:13<00:04, 1.54it/s] 79%|███████▊ | 22/28 [00:14<00:03, 1.54it/s] 82%|████████▏ | 23/28 [00:14<00:03, 1.54it/s] 86%|████████▌ | 24/28 [00:15<00:02, 1.54it/s] 89%|████████▉ | 25/28 [00:16<00:01, 1.54it/s] 93%|█████████▎| 26/28 [00:16<00:01, 1.54it/s] 96%|█████████▋| 27/28 [00:17<00:00, 1.54it/s] 100%|██████████| 28/28 [00:18<00:00, 1.54it/s] 100%|██████████| 28/28 [00:18<00:00, 1.55it/s]
Prediction
its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9ID1j8c61beqdrj20cj9nfayxwwprStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- seed
- 34166
- model
- dev
- prompt
- an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "seed": 34166, "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run its-magick/merlin-bob using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", { input: { seed: 34166, model: "dev", prompt: "an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 its-magick/merlin-bob using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", input={ "seed": 34166, "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run its-magick/merlin-bob 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": "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", "input": { "seed": 34166, "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-02T13:15:07.833976Z", "created_at": "2024-10-02T13:14:47.355000Z", "data_removed": false, "error": null, "id": "1j8c61beqdrj20cj9nfayxwwpr", "input": { "seed": 34166, "model": "dev", "prompt": "an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 34166\nPrompt: an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach\n[!] txt2img mode\nUsing dev model\nfree=3014979559424\nDownloading weights\n2024-10-02T13:14:47Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpcq76lzr8/weights url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar\n2024-10-02T13:14:48Z | INFO | [ Complete ] dest=/tmp/tmpcq76lzr8/weights size=\"172 MB\" total_elapsed=1.189s url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar\nDownloaded weights in 1.22s\nLoaded LoRAs in 2.03s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:17, 1.55it/s]\n 7%|▋ | 2/28 [00:01<00:14, 1.75it/s]\n 11%|█ | 3/28 [00:01<00:15, 1.65it/s]\n 14%|█▍ | 4/28 [00:02<00:14, 1.61it/s]\n 18%|█▊ | 5/28 [00:03<00:14, 1.59it/s]\n 21%|██▏ | 6/28 [00:03<00:13, 1.58it/s]\n 25%|██▌ | 7/28 [00:04<00:13, 1.57it/s]\n 29%|██▊ | 8/28 [00:05<00:12, 1.56it/s]\n 32%|███▏ | 9/28 [00:05<00:12, 1.56it/s]\n 36%|███▌ | 10/28 [00:06<00:11, 1.55it/s]\n 39%|███▉ | 11/28 [00:06<00:10, 1.55it/s]\n 43%|████▎ | 12/28 [00:07<00:10, 1.55it/s]\n 46%|████▋ | 13/28 [00:08<00:09, 1.55it/s]\n 50%|█████ | 14/28 [00:08<00:09, 1.55it/s]\n 54%|█████▎ | 15/28 [00:09<00:08, 1.55it/s]\n 57%|█████▋ | 16/28 [00:10<00:07, 1.55it/s]\n 61%|██████ | 17/28 [00:10<00:07, 1.55it/s]\n 64%|██████▍ | 18/28 [00:11<00:06, 1.55it/s]\n 68%|██████▊ | 19/28 [00:12<00:05, 1.55it/s]\n 71%|███████▏ | 20/28 [00:12<00:05, 1.55it/s]\n 75%|███████▌ | 21/28 [00:13<00:04, 1.55it/s]\n 79%|███████▊ | 22/28 [00:14<00:03, 1.55it/s]\n 82%|████████▏ | 23/28 [00:14<00:03, 1.55it/s]\n 86%|████████▌ | 24/28 [00:15<00:02, 1.55it/s]\n 89%|████████▉ | 25/28 [00:16<00:01, 1.55it/s]\n 93%|█████████▎| 26/28 [00:16<00:01, 1.55it/s]\n 96%|█████████▋| 27/28 [00:17<00:00, 1.54it/s]\n100%|██████████| 28/28 [00:17<00:00, 1.54it/s]\n100%|██████████| 28/28 [00:17<00:00, 1.56it/s]", "metrics": { "predict_time": 20.469323371, "total_time": 20.478976 }, "output": [ "https://replicate.delivery/yhqm/xMoos4FXAcbDNVUlKeKRNrMbagvSXDQ7aaDeaNPtv3AblviTA/out-0.webp" ], "started_at": "2024-10-02T13:14:47.364653Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/1j8c61beqdrj20cj9nfayxwwpr", "cancel": "https://api.replicate.com/v1/predictions/1j8c61beqdrj20cj9nfayxwwpr/cancel" }, "version": "5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9" }
Generated inUsing seed: 34166 Prompt: an image of BOB from beetlejuice, in a bright yellow suit, awkwardly standing on a Hawaiian beach [!] txt2img mode Using dev model free=3014979559424 Downloading weights 2024-10-02T13:14:47Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpcq76lzr8/weights url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar 2024-10-02T13:14:48Z | INFO | [ Complete ] dest=/tmp/tmpcq76lzr8/weights size="172 MB" total_elapsed=1.189s url=https://replicate.delivery/yhqm/nOmjbtw4OuLwFtpYVSqHK7FGewBCILavf1KivyrotF6P8uiTA/trained_model.tar Downloaded weights in 1.22s Loaded LoRAs in 2.03s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:17, 1.55it/s] 7%|▋ | 2/28 [00:01<00:14, 1.75it/s] 11%|█ | 3/28 [00:01<00:15, 1.65it/s] 14%|█▍ | 4/28 [00:02<00:14, 1.61it/s] 18%|█▊ | 5/28 [00:03<00:14, 1.59it/s] 21%|██▏ | 6/28 [00:03<00:13, 1.58it/s] 25%|██▌ | 7/28 [00:04<00:13, 1.57it/s] 29%|██▊ | 8/28 [00:05<00:12, 1.56it/s] 32%|███▏ | 9/28 [00:05<00:12, 1.56it/s] 36%|███▌ | 10/28 [00:06<00:11, 1.55it/s] 39%|███▉ | 11/28 [00:06<00:10, 1.55it/s] 43%|████▎ | 12/28 [00:07<00:10, 1.55it/s] 46%|████▋ | 13/28 [00:08<00:09, 1.55it/s] 50%|█████ | 14/28 [00:08<00:09, 1.55it/s] 54%|█████▎ | 15/28 [00:09<00:08, 1.55it/s] 57%|█████▋ | 16/28 [00:10<00:07, 1.55it/s] 61%|██████ | 17/28 [00:10<00:07, 1.55it/s] 64%|██████▍ | 18/28 [00:11<00:06, 1.55it/s] 68%|██████▊ | 19/28 [00:12<00:05, 1.55it/s] 71%|███████▏ | 20/28 [00:12<00:05, 1.55it/s] 75%|███████▌ | 21/28 [00:13<00:04, 1.55it/s] 79%|███████▊ | 22/28 [00:14<00:03, 1.55it/s] 82%|████████▏ | 23/28 [00:14<00:03, 1.55it/s] 86%|████████▌ | 24/28 [00:15<00:02, 1.55it/s] 89%|████████▉ | 25/28 [00:16<00:01, 1.55it/s] 93%|█████████▎| 26/28 [00:16<00:01, 1.55it/s] 96%|█████████▋| 27/28 [00:17<00:00, 1.54it/s] 100%|██████████| 28/28 [00:17<00:00, 1.54it/s] 100%|██████████| 28/28 [00:17<00:00, 1.56it/s]
Prediction
its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9IDgyn8mzg43srj40cj9nhr9ha03cStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- seed
- 17368
- model
- dev
- prompt
- an image of BOB from beetlejuice, nametag with exact text "BOB" written and "HELLO" above in red as the title, in a bright yellow suit, standing in line at the grocery store
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 100
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "seed": 17368, "model": "dev", "prompt": "an image of BOB from beetlejuice, nametag with exact text \"BOB\" written and \"HELLO\" above in red as the title, in a bright yellow suit, standing in line at the grocery store", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run its-magick/merlin-bob using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", { input: { seed: 17368, model: "dev", prompt: "an image of BOB from beetlejuice, nametag with exact text \"BOB\" written and \"HELLO\" above in red as the title, in a bright yellow suit, standing in line at the grocery store", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 100, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 its-magick/merlin-bob using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", input={ "seed": 17368, "model": "dev", "prompt": "an image of BOB from beetlejuice, nametag with exact text \"BOB\" written and \"HELLO\" above in red as the title, in a bright yellow suit, standing in line at the grocery store", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run its-magick/merlin-bob 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": "its-magick/merlin-bob:5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9", "input": { "seed": 17368, "model": "dev", "prompt": "an image of BOB from beetlejuice, nametag with exact text \\"BOB\\" written and \\"HELLO\\" above in red as the title, in a bright yellow suit, standing in line at the grocery store", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-02T13:20:07.087962Z", "created_at": "2024-10-02T13:19:47.742000Z", "data_removed": false, "error": null, "id": "gyn8mzg43srj40cj9nhr9ha03c", "input": { "seed": 17368, "model": "dev", "prompt": "an image of BOB from beetlejuice, nametag with exact text \"BOB\" written and \"HELLO\" above in red as the title, in a bright yellow suit, standing in line at the grocery store", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 100, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 17368\nPrompt: an image of BOB from beetlejuice, nametag with exact text \"BOB\" written and \"HELLO\" above in red as the title, in a bright yellow suit, standing in line at the grocery store\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 0.77s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:17, 1.54it/s]\n 7%|▋ | 2/28 [00:01<00:14, 1.74it/s]\n 11%|█ | 3/28 [00:01<00:15, 1.64it/s]\n 14%|█▍ | 4/28 [00:02<00:14, 1.60it/s]\n 18%|█▊ | 5/28 [00:03<00:14, 1.58it/s]\n 21%|██▏ | 6/28 [00:03<00:14, 1.57it/s]\n 25%|██▌ | 7/28 [00:04<00:13, 1.56it/s]\n 29%|██▊ | 8/28 [00:05<00:12, 1.55it/s]\n 32%|███▏ | 9/28 [00:05<00:12, 1.55it/s]\n 36%|███▌ | 10/28 [00:06<00:11, 1.55it/s]\n 39%|███▉ | 11/28 [00:07<00:11, 1.54it/s]\n 43%|████▎ | 12/28 [00:07<00:10, 1.54it/s]\n 46%|████▋ | 13/28 [00:08<00:09, 1.54it/s]\n 50%|█████ | 14/28 [00:08<00:09, 1.54it/s]\n 54%|█████▎ | 15/28 [00:09<00:08, 1.54it/s]\n 57%|█████▋ | 16/28 [00:10<00:07, 1.54it/s]\n 61%|██████ | 17/28 [00:10<00:07, 1.54it/s]\n 64%|██████▍ | 18/28 [00:11<00:06, 1.54it/s]\n 68%|██████▊ | 19/28 [00:12<00:05, 1.54it/s]\n 71%|███████▏ | 20/28 [00:12<00:05, 1.54it/s]\n 75%|███████▌ | 21/28 [00:13<00:04, 1.54it/s]\n 79%|███████▊ | 22/28 [00:14<00:03, 1.54it/s]\n 82%|████████▏ | 23/28 [00:14<00:03, 1.54it/s]\n 86%|████████▌ | 24/28 [00:15<00:02, 1.54it/s]\n 89%|████████▉ | 25/28 [00:16<00:01, 1.54it/s]\n 93%|█████████▎| 26/28 [00:16<00:01, 1.54it/s]\n 96%|█████████▋| 27/28 [00:17<00:00, 1.54it/s]\n100%|██████████| 28/28 [00:18<00:00, 1.54it/s]\n100%|██████████| 28/28 [00:18<00:00, 1.55it/s]", "metrics": { "predict_time": 19.337338598, "total_time": 19.345962 }, "output": [ "https://replicate.delivery/yhqm/RHTTorIDsGIbCxLNcCLIj4R7EHsO1SFHrPplixWMLz2h6r4E/out-0.webp" ], "started_at": "2024-10-02T13:19:47.750623Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gyn8mzg43srj40cj9nhr9ha03c", "cancel": "https://api.replicate.com/v1/predictions/gyn8mzg43srj40cj9nhr9ha03c/cancel" }, "version": "5f7c8a96b70a9e71dd214235213a1e32b8a244bd0f4152b343697e11ff4466d9" }
Generated inUsing seed: 17368 Prompt: an image of BOB from beetlejuice, nametag with exact text "BOB" written and "HELLO" above in red as the title, in a bright yellow suit, standing in line at the grocery store [!] txt2img mode Using dev model Loaded LoRAs in 0.77s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:17, 1.54it/s] 7%|▋ | 2/28 [00:01<00:14, 1.74it/s] 11%|█ | 3/28 [00:01<00:15, 1.64it/s] 14%|█▍ | 4/28 [00:02<00:14, 1.60it/s] 18%|█▊ | 5/28 [00:03<00:14, 1.58it/s] 21%|██▏ | 6/28 [00:03<00:14, 1.57it/s] 25%|██▌ | 7/28 [00:04<00:13, 1.56it/s] 29%|██▊ | 8/28 [00:05<00:12, 1.55it/s] 32%|███▏ | 9/28 [00:05<00:12, 1.55it/s] 36%|███▌ | 10/28 [00:06<00:11, 1.55it/s] 39%|███▉ | 11/28 [00:07<00:11, 1.54it/s] 43%|████▎ | 12/28 [00:07<00:10, 1.54it/s] 46%|████▋ | 13/28 [00:08<00:09, 1.54it/s] 50%|█████ | 14/28 [00:08<00:09, 1.54it/s] 54%|█████▎ | 15/28 [00:09<00:08, 1.54it/s] 57%|█████▋ | 16/28 [00:10<00:07, 1.54it/s] 61%|██████ | 17/28 [00:10<00:07, 1.54it/s] 64%|██████▍ | 18/28 [00:11<00:06, 1.54it/s] 68%|██████▊ | 19/28 [00:12<00:05, 1.54it/s] 71%|███████▏ | 20/28 [00:12<00:05, 1.54it/s] 75%|███████▌ | 21/28 [00:13<00:04, 1.54it/s] 79%|███████▊ | 22/28 [00:14<00:03, 1.54it/s] 82%|████████▏ | 23/28 [00:14<00:03, 1.54it/s] 86%|████████▌ | 24/28 [00:15<00:02, 1.54it/s] 89%|████████▉ | 25/28 [00:16<00:01, 1.54it/s] 93%|█████████▎| 26/28 [00:16<00:01, 1.54it/s] 96%|█████████▋| 27/28 [00:17<00:00, 1.54it/s] 100%|██████████| 28/28 [00:18<00:00, 1.54it/s] 100%|██████████| 28/28 [00:18<00:00, 1.55it/s]
Want to make some of these yourself?
Run this model