lucataco / ssd-1b-img2img
Segmind Stable Diffusion Model (SSD-1B) img2img
Prediction
lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39IDatdjmjtbadczh2vofsr54hja7uStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- seed
- 21272
- prompt
- a wolf with pink and blue fur
- strength
- 0.8
- scheduler
- K_EULER
- guidance_scale
- 8
- negative_prompt
- scary, cartoon, painting
- num_inference_steps
- 10
{ "seed": 21272, "image": "https://replicate.delivery/pbxt/JoJK5q0L7bCNFCY1cR9KTTEk0z1VerXyxPrDBnrhtZwCNSUh/wolf.png", "prompt": "a wolf with pink and blue fur", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", { input: { seed: 21272, image: "https://replicate.delivery/pbxt/JoJK5q0L7bCNFCY1cR9KTTEk0z1VerXyxPrDBnrhtZwCNSUh/wolf.png", prompt: "a wolf with pink and blue fur", strength: 0.8, scheduler: "K_EULER", guidance_scale: 8, negative_prompt: "scary, cartoon, painting", num_inference_steps: 10 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", input={ "seed": 21272, "image": "https://replicate.delivery/pbxt/JoJK5q0L7bCNFCY1cR9KTTEk0z1VerXyxPrDBnrhtZwCNSUh/wolf.png", "prompt": "a wolf with pink and blue fur", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/ssd-1b-img2img 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": "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", "input": { "seed": 21272, "image": "https://replicate.delivery/pbxt/JoJK5q0L7bCNFCY1cR9KTTEk0z1VerXyxPrDBnrhtZwCNSUh/wolf.png", "prompt": "a wolf with pink and blue fur", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-03T03:54:38.717444Z", "created_at": "2023-11-03T03:53:48.793048Z", "data_removed": false, "error": null, "id": "atdjmjtbadczh2vofsr54hja7u", "input": { "seed": 21272, "image": "https://replicate.delivery/pbxt/JoJK5q0L7bCNFCY1cR9KTTEk0z1VerXyxPrDBnrhtZwCNSUh/wolf.png", "prompt": "a wolf with pink and blue fur", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }, "logs": "Using seed: 21272\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:01, 5.28it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 6.54it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 7.04it/s]\n 50%|█████ | 4/8 [00:00<00:00, 7.28it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 7.43it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 7.52it/s]\n 88%|████████▊ | 7/8 [00:00<00:00, 7.58it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.62it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.30it/s]", "metrics": { "predict_time": 3.835403, "total_time": 49.924396 }, "output": "https://replicate.delivery/pbxt/xf2eYXMwyzkH4EOnFVGNxk0QvctjwYLjzhSJWqmRCyK9Di0RA/output.png", "started_at": "2023-11-03T03:54:34.882041Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/atdjmjtbadczh2vofsr54hja7u", "cancel": "https://api.replicate.com/v1/predictions/atdjmjtbadczh2vofsr54hja7u/cancel" }, "version": "8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39" }
Generated inUsing seed: 21272 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:00<00:01, 5.28it/s] 25%|██▌ | 2/8 [00:00<00:00, 6.54it/s] 38%|███▊ | 3/8 [00:00<00:00, 7.04it/s] 50%|█████ | 4/8 [00:00<00:00, 7.28it/s] 62%|██████▎ | 5/8 [00:00<00:00, 7.43it/s] 75%|███████▌ | 6/8 [00:00<00:00, 7.52it/s] 88%|████████▊ | 7/8 [00:00<00:00, 7.58it/s] 100%|██████████| 8/8 [00:01<00:00, 7.62it/s] 100%|██████████| 8/8 [00:01<00:00, 7.30it/s]
Prediction
lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39IDjkcr7i3b5al7jtfzgwwdpfsl4eStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- seed
- 46163
- prompt
- magic anime boy with glasses
- strength
- 0.8
- scheduler
- K_EULER
- guidance_scale
- 8
- negative_prompt
- scary, cartoon, painting
- num_inference_steps
- 10
{ "seed": 46163, "image": "https://replicate.delivery/pbxt/JoJNV5pJuspCVrr99qivI8nbr2PhNIC8Uo028fmaW5aGLlSR/magic-anime-girl.png", "prompt": "magic anime boy with glasses", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", { input: { seed: 46163, image: "https://replicate.delivery/pbxt/JoJNV5pJuspCVrr99qivI8nbr2PhNIC8Uo028fmaW5aGLlSR/magic-anime-girl.png", prompt: "magic anime boy with glasses", strength: 0.8, scheduler: "K_EULER", guidance_scale: 8, negative_prompt: "scary, cartoon, painting", num_inference_steps: 10 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", input={ "seed": 46163, "image": "https://replicate.delivery/pbxt/JoJNV5pJuspCVrr99qivI8nbr2PhNIC8Uo028fmaW5aGLlSR/magic-anime-girl.png", "prompt": "magic anime boy with glasses", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/ssd-1b-img2img 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": "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", "input": { "seed": 46163, "image": "https://replicate.delivery/pbxt/JoJNV5pJuspCVrr99qivI8nbr2PhNIC8Uo028fmaW5aGLlSR/magic-anime-girl.png", "prompt": "magic anime boy with glasses", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-03T03:57:29.132553Z", "created_at": "2023-11-03T03:57:25.464725Z", "data_removed": false, "error": null, "id": "jkcr7i3b5al7jtfzgwwdpfsl4e", "input": { "seed": 46163, "image": "https://replicate.delivery/pbxt/JoJNV5pJuspCVrr99qivI8nbr2PhNIC8Uo028fmaW5aGLlSR/magic-anime-girl.png", "prompt": "magic anime boy with glasses", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }, "logs": "Using seed: 46163\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:00, 7.73it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 7.72it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 7.70it/s]\n 50%|█████ | 4/8 [00:00<00:00, 7.70it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 7.70it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 7.69it/s]\n 88%|████████▊ | 7/8 [00:00<00:00, 7.69it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.68it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.69it/s]", "metrics": { "predict_time": 3.672957, "total_time": 3.667828 }, "output": "https://replicate.delivery/pbxt/aDuT4T1VPb5yFBHJRGsAHAUDsZOnfJt7WejKBoAUNUeQNEpjA/output.png", "started_at": "2023-11-03T03:57:25.459596Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jkcr7i3b5al7jtfzgwwdpfsl4e", "cancel": "https://api.replicate.com/v1/predictions/jkcr7i3b5al7jtfzgwwdpfsl4e/cancel" }, "version": "8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39" }
Generated inUsing seed: 46163 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:00<00:00, 7.73it/s] 25%|██▌ | 2/8 [00:00<00:00, 7.72it/s] 38%|███▊ | 3/8 [00:00<00:00, 7.70it/s] 50%|█████ | 4/8 [00:00<00:00, 7.70it/s] 62%|██████▎ | 5/8 [00:00<00:00, 7.70it/s] 75%|███████▌ | 6/8 [00:00<00:00, 7.69it/s] 88%|████████▊ | 7/8 [00:00<00:00, 7.69it/s] 100%|██████████| 8/8 [00:01<00:00, 7.68it/s] 100%|██████████| 8/8 [00:01<00:00, 7.69it/s]
Prediction
lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39IDx2g3hctbuh3jhy3pvg64q7dxlaStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- seed
- 45129
- prompt
- paper bunny rabbit
- strength
- 0.8
- scheduler
- K_EULER
- guidance_scale
- 8
- negative_prompt
- scary, cartoon, painting
- num_inference_steps
- 10
{ "seed": 45129, "image": "https://replicate.delivery/pbxt/JoJPDyzOzBNBfLQMHbTq4FSZfdMIUNtB6nW2ttlgEdKNtPqH/paper-fox.png", "prompt": "paper bunny rabbit", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", { input: { seed: 45129, image: "https://replicate.delivery/pbxt/JoJPDyzOzBNBfLQMHbTq4FSZfdMIUNtB6nW2ttlgEdKNtPqH/paper-fox.png", prompt: "paper bunny rabbit", strength: 0.8, scheduler: "K_EULER", guidance_scale: 8, negative_prompt: "scary, cartoon, painting", num_inference_steps: 10 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", input={ "seed": 45129, "image": "https://replicate.delivery/pbxt/JoJPDyzOzBNBfLQMHbTq4FSZfdMIUNtB6nW2ttlgEdKNtPqH/paper-fox.png", "prompt": "paper bunny rabbit", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/ssd-1b-img2img 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": "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", "input": { "seed": 45129, "image": "https://replicate.delivery/pbxt/JoJPDyzOzBNBfLQMHbTq4FSZfdMIUNtB6nW2ttlgEdKNtPqH/paper-fox.png", "prompt": "paper bunny rabbit", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-03T03:59:17.688719Z", "created_at": "2023-11-03T03:59:14.238914Z", "data_removed": false, "error": null, "id": "x2g3hctbuh3jhy3pvg64q7dxla", "input": { "seed": 45129, "image": "https://replicate.delivery/pbxt/JoJPDyzOzBNBfLQMHbTq4FSZfdMIUNtB6nW2ttlgEdKNtPqH/paper-fox.png", "prompt": "paper bunny rabbit", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }, "logs": "Using seed: 45129\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:00, 7.73it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 7.72it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 7.71it/s]\n 50%|█████ | 4/8 [00:00<00:00, 7.70it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 7.69it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 7.69it/s]\n 88%|████████▊ | 7/8 [00:00<00:00, 7.68it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.68it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.69it/s]", "metrics": { "predict_time": 3.498198, "total_time": 3.449805 }, "output": "https://replicate.delivery/pbxt/cJBIMwHlmDIxJhjLI4PsaDSsEuKViqNgzTbi65NF0IDFiIdE/output.png", "started_at": "2023-11-03T03:59:14.190521Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/x2g3hctbuh3jhy3pvg64q7dxla", "cancel": "https://api.replicate.com/v1/predictions/x2g3hctbuh3jhy3pvg64q7dxla/cancel" }, "version": "8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39" }
Generated inUsing seed: 45129 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:00<00:00, 7.73it/s] 25%|██▌ | 2/8 [00:00<00:00, 7.72it/s] 38%|███▊ | 3/8 [00:00<00:00, 7.71it/s] 50%|█████ | 4/8 [00:00<00:00, 7.70it/s] 62%|██████▎ | 5/8 [00:00<00:00, 7.69it/s] 75%|███████▌ | 6/8 [00:00<00:00, 7.69it/s] 88%|████████▊ | 7/8 [00:00<00:00, 7.68it/s] 100%|██████████| 8/8 [00:01<00:00, 7.68it/s] 100%|██████████| 8/8 [00:01<00:00, 7.69it/s]
Prediction
lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39IDm3gy7k3by3lns7otrtk23hncuaStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- seed
- 48555
- prompt
- Flamenco dancer in a purple dress
- strength
- 0.8
- scheduler
- K_EULER
- guidance_scale
- 8
- negative_prompt
- scary, cartoon, painting
- num_inference_steps
- 14
{ "seed": 48555, "image": "https://replicate.delivery/pbxt/JoJSEcD4XPU4RpYe7aXQlMfebOs9KeSwT37ZhNCZ0sMKmTPE/flamingo.png", "prompt": "Flamenco dancer in a purple dress", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 14 }
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", { input: { seed: 48555, image: "https://replicate.delivery/pbxt/JoJSEcD4XPU4RpYe7aXQlMfebOs9KeSwT37ZhNCZ0sMKmTPE/flamingo.png", prompt: "Flamenco dancer in a purple dress", strength: 0.8, scheduler: "K_EULER", guidance_scale: 8, negative_prompt: "scary, cartoon, painting", num_inference_steps: 14 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", input={ "seed": 48555, "image": "https://replicate.delivery/pbxt/JoJSEcD4XPU4RpYe7aXQlMfebOs9KeSwT37ZhNCZ0sMKmTPE/flamingo.png", "prompt": "Flamenco dancer in a purple dress", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 14 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/ssd-1b-img2img 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": "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", "input": { "seed": 48555, "image": "https://replicate.delivery/pbxt/JoJSEcD4XPU4RpYe7aXQlMfebOs9KeSwT37ZhNCZ0sMKmTPE/flamingo.png", "prompt": "Flamenco dancer in a purple dress", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 14 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-03T04:02:28.342908Z", "created_at": "2023-11-03T04:02:24.430874Z", "data_removed": false, "error": null, "id": "m3gy7k3by3lns7otrtk23hncua", "input": { "seed": 48555, "image": "https://replicate.delivery/pbxt/JoJSEcD4XPU4RpYe7aXQlMfebOs9KeSwT37ZhNCZ0sMKmTPE/flamingo.png", "prompt": "Flamenco dancer in a purple dress", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 14 }, "logs": "Using seed: 48555\n 0%| | 0/11 [00:00<?, ?it/s]\n 9%|▉ | 1/11 [00:00<00:01, 7.72it/s]\n 18%|█▊ | 2/11 [00:00<00:01, 7.70it/s]\n 27%|██▋ | 3/11 [00:00<00:01, 7.71it/s]\n 36%|███▋ | 4/11 [00:00<00:00, 7.72it/s]\n 45%|████▌ | 5/11 [00:00<00:00, 7.72it/s]\n 55%|█████▍ | 6/11 [00:00<00:00, 7.72it/s]\n 64%|██████▎ | 7/11 [00:00<00:00, 7.73it/s]\n 73%|███████▎ | 8/11 [00:01<00:00, 7.73it/s]\n 82%|████████▏ | 9/11 [00:01<00:00, 7.73it/s]\n 91%|█████████ | 10/11 [00:01<00:00, 7.73it/s]\n100%|██████████| 11/11 [00:01<00:00, 7.73it/s]\n100%|██████████| 11/11 [00:01<00:00, 7.72it/s]", "metrics": { "predict_time": 3.956511, "total_time": 3.912034 }, "output": "https://replicate.delivery/pbxt/RU7d22XtQ1phPZGHgvbBJwhgPEjX1kMXlLehea3zOZRTLi0RA/output.png", "started_at": "2023-11-03T04:02:24.386397Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m3gy7k3by3lns7otrtk23hncua", "cancel": "https://api.replicate.com/v1/predictions/m3gy7k3by3lns7otrtk23hncua/cancel" }, "version": "8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39" }
Generated inUsing seed: 48555 0%| | 0/11 [00:00<?, ?it/s] 9%|▉ | 1/11 [00:00<00:01, 7.72it/s] 18%|█▊ | 2/11 [00:00<00:01, 7.70it/s] 27%|██▋ | 3/11 [00:00<00:01, 7.71it/s] 36%|███▋ | 4/11 [00:00<00:00, 7.72it/s] 45%|████▌ | 5/11 [00:00<00:00, 7.72it/s] 55%|█████▍ | 6/11 [00:00<00:00, 7.72it/s] 64%|██████▎ | 7/11 [00:00<00:00, 7.73it/s] 73%|███████▎ | 8/11 [00:01<00:00, 7.73it/s] 82%|████████▏ | 9/11 [00:01<00:00, 7.73it/s] 91%|█████████ | 10/11 [00:01<00:00, 7.73it/s] 100%|██████████| 11/11 [00:01<00:00, 7.73it/s] 100%|██████████| 11/11 [00:01<00:00, 7.72it/s]
Prediction
lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39ID3oeyxd3bu2heinvut3ch2nwd3qStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- seed
- 65346
- prompt
- polygon castle in the winter
- strength
- 0.8
- scheduler
- K_EULER
- guidance_scale
- 8
- negative_prompt
- scary, cartoon, painting
- num_inference_steps
- 10
{ "seed": 65346, "image": "https://replicate.delivery/pbxt/JoJUk3wF1GemiEZhpbyuLmtDbJaOus8kbrJLVxUxbAfjQDtC/poly-castle.png", "prompt": "polygon castle in the winter ", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", { input: { seed: 65346, image: "https://replicate.delivery/pbxt/JoJUk3wF1GemiEZhpbyuLmtDbJaOus8kbrJLVxUxbAfjQDtC/poly-castle.png", prompt: "polygon castle in the winter ", strength: 0.8, scheduler: "K_EULER", guidance_scale: 8, negative_prompt: "scary, cartoon, painting", num_inference_steps: 10 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
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 lucataco/ssd-1b-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", input={ "seed": 65346, "image": "https://replicate.delivery/pbxt/JoJUk3wF1GemiEZhpbyuLmtDbJaOus8kbrJLVxUxbAfjQDtC/poly-castle.png", "prompt": "polygon castle in the winter ", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run lucataco/ssd-1b-img2img 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": "lucataco/ssd-1b-img2img:8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39", "input": { "seed": 65346, "image": "https://replicate.delivery/pbxt/JoJUk3wF1GemiEZhpbyuLmtDbJaOus8kbrJLVxUxbAfjQDtC/poly-castle.png", "prompt": "polygon castle in the winter ", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-03T04:05:07.005871Z", "created_at": "2023-11-03T04:05:03.336167Z", "data_removed": false, "error": null, "id": "3oeyxd3bu2heinvut3ch2nwd3q", "input": { "seed": 65346, "image": "https://replicate.delivery/pbxt/JoJUk3wF1GemiEZhpbyuLmtDbJaOus8kbrJLVxUxbAfjQDtC/poly-castle.png", "prompt": "polygon castle in the winter ", "strength": 0.8, "scheduler": "K_EULER", "guidance_scale": 8, "negative_prompt": "scary, cartoon, painting", "num_inference_steps": 10 }, "logs": "Using seed: 65346\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:00, 7.74it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 7.72it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 7.70it/s]\n 50%|█████ | 4/8 [00:00<00:00, 7.72it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 7.72it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 7.73it/s]\n 88%|████████▊ | 7/8 [00:00<00:00, 7.72it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.72it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.72it/s]", "metrics": { "predict_time": 3.657484, "total_time": 3.669704 }, "output": "https://replicate.delivery/pbxt/oanmbThogm6mB99DO0vc3gSsWNZS5bhn962m9dXHeaQ5GR6IA/output.png", "started_at": "2023-11-03T04:05:03.348387Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3oeyxd3bu2heinvut3ch2nwd3q", "cancel": "https://api.replicate.com/v1/predictions/3oeyxd3bu2heinvut3ch2nwd3q/cancel" }, "version": "8d758408398a909fb7696c2a04ea044158de351b6b87cf0934d1f11bc3e4ad39" }
Generated inUsing seed: 65346 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:00<00:00, 7.74it/s] 25%|██▌ | 2/8 [00:00<00:00, 7.72it/s] 38%|███▊ | 3/8 [00:00<00:00, 7.70it/s] 50%|█████ | 4/8 [00:00<00:00, 7.72it/s] 62%|██████▎ | 5/8 [00:00<00:00, 7.72it/s] 75%|███████▌ | 6/8 [00:00<00:00, 7.73it/s] 88%|████████▊ | 7/8 [00:00<00:00, 7.72it/s] 100%|██████████| 8/8 [00:01<00:00, 7.72it/s] 100%|██████████| 8/8 [00:01<00:00, 7.72it/s]
Want to make some of these yourself?
Run this model