luker2000 / sleepmask2
- Public
- 13 runs
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fIDzwfssx2ym5rmc0cnsr29aq6h0mStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T15:56:23.060232Z", "created_at": "2025-03-25T15:55:47.745000Z", "data_removed": false, "error": null, "id": "zwfssx2ym5rmc0cnsr29aq6h0m", "input": { "model": "dev", "prompt": "A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=26416082526208\nDownloading weights\n2025-03-25T15:55:59Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpcf4rgx91/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T15:56:06Z | INFO | [ Complete ] dest=/tmp/tmpcf4rgx91/weights size=\"172 MB\" total_elapsed=6.954s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 7.00s\nLoaded LoRAs in 7.57s\nUsing seed: 22531\nPrompt: A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 2.00it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.27it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.13it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.08it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.05it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.03it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 2.02it/s]\n 29%|██▊ | 8/28 [00:03<00:09, 2.01it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 2.00it/s]\n 36%|███▌ | 10/28 [00:04<00:09, 2.00it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 2.00it/s]\n 43%|████▎ | 12/28 [00:05<00:08, 2.00it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 2.00it/s]\n 50%|█████ | 14/28 [00:06<00:07, 1.99it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.99it/s]\n 57%|█████▋ | 16/28 [00:07<00:06, 1.99it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.99it/s]\n 64%|██████▍ | 18/28 [00:08<00:05, 1.99it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.99it/s]\n 71%|███████▏ | 20/28 [00:09<00:04, 1.99it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.99it/s]\n 79%|███████▊ | 22/28 [00:10<00:03, 1.99it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.99it/s]\n 86%|████████▌ | 24/28 [00:11<00:02, 1.99it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.99it/s]\n 93%|█████████▎| 26/28 [00:12<00:01, 1.99it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.99it/s]\n100%|██████████| 28/28 [00:13<00:00, 1.99it/s]\n100%|██████████| 28/28 [00:13<00:00, 2.01it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 23.411560858, "total_time": 35.315232 }, "output": [ "https://replicate.delivery/xezq/4Q4e04JMVVwsBKamGWNYwmBOqmtXONf7zbn7ZmHuXvLnQIcUA/out-0.webp", "https://replicate.delivery/xezq/BEttkk0aAR5tHFJkN02ACcA4I2rlLCSOiTO06HaM2AfTIEOKA/out-1.webp" ], "started_at": "2025-03-25T15:55:59.648671Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-tkvoer5aiukwp7gg4wwuoq4c4gpc3bal4yvzplmh26jmxej2atlq", "get": "https://api.replicate.com/v1/predictions/zwfssx2ym5rmc0cnsr29aq6h0m", "cancel": "https://api.replicate.com/v1/predictions/zwfssx2ym5rmc0cnsr29aq6h0m/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=26416082526208 Downloading weights 2025-03-25T15:55:59Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpcf4rgx91/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T15:56:06Z | INFO | [ Complete ] dest=/tmp/tmpcf4rgx91/weights size="172 MB" total_elapsed=6.954s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 7.00s Loaded LoRAs in 7.57s Using seed: 22531 Prompt: A soft, editorial-style photo of a woman sitting in natural sunlight, wearing a pale blue SLEEPMSK silk sleep mask pulled over her eyes. The mask has a thick, padded design with a sculpted notch. She gently adjusts the edge of the mask with one hand, while warm sunlight creates soft shadows across her skin and background. Her hair is straight and falls naturally over one shoulder. She wears a matching blue silk camisole, and the backdrop is a light, neutral curtain that diffuses the light beautifully. The overall mood is calm, minimal, and premium—capturing a quiet moment of rest and relaxation with a luxurious, photorealistic finish. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 2.00it/s] 7%|▋ | 2/28 [00:00<00:11, 2.27it/s] 11%|█ | 3/28 [00:01<00:11, 2.13it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.08it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.05it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.03it/s] 25%|██▌ | 7/28 [00:03<00:10, 2.02it/s] 29%|██▊ | 8/28 [00:03<00:09, 2.01it/s] 32%|███▏ | 9/28 [00:04<00:09, 2.00it/s] 36%|███▌ | 10/28 [00:04<00:09, 2.00it/s] 39%|███▉ | 11/28 [00:05<00:08, 2.00it/s] 43%|████▎ | 12/28 [00:05<00:08, 2.00it/s] 46%|████▋ | 13/28 [00:06<00:07, 2.00it/s] 50%|█████ | 14/28 [00:06<00:07, 1.99it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.99it/s] 57%|█████▋ | 16/28 [00:07<00:06, 1.99it/s] 61%|██████ | 17/28 [00:08<00:05, 1.99it/s] 64%|██████▍ | 18/28 [00:08<00:05, 1.99it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.99it/s] 71%|███████▏ | 20/28 [00:09<00:04, 1.99it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.99it/s] 79%|███████▊ | 22/28 [00:10<00:03, 1.99it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.99it/s] 86%|████████▌ | 24/28 [00:11<00:02, 1.99it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.99it/s] 93%|█████████▎| 26/28 [00:12<00:01, 1.99it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.99it/s] 100%|██████████| 28/28 [00:13<00:00, 1.99it/s] 100%|██████████| 28/28 [00:13<00:00, 2.01it/s] Total safe images: 2 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fIDqq9mt2wb7drme0cnsr2tkcf88wStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T15:57:26.369008Z", "created_at": "2025-03-25T15:57:04.699000Z", "data_removed": false, "error": null, "id": "qq9mt2wb7drme0cnsr2tkcf88w", "input": { "model": "dev", "prompt": "A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=26854351171584\nDownloading weights\n2025-03-25T15:57:04Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpi6c_n_6g/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T15:57:07Z | INFO | [ Complete ] dest=/tmp/tmpi6c_n_6g/weights size=\"172 MB\" total_elapsed=2.938s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 2.96s\nLoaded LoRAs in 5.79s\nUsing seed: 64954\nPrompt: A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.98it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.24it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.10it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.05it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.02it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.00it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 1.99it/s]\n 29%|██▊ | 8/28 [00:03<00:10, 1.98it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.98it/s]\n 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.97it/s]\n 43%|████▎ | 12/28 [00:05<00:08, 1.97it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.97it/s]\n 50%|█████ | 14/28 [00:07<00:07, 1.97it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.97it/s]\n 57%|█████▋ | 16/28 [00:08<00:06, 1.97it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.97it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.97it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.97it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.97it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.97it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.97it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.97it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.98it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 21.663480377, "total_time": 21.670008 }, "output": [ "https://replicate.delivery/xezq/Z8riCqRe28T2NqU2oIX0ek8wf4ihACXZymgPgNDoDVNNjQ4oA/out-0.webp", "https://replicate.delivery/xezq/nauBMTcXya60PttRZofCebau2HewTnLeRaLV05YmZCPaGhwRB/out-1.webp" ], "started_at": "2025-03-25T15:57:04.705528Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-ihurj2opypsisfrs2vh4demth6ntnsvzggyegr3uqzooqhzp7u7a", "get": "https://api.replicate.com/v1/predictions/qq9mt2wb7drme0cnsr2tkcf88w", "cancel": "https://api.replicate.com/v1/predictions/qq9mt2wb7drme0cnsr2tkcf88w/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=26854351171584 Downloading weights 2025-03-25T15:57:04Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpi6c_n_6g/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T15:57:07Z | INFO | [ Complete ] dest=/tmp/tmpi6c_n_6g/weights size="172 MB" total_elapsed=2.938s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 2.96s Loaded LoRAs in 5.79s Using seed: 64954 Prompt: A relaxed, editorial-style photo of a woman sitting in a soft chair, wearing striped blue pyjamas and a champagne silk SLEEPMSK sleep mask pushed up on her forehead. Her long, wavy hair frames her face naturally, and she gazes softly at the camera. The lighting is bright but warm, creating a cozy, high-end yet effortless vibe. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.98it/s] 7%|▋ | 2/28 [00:00<00:11, 2.24it/s] 11%|█ | 3/28 [00:01<00:11, 2.10it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.05it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.02it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.00it/s] 25%|██▌ | 7/28 [00:03<00:10, 1.99it/s] 29%|██▊ | 8/28 [00:03<00:10, 1.98it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.98it/s] 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.97it/s] 43%|████▎ | 12/28 [00:05<00:08, 1.97it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.97it/s] 50%|█████ | 14/28 [00:07<00:07, 1.97it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.97it/s] 57%|█████▋ | 16/28 [00:08<00:06, 1.97it/s] 61%|██████ | 17/28 [00:08<00:05, 1.97it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.97it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.97it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.97it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.97it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.97it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.97it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.98it/s] Total safe images: 2 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fIDrt35vrjvd1rm80cnsr383vma4mStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T15:58:18.935709Z", "created_at": "2025-03-25T15:57:57.992000Z", "data_removed": false, "error": null, "id": "rt35vrjvd1rm80cnsr383vma4m", "input": { "model": "dev", "prompt": "A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=26560990924800\nDownloading weights\n2025-03-25T15:57:59Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmppm2nnf46/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T15:58:03Z | INFO | [ Complete ] dest=/tmp/tmppm2nnf46/weights size=\"172 MB\" total_elapsed=4.788s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 4.81s\nLoaded LoRAs in 5.39s\nUsing seed: 26235\nPrompt: A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 2.01it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.26it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.12it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.07it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.04it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.02it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 2.01it/s]\n 29%|██▊ | 8/28 [00:03<00:10, 2.00it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.99it/s]\n 36%|███▌ | 10/28 [00:04<00:09, 1.99it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.99it/s]\n 43%|████▎ | 12/28 [00:05<00:08, 1.99it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.99it/s]\n 50%|█████ | 14/28 [00:06<00:07, 1.99it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.98it/s]\n 57%|█████▋ | 16/28 [00:07<00:06, 1.98it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.98it/s]\n 64%|██████▍ | 18/28 [00:08<00:05, 1.98it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.98it/s]\n 71%|███████▏ | 20/28 [00:09<00:04, 1.98it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.98it/s]\n 79%|███████▊ | 22/28 [00:10<00:03, 1.98it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.98it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.98it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.98it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.98it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.98it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.98it/s]\n100%|██████████| 28/28 [00:14<00:00, 2.00it/s]\nNSFW content detected in image 1\nTotal safe images: 1 out of 2", "metrics": { "predict_time": 19.934971546, "total_time": 20.943709 }, "output": [ "https://replicate.delivery/xezq/U8Ueye3OHmoRPk4MezZe3G1lPeszQMbHoCylGX2ga9sRTChjC/out-0.webp" ], "started_at": "2025-03-25T15:57:59.000737Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-swfcolc6e66tp74ieevh6xxz7q2ttqddkfpg7xm4sruyo4aqjrbq", "get": "https://api.replicate.com/v1/predictions/rt35vrjvd1rm80cnsr383vma4m", "cancel": "https://api.replicate.com/v1/predictions/rt35vrjvd1rm80cnsr383vma4m/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=26560990924800 Downloading weights 2025-03-25T15:57:59Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmppm2nnf46/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T15:58:03Z | INFO | [ Complete ] dest=/tmp/tmppm2nnf46/weights size="172 MB" total_elapsed=4.788s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 4.81s Loaded LoRAs in 5.39s Using seed: 26235 Prompt: A peaceful morning bedroom scene featuring a close-up of a silk SLEEPMSK sleep mask gently resting over the hand of a woman lying in bed. The sleep mask is a soft champagne color. Her hand hangs relaxed over the edge of crisp white bedding. The camera slowly pans or gently zooms in, with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 2.01it/s] 7%|▋ | 2/28 [00:00<00:11, 2.26it/s] 11%|█ | 3/28 [00:01<00:11, 2.12it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.07it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.04it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.02it/s] 25%|██▌ | 7/28 [00:03<00:10, 2.01it/s] 29%|██▊ | 8/28 [00:03<00:10, 2.00it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.99it/s] 36%|███▌ | 10/28 [00:04<00:09, 1.99it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.99it/s] 43%|████▎ | 12/28 [00:05<00:08, 1.99it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.99it/s] 50%|█████ | 14/28 [00:06<00:07, 1.99it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.98it/s] 57%|█████▋ | 16/28 [00:07<00:06, 1.98it/s] 61%|██████ | 17/28 [00:08<00:05, 1.98it/s] 64%|██████▍ | 18/28 [00:08<00:05, 1.98it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.98it/s] 71%|███████▏ | 20/28 [00:09<00:04, 1.98it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.98it/s] 79%|███████▊ | 22/28 [00:10<00:03, 1.98it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.98it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.98it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.98it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.98it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.98it/s] 100%|██████████| 28/28 [00:14<00:00, 1.98it/s] 100%|██████████| 28/28 [00:14<00:00, 2.00it/s] NSFW content detected in image 1 Total safe images: 1 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fIDyj4y55fdh1rm80cnsr18v80amgStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T15:54:33.039172Z", "created_at": "2025-03-25T15:54:13.256000Z", "data_removed": false, "error": null, "id": "yj4y55fdh1rm80cnsr18v80amg", "input": { "model": "dev", "prompt": "A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=26689020706816\nDownloading weights\n2025-03-25T15:54:13Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpr72pko2s/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T15:54:16Z | INFO | [ Complete ] dest=/tmp/tmpr72pko2s/weights size=\"172 MB\" total_elapsed=3.405s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 3.43s\nLoaded LoRAs in 3.98s\nUsing seed: 11935\nPrompt: A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.99it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.26it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.12it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.06it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.03it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.01it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 2.00it/s]\n 29%|██▊ | 8/28 [00:03<00:10, 1.99it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.99it/s]\n 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.98it/s]\n 43%|████▎ | 12/28 [00:05<00:08, 1.98it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.98it/s]\n 50%|█████ | 14/28 [00:06<00:07, 1.98it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.97it/s]\n 57%|█████▋ | 16/28 [00:07<00:06, 1.98it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.98it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.98it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.98it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.98it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.98it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.98it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.98it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.99it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 19.775857027, "total_time": 19.783172 }, "output": [ "https://replicate.delivery/xezq/bu98z2ekCX1JWye4y7Hip6TvLrVUeElspex2HjEWVyAl7gwRB/out-0.webp", "https://replicate.delivery/xezq/aFsRAGOUwIZQHBDDYIjU3HgyvXMogBWlcvpJAR8TJbXuDCHF/out-1.webp" ], "started_at": "2025-03-25T15:54:13.263315Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-kjrzuvs2qsipzfh6k4pmzoijd4cfwdlvwyjlf54j4t33nhkhydia", "get": "https://api.replicate.com/v1/predictions/yj4y55fdh1rm80cnsr18v80amg", "cancel": "https://api.replicate.com/v1/predictions/yj4y55fdh1rm80cnsr18v80amg/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=26689020706816 Downloading weights 2025-03-25T15:54:13Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpr72pko2s/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T15:54:16Z | INFO | [ Complete ] dest=/tmp/tmpr72pko2s/weights size="172 MB" total_elapsed=3.405s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 3.43s Loaded LoRAs in 3.98s Using seed: 11935 Prompt: A model wearing Wearing a SLEEPMSK silk sleep mask pushed up on her forehead, not covering her eyes. This is a fashion photography editorial, a professional photoshoot for a luxury brand product marketing campaign, featuring a modern minimalist style with neutral colors. The high-resolution, high-contrast image has a hyper-realistic quality. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.99it/s] 7%|▋ | 2/28 [00:00<00:11, 2.26it/s] 11%|█ | 3/28 [00:01<00:11, 2.12it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.06it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.03it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.01it/s] 25%|██▌ | 7/28 [00:03<00:10, 2.00it/s] 29%|██▊ | 8/28 [00:03<00:10, 1.99it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.99it/s] 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.98it/s] 43%|████▎ | 12/28 [00:05<00:08, 1.98it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.98it/s] 50%|█████ | 14/28 [00:06<00:07, 1.98it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.97it/s] 57%|█████▋ | 16/28 [00:07<00:06, 1.98it/s] 61%|██████ | 17/28 [00:08<00:05, 1.98it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.98it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.98it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.98it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.98it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.98it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.98it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.99it/s] Total safe images: 2 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fIDx0e9b1xkd9rme0cnsr49d2zrs0StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T16:00:52.778088Z", "created_at": "2025-03-25T16:00:31.594000Z", "data_removed": false, "error": null, "id": "x0e9b1xkd9rme0cnsr49d2zrs0", "input": { "model": "dev", "prompt": "a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=26747423301632\nDownloading weights\n2025-03-25T16:00:35Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp38a702w8/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T16:00:36Z | INFO | [ Complete ] dest=/tmp/tmp38a702w8/weights size=\"172 MB\" total_elapsed=1.406s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 1.43s\nLoaded LoRAs in 2.00s\nUsing seed: 54482\nPrompt: a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.99it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.24it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.11it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.05it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.02it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.00it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 1.99it/s]\n 29%|██▊ | 8/28 [00:03<00:10, 1.98it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.98it/s]\n 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.97it/s]\n 43%|████▎ | 12/28 [00:05<00:08, 1.97it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.97it/s]\n 50%|█████ | 14/28 [00:07<00:07, 1.97it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.97it/s]\n 57%|█████▋ | 16/28 [00:08<00:06, 1.97it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.97it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.97it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.97it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.97it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.97it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.97it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.97it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.99it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 17.817978704, "total_time": 21.184088 }, "output": [ "https://replicate.delivery/xezq/Phn6IJfFzBxcKqrubuqWaJEbZKWeJBXs1E9efkBle2RlmChjC/out-0.webp", "https://replicate.delivery/xezq/yhOT36PH57L8OJLUF0F3caXUYZqhJGtPbgpAXJlA7UKNFCHF/out-1.webp" ], "started_at": "2025-03-25T16:00:34.960109Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-mfhadpoerioon6t5xwhwsxmhgosebhbq3z7nvrztb57b22lltyua", "get": "https://api.replicate.com/v1/predictions/x0e9b1xkd9rme0cnsr49d2zrs0", "cancel": "https://api.replicate.com/v1/predictions/x0e9b1xkd9rme0cnsr49d2zrs0/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=26747423301632 Downloading weights 2025-03-25T16:00:35Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp38a702w8/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T16:00:36Z | INFO | [ Complete ] dest=/tmp/tmp38a702w8/weights size="172 MB" total_elapsed=1.406s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 1.43s Loaded LoRAs in 2.00s Using seed: 54482 Prompt: a close-up of a silk SLEEPMSK sleep mask resting on the edge of a bed. The sleep mask is a soft champagne color. with soft natural lighting and slight fabric movement to add realism. The atmosphere is serene and luxurious—perfect for a sleep or wellness brand campaign. Subtle ambient shadows and a calming, slow pace maintain the high-end, minimalist aesthetic. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.99it/s] 7%|▋ | 2/28 [00:00<00:11, 2.24it/s] 11%|█ | 3/28 [00:01<00:11, 2.11it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.05it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.02it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.00it/s] 25%|██▌ | 7/28 [00:03<00:10, 1.99it/s] 29%|██▊ | 8/28 [00:03<00:10, 1.98it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.98it/s] 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.97it/s] 43%|████▎ | 12/28 [00:05<00:08, 1.97it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.97it/s] 50%|█████ | 14/28 [00:07<00:07, 1.97it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.97it/s] 57%|█████▋ | 16/28 [00:08<00:06, 1.97it/s] 61%|██████ | 17/28 [00:08<00:05, 1.97it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.97it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.97it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.97it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.97it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.97it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.97it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.99it/s] Total safe images: 2 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fID39b46pe34srme0cnsr4snrb354StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T16:01:56.346910Z", "created_at": "2025-03-25T16:01:41.158000Z", "data_removed": false, "error": null, "id": "39b46pe34srme0cnsr4snrb354", "input": { "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Loaded LoRAs in 0.57s\nUsing seed: 15200\nPrompt: A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 1.99it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.25it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.11it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.06it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.03it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.01it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 2.00it/s]\n 29%|██▊ | 8/28 [00:03<00:10, 1.99it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 1.99it/s]\n 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 1.98it/s]\n 43%|████▎ | 12/28 [00:05<00:08, 1.98it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 1.98it/s]\n 50%|█████ | 14/28 [00:06<00:07, 1.98it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 1.98it/s]\n 57%|█████▋ | 16/28 [00:07<00:06, 1.98it/s]\n 61%|██████ | 17/28 [00:08<00:05, 1.97it/s]\n 64%|██████▍ | 18/28 [00:09<00:05, 1.97it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 1.97it/s]\n 71%|███████▏ | 20/28 [00:10<00:04, 1.97it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 1.97it/s]\n 79%|███████▊ | 22/28 [00:11<00:03, 1.97it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 1.97it/s]\n 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s]\n 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.97it/s]\n100%|██████████| 28/28 [00:14<00:00, 1.99it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 15.167685853, "total_time": 15.18891 }, "output": [ "https://replicate.delivery/xezq/x94HAUqvoeXlF6ksUdCzQ2WwOdziUYLvLDdzYTEZ1vA6KEOKA/out-0.webp", "https://replicate.delivery/xezq/l4rB5DnRucpGN9uAn5aZ3iyA1lhDSwj3vqUbACFc3pIdFCHF/out-1.webp" ], "started_at": "2025-03-25T16:01:41.179224Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-eeipptjf2eljj6zryzsayxhj7yka4osx2v76tvn5w2kmo3wqgbra", "get": "https://api.replicate.com/v1/predictions/39b46pe34srme0cnsr4snrb354", "cancel": "https://api.replicate.com/v1/predictions/39b46pe34srme0cnsr4snrb354/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated inLoaded LoRAs in 0.57s Using seed: 15200 Prompt: A beautiful blonde model wearing a silk SLEEPMSK in the desert, fashion photography, in the style of editorial style. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 1.99it/s] 7%|▋ | 2/28 [00:00<00:11, 2.25it/s] 11%|█ | 3/28 [00:01<00:11, 2.11it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.06it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.03it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.01it/s] 25%|██▌ | 7/28 [00:03<00:10, 2.00it/s] 29%|██▊ | 8/28 [00:03<00:10, 1.99it/s] 32%|███▏ | 9/28 [00:04<00:09, 1.99it/s] 36%|███▌ | 10/28 [00:04<00:09, 1.98it/s] 39%|███▉ | 11/28 [00:05<00:08, 1.98it/s] 43%|████▎ | 12/28 [00:05<00:08, 1.98it/s] 46%|████▋ | 13/28 [00:06<00:07, 1.98it/s] 50%|█████ | 14/28 [00:06<00:07, 1.98it/s] 54%|█████▎ | 15/28 [00:07<00:06, 1.98it/s] 57%|█████▋ | 16/28 [00:07<00:06, 1.98it/s] 61%|██████ | 17/28 [00:08<00:05, 1.97it/s] 64%|██████▍ | 18/28 [00:09<00:05, 1.97it/s] 68%|██████▊ | 19/28 [00:09<00:04, 1.97it/s] 71%|███████▏ | 20/28 [00:10<00:04, 1.97it/s] 75%|███████▌ | 21/28 [00:10<00:03, 1.97it/s] 79%|███████▊ | 22/28 [00:11<00:03, 1.97it/s] 82%|████████▏ | 23/28 [00:11<00:02, 1.97it/s] 86%|████████▌ | 24/28 [00:12<00:02, 1.97it/s] 89%|████████▉ | 25/28 [00:12<00:01, 1.97it/s] 93%|█████████▎| 26/28 [00:13<00:01, 1.97it/s] 96%|█████████▋| 27/28 [00:13<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.97it/s] 100%|██████████| 28/28 [00:14<00:00, 1.99it/s] Total safe images: 2 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fIDnvm5w15h9nrma0cnsr5tv764amStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 16:9
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "16:9", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T16:04:06.862142Z", "created_at": "2025-03-25T16:03:47.661000Z", "data_removed": false, "error": null, "id": "nvm5w15h9nrma0cnsr5tv764am", "input": { "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "16:9", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=25991492673536\nDownloading weights\n2025-03-25T16:03:50Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsm8xcgl1/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T16:03:52Z | INFO | [ Complete ] dest=/tmp/tmpsm8xcgl1/weights size=\"172 MB\" total_elapsed=1.562s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 1.59s\nLoaded LoRAs in 2.16s\nUsing seed: 31091\nPrompt: A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 2.03it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.30it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.17it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.11it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.08it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.06it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 2.05it/s]\n 29%|██▊ | 8/28 [00:03<00:09, 2.05it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 2.04it/s]\n 36%|███▌ | 10/28 [00:04<00:08, 2.04it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 2.04it/s]\n 43%|████▎ | 12/28 [00:05<00:07, 2.03it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 2.03it/s]\n 50%|█████ | 14/28 [00:06<00:06, 2.03it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 2.03it/s]\n 57%|█████▋ | 16/28 [00:07<00:05, 2.03it/s]\n 61%|██████ | 17/28 [00:08<00:05, 2.03it/s]\n 64%|██████▍ | 18/28 [00:08<00:04, 2.03it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 2.03it/s]\n 71%|███████▏ | 20/28 [00:09<00:03, 2.03it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 2.03it/s]\n 79%|███████▊ | 22/28 [00:10<00:02, 2.03it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 2.03it/s]\n 86%|████████▌ | 24/28 [00:11<00:01, 2.03it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 2.03it/s]\n 93%|█████████▎| 26/28 [00:12<00:00, 2.03it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 2.03it/s]\n100%|██████████| 28/28 [00:13<00:00, 2.03it/s]\n100%|██████████| 28/28 [00:13<00:00, 2.04it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 16.360607037, "total_time": 19.201142 }, "output": [ "https://replicate.delivery/xezq/JTm8AGqe7flAnUjVHVY4eeqJ8CpsubLveWW7KTalfwZs9FCHF/out-0.webp", "https://replicate.delivery/xezq/k6WLgKQY1YqoMdaWePqr61n8F0tJJZWuQKfsW2MQMzK2XIcUA/out-1.webp" ], "started_at": "2025-03-25T16:03:50.501535Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zsa7qp7tbdemglsq5yere5yxdrusymyw3kioxurpnqvvt5xsz3bq", "get": "https://api.replicate.com/v1/predictions/nvm5w15h9nrma0cnsr5tv764am", "cancel": "https://api.replicate.com/v1/predictions/nvm5w15h9nrma0cnsr5tv764am/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=25991492673536 Downloading weights 2025-03-25T16:03:50Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsm8xcgl1/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T16:03:52Z | INFO | [ Complete ] dest=/tmp/tmpsm8xcgl1/weights size="172 MB" total_elapsed=1.562s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 1.59s Loaded LoRAs in 2.16s Using seed: 31091 Prompt: A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 2.03it/s] 7%|▋ | 2/28 [00:00<00:11, 2.30it/s] 11%|█ | 3/28 [00:01<00:11, 2.17it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.11it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.08it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.06it/s] 25%|██▌ | 7/28 [00:03<00:10, 2.05it/s] 29%|██▊ | 8/28 [00:03<00:09, 2.05it/s] 32%|███▏ | 9/28 [00:04<00:09, 2.04it/s] 36%|███▌ | 10/28 [00:04<00:08, 2.04it/s] 39%|███▉ | 11/28 [00:05<00:08, 2.04it/s] 43%|████▎ | 12/28 [00:05<00:07, 2.03it/s] 46%|████▋ | 13/28 [00:06<00:07, 2.03it/s] 50%|█████ | 14/28 [00:06<00:06, 2.03it/s] 54%|█████▎ | 15/28 [00:07<00:06, 2.03it/s] 57%|█████▋ | 16/28 [00:07<00:05, 2.03it/s] 61%|██████ | 17/28 [00:08<00:05, 2.03it/s] 64%|██████▍ | 18/28 [00:08<00:04, 2.03it/s] 68%|██████▊ | 19/28 [00:09<00:04, 2.03it/s] 71%|███████▏ | 20/28 [00:09<00:03, 2.03it/s] 75%|███████▌ | 21/28 [00:10<00:03, 2.03it/s] 79%|███████▊ | 22/28 [00:10<00:02, 2.03it/s] 82%|████████▏ | 23/28 [00:11<00:02, 2.03it/s] 86%|████████▌ | 24/28 [00:11<00:01, 2.03it/s] 89%|████████▉ | 25/28 [00:12<00:01, 2.03it/s] 93%|█████████▎| 26/28 [00:12<00:00, 2.03it/s] 96%|█████████▋| 27/28 [00:13<00:00, 2.03it/s] 100%|██████████| 28/28 [00:13<00:00, 2.03it/s] 100%|██████████| 28/28 [00:13<00:00, 2.04it/s] Total safe images: 2 out of 2
Prediction
luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7fID1k09mp9hjxrme0cnsr6bqvbpfrStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 2
- aspect_ratio
- 9:16
- output_format
- webp
- guidance_scale
- 3
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "9:16", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", { input: { model: "dev", prompt: "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 2, aspect_ratio: "9:16", output_format: "webp", guidance_scale: 3, output_quality: 80, 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 luker2000/sleepmask2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", input={ "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "9:16", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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 luker2000/sleepmask2 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": "luker2000/sleepmask2:eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f", "input": { "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "9:16", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "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": "2025-03-25T16:04:36.479907Z", "created_at": "2025-03-25T16:04:20.503000Z", "data_removed": false, "error": null, "id": "1k09mp9hjxrme0cnsr6bqvbpfr", "input": { "model": "dev", "prompt": "A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 2, "aspect_ratio": "9:16", "output_format": "webp", "guidance_scale": 3, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "free=26530969841664\nDownloading weights\n2025-03-25T16:04:20Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpr724ciu_/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\n2025-03-25T16:04:21Z | INFO | [ Complete ] dest=/tmp/tmpr724ciu_/weights size=\"172 MB\" total_elapsed=0.858s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar\nDownloaded weights in 0.88s\nLoaded LoRAs in 1.47s\nUsing seed: 5252\nPrompt: A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length.\n[!] txt2img mode\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:13, 2.03it/s]\n 7%|▋ | 2/28 [00:00<00:11, 2.30it/s]\n 11%|█ | 3/28 [00:01<00:11, 2.16it/s]\n 14%|█▍ | 4/28 [00:01<00:11, 2.10it/s]\n 18%|█▊ | 5/28 [00:02<00:11, 2.07it/s]\n 21%|██▏ | 6/28 [00:02<00:10, 2.05it/s]\n 25%|██▌ | 7/28 [00:03<00:10, 2.03it/s]\n 29%|██▊ | 8/28 [00:03<00:09, 2.03it/s]\n 32%|███▏ | 9/28 [00:04<00:09, 2.02it/s]\n 36%|███▌ | 10/28 [00:04<00:08, 2.02it/s]\n 39%|███▉ | 11/28 [00:05<00:08, 2.01it/s]\n 43%|████▎ | 12/28 [00:05<00:07, 2.01it/s]\n 46%|████▋ | 13/28 [00:06<00:07, 2.01it/s]\n 50%|█████ | 14/28 [00:06<00:06, 2.01it/s]\n 54%|█████▎ | 15/28 [00:07<00:06, 2.01it/s]\n 57%|█████▋ | 16/28 [00:07<00:05, 2.01it/s]\n 61%|██████ | 17/28 [00:08<00:05, 2.01it/s]\n 64%|██████▍ | 18/28 [00:08<00:04, 2.01it/s]\n 68%|██████▊ | 19/28 [00:09<00:04, 2.01it/s]\n 71%|███████▏ | 20/28 [00:09<00:03, 2.00it/s]\n 75%|███████▌ | 21/28 [00:10<00:03, 2.01it/s]\n 79%|███████▊ | 22/28 [00:10<00:02, 2.00it/s]\n 82%|████████▏ | 23/28 [00:11<00:02, 2.01it/s]\n 86%|████████▌ | 24/28 [00:11<00:01, 2.01it/s]\n 89%|████████▉ | 25/28 [00:12<00:01, 2.01it/s]\n 93%|█████████▎| 26/28 [00:12<00:00, 2.01it/s]\n 96%|█████████▋| 27/28 [00:13<00:00, 2.00it/s]\n100%|██████████| 28/28 [00:13<00:00, 2.00it/s]\n100%|██████████| 28/28 [00:13<00:00, 2.02it/s]\nTotal safe images: 2 out of 2", "metrics": { "predict_time": 15.83947038, "total_time": 15.976907 }, "output": [ "https://replicate.delivery/xezq/JfQOCHLehGgNjU5trSC5SKsmh0Vf28zfTXxmgKPiegxgCDhjC/out-0.webp", "https://replicate.delivery/xezq/H7x7STXMsfTZXSReCPObPQfoJ78HQ9JnDYP4pDDVIljpwQ4oA/out-1.webp" ], "started_at": "2025-03-25T16:04:20.640437Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-enp6jbmmjaixbona6f76mmvbf4h7jfhshz53gmnkj6eh7hl346vq", "get": "https://api.replicate.com/v1/predictions/1k09mp9hjxrme0cnsr6bqvbpfr", "cancel": "https://api.replicate.com/v1/predictions/1k09mp9hjxrme0cnsr6bqvbpfr/cancel" }, "version": "eb96073ae80949953c0e4b281f7843d9065b0f7841356f7039fe2ef0b9ff2d7f" }
Generated infree=26530969841664 Downloading weights 2025-03-25T16:04:20Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpr724ciu_/weights url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar 2025-03-25T16:04:21Z | INFO | [ Complete ] dest=/tmp/tmpr724ciu_/weights size="172 MB" total_elapsed=0.858s url=https://replicate.delivery/xezq/s3xYKb9KKwo1P120Q8n2uerQMLnWvfNcpSJ8OEbzufqPtP4oA/trained_model.tar Downloaded weights in 0.88s Loaded LoRAs in 1.47s Using seed: 5252 Prompt: A beautiful blonde model wearing a silk SLEEPMSK sleep mask in the desert, fashion photography, in the style of editorial style. Full Length. [!] txt2img mode 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:13, 2.03it/s] 7%|▋ | 2/28 [00:00<00:11, 2.30it/s] 11%|█ | 3/28 [00:01<00:11, 2.16it/s] 14%|█▍ | 4/28 [00:01<00:11, 2.10it/s] 18%|█▊ | 5/28 [00:02<00:11, 2.07it/s] 21%|██▏ | 6/28 [00:02<00:10, 2.05it/s] 25%|██▌ | 7/28 [00:03<00:10, 2.03it/s] 29%|██▊ | 8/28 [00:03<00:09, 2.03it/s] 32%|███▏ | 9/28 [00:04<00:09, 2.02it/s] 36%|███▌ | 10/28 [00:04<00:08, 2.02it/s] 39%|███▉ | 11/28 [00:05<00:08, 2.01it/s] 43%|████▎ | 12/28 [00:05<00:07, 2.01it/s] 46%|████▋ | 13/28 [00:06<00:07, 2.01it/s] 50%|█████ | 14/28 [00:06<00:06, 2.01it/s] 54%|█████▎ | 15/28 [00:07<00:06, 2.01it/s] 57%|█████▋ | 16/28 [00:07<00:05, 2.01it/s] 61%|██████ | 17/28 [00:08<00:05, 2.01it/s] 64%|██████▍ | 18/28 [00:08<00:04, 2.01it/s] 68%|██████▊ | 19/28 [00:09<00:04, 2.01it/s] 71%|███████▏ | 20/28 [00:09<00:03, 2.00it/s] 75%|███████▌ | 21/28 [00:10<00:03, 2.01it/s] 79%|███████▊ | 22/28 [00:10<00:02, 2.00it/s] 82%|████████▏ | 23/28 [00:11<00:02, 2.01it/s] 86%|████████▌ | 24/28 [00:11<00:01, 2.01it/s] 89%|████████▉ | 25/28 [00:12<00:01, 2.01it/s] 93%|█████████▎| 26/28 [00:12<00:00, 2.01it/s] 96%|█████████▋| 27/28 [00:13<00:00, 2.00it/s] 100%|██████████| 28/28 [00:13<00:00, 2.00it/s] 100%|██████████| 28/28 [00:13<00:00, 2.02it/s] Total safe images: 2 out of 2
Want to make some of these yourself?
Run this model