shangray11 / my-model-shawn
- Public
- 31 runs
Prediction
shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25ID65q5gg1xwdrmc0cnvnk8a34mwgStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 16:9
- output_format
- webp
- guidance_scale
- 1.52
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 40
{ "model": "dev", "prompt": "a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 }
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 shangray11/my-model-shawn using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", { input: { model: "dev", prompt: "a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 4, aspect_ratio: "16:9", output_format: "webp", guidance_scale: 1.52, output_quality: 80, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 40 } } ); // 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 shangray11/my-model-shawn using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", input={ "model": "dev", "prompt": "a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run shangray11/my-model-shawn 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": "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", "input": { "model": "dev", "prompt": "a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-28T15:37:42.392583Z", "created_at": "2025-03-28T15:37:00.131000Z", "data_removed": false, "error": null, "id": "65q5gg1xwdrmc0cnvnk8a34mwg", "input": { "model": "dev", "prompt": "a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 }, "logs": "free=26626157129728\nDownloading weights\n2025-03-28T15:37:00Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpjcf8cxtj/weights url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar\n2025-03-28T15:37:02Z | INFO | [ Complete ] dest=/tmp/tmpjcf8cxtj/weights size=\"172 MB\" total_elapsed=2.749s url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar\nDownloaded weights in 2.77s\nLoaded LoRAs in 3.33s\nUsing seed: 16195\nPrompt: a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo\n[!] txt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:36, 1.05it/s]\n 5%|▌ | 2/40 [00:01<00:31, 1.19it/s]\n 8%|▊ | 3/40 [00:02<00:33, 1.12it/s]\n 10%|█ | 4/40 [00:03<00:33, 1.09it/s]\n 12%|█▎ | 5/40 [00:04<00:32, 1.08it/s]\n 15%|█▌ | 6/40 [00:05<00:31, 1.07it/s]\n 18%|█▊ | 7/40 [00:06<00:31, 1.06it/s]\n 20%|██ | 8/40 [00:07<00:30, 1.06it/s]\n 22%|██▎ | 9/40 [00:08<00:29, 1.05it/s]\n 25%|██▌ | 10/40 [00:09<00:28, 1.05it/s]\n 28%|██▊ | 11/40 [00:10<00:27, 1.05it/s]\n 30%|███ | 12/40 [00:11<00:26, 1.05it/s]\n 32%|███▎ | 13/40 [00:12<00:25, 1.05it/s]\n 35%|███▌ | 14/40 [00:13<00:24, 1.05it/s]\n 38%|███▊ | 15/40 [00:14<00:23, 1.05it/s]\n 40%|████ | 16/40 [00:15<00:22, 1.05it/s]\n 42%|████▎ | 17/40 [00:16<00:21, 1.05it/s]\n 45%|████▌ | 18/40 [00:16<00:20, 1.05it/s]\n 48%|████▊ | 19/40 [00:17<00:20, 1.05it/s]\n 50%|█████ | 20/40 [00:18<00:19, 1.05it/s]\n 52%|█████▎ | 21/40 [00:19<00:18, 1.05it/s]\n 55%|█████▌ | 22/40 [00:20<00:17, 1.05it/s]\n 57%|█████▊ | 23/40 [00:21<00:16, 1.05it/s]\n 60%|██████ | 24/40 [00:22<00:15, 1.05it/s]\n 62%|██████▎ | 25/40 [00:23<00:14, 1.05it/s]\n 65%|██████▌ | 26/40 [00:24<00:13, 1.05it/s]\n 68%|██████▊ | 27/40 [00:25<00:12, 1.05it/s]\n 70%|███████ | 28/40 [00:26<00:11, 1.05it/s]\n 72%|███████▎ | 29/40 [00:27<00:10, 1.05it/s]\n 75%|███████▌ | 30/40 [00:28<00:09, 1.05it/s]\n 78%|███████▊ | 31/40 [00:29<00:08, 1.05it/s]\n 80%|████████ | 32/40 [00:30<00:07, 1.05it/s]\n 82%|████████▎ | 33/40 [00:31<00:06, 1.05it/s]\n 85%|████████▌ | 34/40 [00:32<00:05, 1.05it/s]\n 88%|████████▊ | 35/40 [00:33<00:04, 1.05it/s]\n 90%|█████████ | 36/40 [00:34<00:03, 1.05it/s]\n 92%|█████████▎| 37/40 [00:35<00:02, 1.05it/s]\n 95%|█████████▌| 38/40 [00:36<00:01, 1.05it/s]\n 98%|█████████▊| 39/40 [00:37<00:00, 1.05it/s]\n100%|██████████| 40/40 [00:37<00:00, 1.05it/s]\n100%|██████████| 40/40 [00:37<00:00, 1.05it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 42.253337732, "total_time": 42.261583 }, "output": [ "https://replicate.delivery/xezq/xy8a4DDUi2q9DdeLohdnfYJ60o1hJBDDfNxiTDnrANqNiO6oA/out-0.webp", "https://replicate.delivery/xezq/waCNi1Cp5V4eeEhQdK4W8JqawNtVX9iIqFusaSw0glXGRHdUA/out-1.webp", "https://replicate.delivery/xezq/odH0uxUGfhwUTy58VqYaJYby1ayd2BjRuiCOhFN3fu8GRHdUA/out-2.webp", "https://replicate.delivery/xezq/LLyix0ldy77fHiVHfjaR0MoUIVfgFrzTKSyMsaOms5UNiO6oA/out-3.webp" ], "started_at": "2025-03-28T15:37:00.139245Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-gly4dnjuct3snm5aefi4hzjw72mrwcpsk3wmaff6lpeoxkp4koda", "get": "https://api.replicate.com/v1/predictions/65q5gg1xwdrmc0cnvnk8a34mwg", "cancel": "https://api.replicate.com/v1/predictions/65q5gg1xwdrmc0cnvnk8a34mwg/cancel" }, "version": "4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25" }
Generated infree=26626157129728 Downloading weights 2025-03-28T15:37:00Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpjcf8cxtj/weights url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar 2025-03-28T15:37:02Z | INFO | [ Complete ] dest=/tmp/tmpjcf8cxtj/weights size="172 MB" total_elapsed=2.749s url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar Downloaded weights in 2.77s Loaded LoRAs in 3.33s Using seed: 16195 Prompt: a selfie photo of shawn in the mountains, sitting by campfire at night, moon lit sky, half body image wearing a baby blue and white new your yankee jersey and blue jeans, wearing a baby blue new york yankee hat with model shanny in the photo [!] txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:36, 1.05it/s] 5%|▌ | 2/40 [00:01<00:31, 1.19it/s] 8%|▊ | 3/40 [00:02<00:33, 1.12it/s] 10%|█ | 4/40 [00:03<00:33, 1.09it/s] 12%|█▎ | 5/40 [00:04<00:32, 1.08it/s] 15%|█▌ | 6/40 [00:05<00:31, 1.07it/s] 18%|█▊ | 7/40 [00:06<00:31, 1.06it/s] 20%|██ | 8/40 [00:07<00:30, 1.06it/s] 22%|██▎ | 9/40 [00:08<00:29, 1.05it/s] 25%|██▌ | 10/40 [00:09<00:28, 1.05it/s] 28%|██▊ | 11/40 [00:10<00:27, 1.05it/s] 30%|███ | 12/40 [00:11<00:26, 1.05it/s] 32%|███▎ | 13/40 [00:12<00:25, 1.05it/s] 35%|███▌ | 14/40 [00:13<00:24, 1.05it/s] 38%|███▊ | 15/40 [00:14<00:23, 1.05it/s] 40%|████ | 16/40 [00:15<00:22, 1.05it/s] 42%|████▎ | 17/40 [00:16<00:21, 1.05it/s] 45%|████▌ | 18/40 [00:16<00:20, 1.05it/s] 48%|████▊ | 19/40 [00:17<00:20, 1.05it/s] 50%|█████ | 20/40 [00:18<00:19, 1.05it/s] 52%|█████▎ | 21/40 [00:19<00:18, 1.05it/s] 55%|█████▌ | 22/40 [00:20<00:17, 1.05it/s] 57%|█████▊ | 23/40 [00:21<00:16, 1.05it/s] 60%|██████ | 24/40 [00:22<00:15, 1.05it/s] 62%|██████▎ | 25/40 [00:23<00:14, 1.05it/s] 65%|██████▌ | 26/40 [00:24<00:13, 1.05it/s] 68%|██████▊ | 27/40 [00:25<00:12, 1.05it/s] 70%|███████ | 28/40 [00:26<00:11, 1.05it/s] 72%|███████▎ | 29/40 [00:27<00:10, 1.05it/s] 75%|███████▌ | 30/40 [00:28<00:09, 1.05it/s] 78%|███████▊ | 31/40 [00:29<00:08, 1.05it/s] 80%|████████ | 32/40 [00:30<00:07, 1.05it/s] 82%|████████▎ | 33/40 [00:31<00:06, 1.05it/s] 85%|████████▌ | 34/40 [00:32<00:05, 1.05it/s] 88%|████████▊ | 35/40 [00:33<00:04, 1.05it/s] 90%|█████████ | 36/40 [00:34<00:03, 1.05it/s] 92%|█████████▎| 37/40 [00:35<00:02, 1.05it/s] 95%|█████████▌| 38/40 [00:36<00:01, 1.05it/s] 98%|█████████▊| 39/40 [00:37<00:00, 1.05it/s] 100%|██████████| 40/40 [00:37<00:00, 1.05it/s] 100%|██████████| 40/40 [00:37<00:00, 1.05it/s] Total safe images: 4 out of 4
Prediction
shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25ID63x7fwqfa9rme0cnx6hah7st1cStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 16:9
- output_format
- webp
- guidance_scale
- 1.52
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 40
{ "model": "dev", "prompt": "A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.\n\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 }
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 shangray11/my-model-shawn using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", { input: { model: "dev", prompt: "A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.\n\n", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 4, aspect_ratio: "16:9", output_format: "webp", guidance_scale: 1.52, output_quality: 80, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 40 } } ); // 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 shangray11/my-model-shawn using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", input={ "model": "dev", "prompt": "A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.\n\n", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run shangray11/my-model-shawn 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": "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", "input": { "model": "dev", "prompt": "A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.\\n\\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-31T00:39:26.960106Z", "created_at": "2025-03-31T00:38:44.306000Z", "data_removed": false, "error": null, "id": "63x7fwqfa9rme0cnx6hah7st1c", "input": { "model": "dev", "prompt": "A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.\n\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 }, "logs": "free=26612976316416\nDownloading weights\n2025-03-31T00:38:44Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp7v36zvlt/weights url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar\n2025-03-31T00:38:46Z | INFO | [ Complete ] dest=/tmp/tmp7v36zvlt/weights size=\"172 MB\" total_elapsed=2.027s url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar\nDownloaded weights in 2.05s\nLoaded LoRAs in 2.60s\nUsing seed: 26255\nPrompt: A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait.\n[!] txt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:37, 1.04it/s]\n 5%|▌ | 2/40 [00:01<00:32, 1.17it/s]\n 8%|▊ | 3/40 [00:02<00:33, 1.10it/s]\n 10%|█ | 4/40 [00:03<00:33, 1.07it/s]\n 12%|█▎ | 5/40 [00:04<00:33, 1.06it/s]\n 15%|█▌ | 6/40 [00:05<00:32, 1.05it/s]\n 18%|█▊ | 7/40 [00:06<00:31, 1.04it/s]\n 20%|██ | 8/40 [00:07<00:30, 1.04it/s]\n 22%|██▎ | 9/40 [00:08<00:29, 1.04it/s]\n 25%|██▌ | 10/40 [00:09<00:29, 1.03it/s]\n 28%|██▊ | 11/40 [00:10<00:28, 1.03it/s]\n 30%|███ | 12/40 [00:11<00:27, 1.03it/s]\n 32%|███▎ | 13/40 [00:12<00:26, 1.03it/s]\n 35%|███▌ | 14/40 [00:13<00:25, 1.03it/s]\n 38%|███▊ | 15/40 [00:14<00:24, 1.03it/s]\n 40%|████ | 16/40 [00:15<00:23, 1.03it/s]\n 42%|████▎ | 17/40 [00:16<00:22, 1.03it/s]\n 45%|████▌ | 18/40 [00:17<00:21, 1.03it/s]\n 48%|████▊ | 19/40 [00:18<00:20, 1.03it/s]\n 50%|█████ | 20/40 [00:19<00:19, 1.03it/s]\n 52%|█████▎ | 21/40 [00:20<00:18, 1.03it/s]\n 55%|█████▌ | 22/40 [00:21<00:17, 1.03it/s]\n 57%|█████▊ | 23/40 [00:22<00:16, 1.03it/s]\n 60%|██████ | 24/40 [00:23<00:15, 1.03it/s]\n 62%|██████▎ | 25/40 [00:24<00:14, 1.03it/s]\n 65%|██████▌ | 26/40 [00:25<00:13, 1.03it/s]\n 68%|██████▊ | 27/40 [00:26<00:12, 1.03it/s]\n 70%|███████ | 28/40 [00:26<00:11, 1.03it/s]\n 72%|███████▎ | 29/40 [00:27<00:10, 1.03it/s]\n 75%|███████▌ | 30/40 [00:28<00:09, 1.03it/s]\n 78%|███████▊ | 31/40 [00:29<00:08, 1.03it/s]\n 80%|████████ | 32/40 [00:30<00:07, 1.03it/s]\n 82%|████████▎ | 33/40 [00:31<00:06, 1.03it/s]\n 85%|████████▌ | 34/40 [00:32<00:05, 1.03it/s]\n 88%|████████▊ | 35/40 [00:33<00:04, 1.03it/s]\n 90%|█████████ | 36/40 [00:34<00:03, 1.03it/s]\n 92%|█████████▎| 37/40 [00:35<00:02, 1.03it/s]\n 95%|█████████▌| 38/40 [00:36<00:01, 1.03it/s]\n 98%|█████████▊| 39/40 [00:37<00:00, 1.03it/s]\n100%|██████████| 40/40 [00:38<00:00, 1.03it/s]\n100%|██████████| 40/40 [00:38<00:00, 1.04it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 42.193024568, "total_time": 42.654106 }, "output": [ "https://replicate.delivery/xezq/6nqUZX3K5FK2O1WxRxJcO1f9K0TMrje1qCGt1M5GlCFexy7oA/out-0.webp", "https://replicate.delivery/xezq/Sd33pMaZ746SLhia5QAPokKXjzbSRw7PaquWe9fNWapexy7oA/out-1.webp", "https://replicate.delivery/xezq/i6IQ4VT6wd6JCBqMd7kFrPsNB6227ewWdGNIdojryqTfY5dUA/out-2.webp", "https://replicate.delivery/xezq/xrhNhmByxup2G5nXzwvE7po3JtucDzHugv2vfWfQwOMexy7oA/out-3.webp" ], "started_at": "2025-03-31T00:38:44.767082Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-gzkij3pbwg4lvij7s5xdcif4cdktbnyvhfcbss4dknm3xqjsrruq", "get": "https://api.replicate.com/v1/predictions/63x7fwqfa9rme0cnx6hah7st1c", "cancel": "https://api.replicate.com/v1/predictions/63x7fwqfa9rme0cnx6hah7st1c/cancel" }, "version": "4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25" }
Generated infree=26612976316416 Downloading weights 2025-03-31T00:38:44Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp7v36zvlt/weights url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar 2025-03-31T00:38:46Z | INFO | [ Complete ] dest=/tmp/tmp7v36zvlt/weights size="172 MB" total_elapsed=2.027s url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar Downloaded weights in 2.05s Loaded LoRAs in 2.60s Using seed: 26255 Prompt: A dynamic shot of Shawn leaning slightly against the bathroom counter, one hand adjusting the brim of his Yankees cap while the other holds his phone. The modern bathroom has a dark, moody aesthetic with soft backlighting, making the blue tones of his outfit pop. His expression is cool and self-assured, creating a stylish, urban-inspired portrait. [!] txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:37, 1.04it/s] 5%|▌ | 2/40 [00:01<00:32, 1.17it/s] 8%|▊ | 3/40 [00:02<00:33, 1.10it/s] 10%|█ | 4/40 [00:03<00:33, 1.07it/s] 12%|█▎ | 5/40 [00:04<00:33, 1.06it/s] 15%|█▌ | 6/40 [00:05<00:32, 1.05it/s] 18%|█▊ | 7/40 [00:06<00:31, 1.04it/s] 20%|██ | 8/40 [00:07<00:30, 1.04it/s] 22%|██▎ | 9/40 [00:08<00:29, 1.04it/s] 25%|██▌ | 10/40 [00:09<00:29, 1.03it/s] 28%|██▊ | 11/40 [00:10<00:28, 1.03it/s] 30%|███ | 12/40 [00:11<00:27, 1.03it/s] 32%|███▎ | 13/40 [00:12<00:26, 1.03it/s] 35%|███▌ | 14/40 [00:13<00:25, 1.03it/s] 38%|███▊ | 15/40 [00:14<00:24, 1.03it/s] 40%|████ | 16/40 [00:15<00:23, 1.03it/s] 42%|████▎ | 17/40 [00:16<00:22, 1.03it/s] 45%|████▌ | 18/40 [00:17<00:21, 1.03it/s] 48%|████▊ | 19/40 [00:18<00:20, 1.03it/s] 50%|█████ | 20/40 [00:19<00:19, 1.03it/s] 52%|█████▎ | 21/40 [00:20<00:18, 1.03it/s] 55%|█████▌ | 22/40 [00:21<00:17, 1.03it/s] 57%|█████▊ | 23/40 [00:22<00:16, 1.03it/s] 60%|██████ | 24/40 [00:23<00:15, 1.03it/s] 62%|██████▎ | 25/40 [00:24<00:14, 1.03it/s] 65%|██████▌ | 26/40 [00:25<00:13, 1.03it/s] 68%|██████▊ | 27/40 [00:26<00:12, 1.03it/s] 70%|███████ | 28/40 [00:26<00:11, 1.03it/s] 72%|███████▎ | 29/40 [00:27<00:10, 1.03it/s] 75%|███████▌ | 30/40 [00:28<00:09, 1.03it/s] 78%|███████▊ | 31/40 [00:29<00:08, 1.03it/s] 80%|████████ | 32/40 [00:30<00:07, 1.03it/s] 82%|████████▎ | 33/40 [00:31<00:06, 1.03it/s] 85%|████████▌ | 34/40 [00:32<00:05, 1.03it/s] 88%|████████▊ | 35/40 [00:33<00:04, 1.03it/s] 90%|█████████ | 36/40 [00:34<00:03, 1.03it/s] 92%|█████████▎| 37/40 [00:35<00:02, 1.03it/s] 95%|█████████▌| 38/40 [00:36<00:01, 1.03it/s] 98%|█████████▊| 39/40 [00:37<00:00, 1.03it/s] 100%|██████████| 40/40 [00:38<00:00, 1.03it/s] 100%|██████████| 40/40 [00:38<00:00, 1.04it/s] Total safe images: 4 out of 4
Prediction
shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25IDv30j0zjwsxrmc0cnx6htj8p6kwStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 4
- aspect_ratio
- 16:9
- output_format
- webp
- guidance_scale
- 1.52
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 40
{ "model": "dev", "prompt": "\n\nA close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.\n\n\n\n\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 }
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 shangray11/my-model-shawn using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", { input: { model: "dev", prompt: "\n\nA close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.\n\n\n\n\n", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 4, aspect_ratio: "16:9", output_format: "webp", guidance_scale: 1.52, output_quality: 80, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 40 } } ); // 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 shangray11/my-model-shawn using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", input={ "model": "dev", "prompt": "\n\nA close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.\n\n\n\n\n", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run shangray11/my-model-shawn 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": "shangray11/my-model-shawn:4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25", "input": { "model": "dev", "prompt": "\\n\\nA close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.\\n\\n\\n\\n\\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-31T00:39:55.159726Z", "created_at": "2025-03-31T00:39:12.335000Z", "data_removed": false, "error": null, "id": "v30j0zjwsxrmc0cnx6htj8p6kw", "input": { "model": "dev", "prompt": "\n\nA close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.\n\n\n\n\n", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 4, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 1.52, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 40 }, "logs": "free=26868247805952\nDownloading weights\n2025-03-31T00:39:12Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwebwbh2t/weights url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar\n2025-03-31T00:39:12Z | INFO | [ Complete ] dest=/tmp/tmpwebwbh2t/weights size=\"172 MB\" total_elapsed=0.439s url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar\nDownloaded weights in 0.46s\nLoaded LoRAs in 1.01s\nUsing seed: 11067\nPrompt:\nA close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression.\n[!] txt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:37, 1.05it/s]\n 5%|▌ | 2/40 [00:01<00:32, 1.18it/s]\n 8%|▊ | 3/40 [00:02<00:33, 1.12it/s]\n 10%|█ | 4/40 [00:03<00:33, 1.09it/s]\n 12%|█▎ | 5/40 [00:04<00:32, 1.07it/s]\n 15%|█▌ | 6/40 [00:05<00:32, 1.06it/s]\n 18%|█▊ | 7/40 [00:06<00:31, 1.05it/s]\n 20%|██ | 8/40 [00:07<00:30, 1.05it/s]\n 22%|██▎ | 9/40 [00:08<00:29, 1.05it/s]\n 25%|██▌ | 10/40 [00:09<00:28, 1.05it/s]\n 28%|██▊ | 11/40 [00:10<00:27, 1.05it/s]\n 30%|███ | 12/40 [00:11<00:26, 1.04it/s]\n 32%|███▎ | 13/40 [00:12<00:25, 1.04it/s]\n 35%|███▌ | 14/40 [00:13<00:24, 1.04it/s]\n 38%|███▊ | 15/40 [00:14<00:23, 1.04it/s]\n 40%|████ | 16/40 [00:15<00:22, 1.04it/s]\n 42%|████▎ | 17/40 [00:16<00:22, 1.04it/s]\n 45%|████▌ | 18/40 [00:17<00:21, 1.04it/s]\n 48%|████▊ | 19/40 [00:18<00:20, 1.04it/s]\n 50%|█████ | 20/40 [00:18<00:19, 1.04it/s]\n 52%|█████▎ | 21/40 [00:19<00:18, 1.04it/s]\n 55%|█████▌ | 22/40 [00:20<00:17, 1.04it/s]\n 57%|█████▊ | 23/40 [00:21<00:16, 1.04it/s]\n 60%|██████ | 24/40 [00:22<00:15, 1.04it/s]\n 62%|██████▎ | 25/40 [00:23<00:14, 1.04it/s]\n 65%|██████▌ | 26/40 [00:24<00:13, 1.04it/s]\n 68%|██████▊ | 27/40 [00:25<00:12, 1.05it/s]\n 70%|███████ | 28/40 [00:26<00:11, 1.04it/s]\n 72%|███████▎ | 29/40 [00:27<00:10, 1.05it/s]\n 75%|███████▌ | 30/40 [00:28<00:09, 1.05it/s]\n 78%|███████▊ | 31/40 [00:29<00:08, 1.05it/s]\n 80%|████████ | 32/40 [00:30<00:07, 1.05it/s]\n 82%|████████▎ | 33/40 [00:31<00:06, 1.04it/s]\n 85%|████████▌ | 34/40 [00:32<00:05, 1.04it/s]\n 88%|████████▊ | 35/40 [00:33<00:04, 1.05it/s]\n 90%|█████████ | 36/40 [00:34<00:03, 1.04it/s]\n 92%|█████████▎| 37/40 [00:35<00:02, 1.04it/s]\n 95%|█████████▌| 38/40 [00:36<00:01, 1.04it/s]\n 98%|█████████▊| 39/40 [00:37<00:00, 1.04it/s]\n100%|██████████| 40/40 [00:38<00:00, 1.04it/s]\n100%|██████████| 40/40 [00:38<00:00, 1.05it/s]\nTotal safe images: 4 out of 4", "metrics": { "predict_time": 42.814475409, "total_time": 42.824726 }, "output": [ "https://replicate.delivery/xezq/77AOyAMCDTohNZJtb7pPncQWVc1yLfufj4gLzFh5Jf03yy7oA/out-0.webp", "https://replicate.delivery/xezq/EOd1Dkridl70B54ewDLOtfAcvdGPpljK3wpIs4UqcrgbZ5dUA/out-1.webp", "https://replicate.delivery/xezq/CEkwp8005HYQK5LlLOuDBZspbItv9YjHdB2xsAllPeots8OKA/out-2.webp", "https://replicate.delivery/xezq/7Zbs8OMTeM3SaK9RlUip3SExENKHYziKcdyTcbUPRttts8OKA/out-3.webp" ], "started_at": "2025-03-31T00:39:12.345251Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-tom4ejpkzu6zise7i77uw6ykde2ezjdhezxm35pg2vu7tpqyj7fa", "get": "https://api.replicate.com/v1/predictions/v30j0zjwsxrmc0cnx6htj8p6kw", "cancel": "https://api.replicate.com/v1/predictions/v30j0zjwsxrmc0cnx6htj8p6kw/cancel" }, "version": "4a6cd5f95957e8fe95ee39e229a5f1af81340645b811050997f39b7e7fdcfc25" }
Generated infree=26868247805952 Downloading weights 2025-03-31T00:39:12Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwebwbh2t/weights url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar 2025-03-31T00:39:12Z | INFO | [ Complete ] dest=/tmp/tmpwebwbh2t/weights size="172 MB" total_elapsed=0.439s url=https://replicate.delivery/xezq/0gHzpBX0eIVsHylhQJ6AfGKJrpWdenfJijJywkRV7f1xm0ojC/trained_model.tar Downloaded weights in 0.46s Loaded LoRAs in 1.01s Using seed: 11067 Prompt: A close-up mirror selfie of Shawn in his luxurious bathroom, featuring a floating vanity and warm LED lighting. His baby blue Yankees jersey is crisp, and his hat sits perfectly on his head. He tilts his chin up slightly, showcasing his confidence. The background is blurred, keeping the focus on his sharp outfit and expression. [!] txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:37, 1.05it/s] 5%|▌ | 2/40 [00:01<00:32, 1.18it/s] 8%|▊ | 3/40 [00:02<00:33, 1.12it/s] 10%|█ | 4/40 [00:03<00:33, 1.09it/s] 12%|█▎ | 5/40 [00:04<00:32, 1.07it/s] 15%|█▌ | 6/40 [00:05<00:32, 1.06it/s] 18%|█▊ | 7/40 [00:06<00:31, 1.05it/s] 20%|██ | 8/40 [00:07<00:30, 1.05it/s] 22%|██▎ | 9/40 [00:08<00:29, 1.05it/s] 25%|██▌ | 10/40 [00:09<00:28, 1.05it/s] 28%|██▊ | 11/40 [00:10<00:27, 1.05it/s] 30%|███ | 12/40 [00:11<00:26, 1.04it/s] 32%|███▎ | 13/40 [00:12<00:25, 1.04it/s] 35%|███▌ | 14/40 [00:13<00:24, 1.04it/s] 38%|███▊ | 15/40 [00:14<00:23, 1.04it/s] 40%|████ | 16/40 [00:15<00:22, 1.04it/s] 42%|████▎ | 17/40 [00:16<00:22, 1.04it/s] 45%|████▌ | 18/40 [00:17<00:21, 1.04it/s] 48%|████▊ | 19/40 [00:18<00:20, 1.04it/s] 50%|█████ | 20/40 [00:18<00:19, 1.04it/s] 52%|█████▎ | 21/40 [00:19<00:18, 1.04it/s] 55%|█████▌ | 22/40 [00:20<00:17, 1.04it/s] 57%|█████▊ | 23/40 [00:21<00:16, 1.04it/s] 60%|██████ | 24/40 [00:22<00:15, 1.04it/s] 62%|██████▎ | 25/40 [00:23<00:14, 1.04it/s] 65%|██████▌ | 26/40 [00:24<00:13, 1.04it/s] 68%|██████▊ | 27/40 [00:25<00:12, 1.05it/s] 70%|███████ | 28/40 [00:26<00:11, 1.04it/s] 72%|███████▎ | 29/40 [00:27<00:10, 1.05it/s] 75%|███████▌ | 30/40 [00:28<00:09, 1.05it/s] 78%|███████▊ | 31/40 [00:29<00:08, 1.05it/s] 80%|████████ | 32/40 [00:30<00:07, 1.05it/s] 82%|████████▎ | 33/40 [00:31<00:06, 1.04it/s] 85%|████████▌ | 34/40 [00:32<00:05, 1.04it/s] 88%|████████▊ | 35/40 [00:33<00:04, 1.05it/s] 90%|█████████ | 36/40 [00:34<00:03, 1.04it/s] 92%|█████████▎| 37/40 [00:35<00:02, 1.04it/s] 95%|█████████▌| 38/40 [00:36<00:01, 1.04it/s] 98%|█████████▊| 39/40 [00:37<00:00, 1.04it/s] 100%|██████████| 40/40 [00:38<00:00, 1.04it/s] 100%|██████████| 40/40 [00:38<00:00, 1.05it/s] Total safe images: 4 out of 4
Want to make some of these yourself?
Run this model