asiryan / dreamshaper-v8
DreamShaper V8 Model (Text2Img, Img2Img and Inpainting)
Prediction
asiryan/dreamshaper-v8:c79e08d993aa4aa945aa879f0cfe4ff8b4f247e140cc7177280ea5bd11b4073bIDb3yz5o3bslk4dpttgl54owodxuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- steps
- 20
- width
- 512
- height
- 728
- prompt
- 4K, Masterpiece, highres, absurdres, smiling,beautiful dark haired mod_woman, face focus , Haute_Couture,wearing a Haute_Couture designer dress, portrait, perfect mod_body
- strength
- 1
- scheduler
- K_EULER_ANCESTRAL
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye
- use_karras_sigmas
{ "steps": 20, "width": 512, "height": 728, "prompt": "4K, Masterpiece, highres, absurdres, smiling,beautiful dark haired mod_woman, face focus , Haute_Couture,wearing a Haute_Couture designer dress, portrait, perfect mod_body", "strength": 1, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run asiryan/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "asiryan/dreamshaper-v8:c79e08d993aa4aa945aa879f0cfe4ff8b4f247e140cc7177280ea5bd11b4073b", { input: { steps: 20, width: 512, height: 728, prompt: "4K, Masterpiece, highres, absurdres, smiling,beautiful dark haired mod_woman, face focus , Haute_Couture,wearing a Haute_Couture designer dress, portrait, perfect mod_body", strength: 1, scheduler: "K_EULER_ANCESTRAL", guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", use_karras_sigmas: false } } ); // 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 asiryan/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "asiryan/dreamshaper-v8:c79e08d993aa4aa945aa879f0cfe4ff8b4f247e140cc7177280ea5bd11b4073b", input={ "steps": 20, "width": 512, "height": 728, "prompt": "4K, Masterpiece, highres, absurdres, smiling,beautiful dark haired mod_woman, face focus , Haute_Couture,wearing a Haute_Couture designer dress, portrait, perfect mod_body", "strength": 1, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": False } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run asiryan/dreamshaper-v8 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": "asiryan/dreamshaper-v8:c79e08d993aa4aa945aa879f0cfe4ff8b4f247e140cc7177280ea5bd11b4073b", "input": { "steps": 20, "width": 512, "height": 728, "prompt": "4K, Masterpiece, highres, absurdres, smiling,beautiful dark haired mod_woman, face focus , Haute_Couture,wearing a Haute_Couture designer dress, portrait, perfect mod_body", "strength": 1, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-21T22:46:32.372020Z", "created_at": "2023-11-21T22:46:29.818261Z", "data_removed": false, "error": null, "id": "b3yz5o3bslk4dpttgl54owodxu", "input": { "steps": 20, "width": 512, "height": 728, "prompt": "4K, Masterpiece, highres, absurdres, smiling,beautiful dark haired mod_woman, face focus , Haute_Couture,wearing a Haute_Couture designer dress, portrait, perfect mod_body", "strength": 1, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false }, "logs": "Scheduler: K_EULER_ANCESTRAL\nUsing karras sigmas: False\nUsing seed: 3491\n 0%| | 0/20 [00:00<?, ?it/s]\n 10%|█ | 2/20 [00:00<00:01, 16.80it/s]\n 20%|██ | 4/20 [00:00<00:00, 16.74it/s]\n 30%|███ | 6/20 [00:00<00:00, 16.70it/s]\n 40%|████ | 8/20 [00:00<00:00, 16.69it/s]\n 50%|█████ | 10/20 [00:00<00:00, 16.67it/s]\n 60%|██████ | 12/20 [00:00<00:00, 16.58it/s]\n 70%|███████ | 14/20 [00:00<00:00, 16.60it/s]\n 80%|████████ | 16/20 [00:00<00:00, 16.59it/s]\n 90%|█████████ | 18/20 [00:01<00:00, 16.59it/s]\n100%|██████████| 20/20 [00:01<00:00, 16.58it/s]\n100%|██████████| 20/20 [00:01<00:00, 16.62it/s]", "metrics": { "predict_time": 2.517619, "total_time": 2.553759 }, "output": "https://replicate.delivery/pbxt/1FN5bkZ7bK5dCJmB1jtJq8y5dIO8eGhyMhxlA6dqx3vjKX9IA/output.png", "started_at": "2023-11-21T22:46:29.854401Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/b3yz5o3bslk4dpttgl54owodxu", "cancel": "https://api.replicate.com/v1/predictions/b3yz5o3bslk4dpttgl54owodxu/cancel" }, "version": "c79e08d993aa4aa945aa879f0cfe4ff8b4f247e140cc7177280ea5bd11b4073b" }
Generated inScheduler: K_EULER_ANCESTRAL Using karras sigmas: False Using seed: 3491 0%| | 0/20 [00:00<?, ?it/s] 10%|█ | 2/20 [00:00<00:01, 16.80it/s] 20%|██ | 4/20 [00:00<00:00, 16.74it/s] 30%|███ | 6/20 [00:00<00:00, 16.70it/s] 40%|████ | 8/20 [00:00<00:00, 16.69it/s] 50%|█████ | 10/20 [00:00<00:00, 16.67it/s] 60%|██████ | 12/20 [00:00<00:00, 16.58it/s] 70%|███████ | 14/20 [00:00<00:00, 16.60it/s] 80%|████████ | 16/20 [00:00<00:00, 16.59it/s] 90%|█████████ | 18/20 [00:01<00:00, 16.59it/s] 100%|██████████| 20/20 [00:01<00:00, 16.58it/s] 100%|██████████| 20/20 [00:01<00:00, 16.62it/s]
Prediction
asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456bIDxhgta6lbp4xyfiq4skns2ln6gaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 26990
- width
- 512
- height
- 728
- prompt
- Photo of a lone astronaut standing on a barren planet, looking up at the stars, surrounded by remnants of a destroyed spaceship. Deep blue filter, harsh shadows, intense stare, gritty texture, captured by a Sony Alpha 7S III camera.
- strength
- 0.6
- scheduler
- K_EULER_ANCESTRAL
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye
- use_karras_sigmas
- num_inference_steps
- 30
{ "seed": 26990, "image": "https://replicate.delivery/pbxt/JvhDdft2d5EPgKaYEqpiyD8fcme8wFLXsdJjDCo78A65V4CI/astro.png", "width": 512, "height": 728, "prompt": "Photo of a lone astronaut standing on a barren planet, looking up at the stars, surrounded by remnants of a destroyed spaceship. Deep blue filter, harsh shadows, intense stare, gritty texture, captured by a Sony Alpha 7S III camera.", "strength": 0.6, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false, "num_inference_steps": 30 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run asiryan/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b", { input: { seed: 26990, image: "https://replicate.delivery/pbxt/JvhDdft2d5EPgKaYEqpiyD8fcme8wFLXsdJjDCo78A65V4CI/astro.png", width: 512, height: 728, prompt: "Photo of a lone astronaut standing on a barren planet, looking up at the stars, surrounded by remnants of a destroyed spaceship. Deep blue filter, harsh shadows, intense stare, gritty texture, captured by a Sony Alpha 7S III camera.", strength: 0.6, scheduler: "K_EULER_ANCESTRAL", guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", use_karras_sigmas: false, num_inference_steps: 30 } } ); // 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 asiryan/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b", input={ "seed": 26990, "image": "https://replicate.delivery/pbxt/JvhDdft2d5EPgKaYEqpiyD8fcme8wFLXsdJjDCo78A65V4CI/astro.png", "width": 512, "height": 728, "prompt": "Photo of a lone astronaut standing on a barren planet, looking up at the stars, surrounded by remnants of a destroyed spaceship. Deep blue filter, harsh shadows, intense stare, gritty texture, captured by a Sony Alpha 7S III camera.", "strength": 0.6, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": False, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run asiryan/dreamshaper-v8 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": "asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b", "input": { "seed": 26990, "image": "https://replicate.delivery/pbxt/JvhDdft2d5EPgKaYEqpiyD8fcme8wFLXsdJjDCo78A65V4CI/astro.png", "width": 512, "height": 728, "prompt": "Photo of a lone astronaut standing on a barren planet, looking up at the stars, surrounded by remnants of a destroyed spaceship. Deep blue filter, harsh shadows, intense stare, gritty texture, captured by a Sony Alpha 7S III camera.", "strength": 0.6, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T23:15:39.272089Z", "created_at": "2023-11-23T23:15:16.540629Z", "data_removed": false, "error": null, "id": "xhgta6lbp4xyfiq4skns2ln6ga", "input": { "seed": 26990, "image": "https://replicate.delivery/pbxt/JvhDdft2d5EPgKaYEqpiyD8fcme8wFLXsdJjDCo78A65V4CI/astro.png", "width": 512, "height": 728, "prompt": "Photo of a lone astronaut standing on a barren planet, looking up at the stars, surrounded by remnants of a destroyed spaceship. Deep blue filter, harsh shadows, intense stare, gritty texture, captured by a Sony Alpha 7S III camera.", "strength": 0.6, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false, "num_inference_steps": 30 }, "logs": "Scheduler: K_EULER_ANCESTRAL\nUsing karras sigmas: False\nUsing seed: 26990\nMode: img2img\nToken indices sequence length is longer than the specified maximum sequence length for this model (124 > 77). Running this sequence through the model will result in indexing errors\n 0%| | 0/18 [00:00<?, ?it/s]\n 6%|▌ | 1/18 [00:00<00:04, 4.02it/s]\n 11%|█ | 2/18 [00:00<00:03, 4.94it/s]\n 17%|█▋ | 3/18 [00:00<00:02, 5.33it/s]\n 22%|██▏ | 4/18 [00:00<00:02, 5.54it/s]\n 28%|██▊ | 5/18 [00:00<00:02, 5.66it/s]\n 33%|███▎ | 6/18 [00:01<00:02, 5.73it/s]\n 39%|███▉ | 7/18 [00:01<00:01, 5.77it/s]\n 44%|████▍ | 8/18 [00:01<00:01, 5.80it/s]\n 50%|█████ | 9/18 [00:01<00:01, 5.81it/s]\n 56%|█████▌ | 10/18 [00:01<00:01, 5.81it/s]\n 61%|██████ | 11/18 [00:01<00:01, 5.82it/s]\n 67%|██████▋ | 12/18 [00:02<00:01, 5.83it/s]\n 72%|███████▏ | 13/18 [00:02<00:00, 5.83it/s]\n 78%|███████▊ | 14/18 [00:02<00:00, 5.84it/s]\n 83%|████████▎ | 15/18 [00:02<00:00, 5.84it/s]\n 89%|████████▉ | 16/18 [00:02<00:00, 5.84it/s]\n 94%|█████████▍| 17/18 [00:02<00:00, 5.84it/s]\n100%|██████████| 18/18 [00:03<00:00, 5.84it/s]\n100%|██████████| 18/18 [00:03<00:00, 5.71it/s]", "metrics": { "predict_time": 13.709752, "total_time": 22.73146 }, "output": "https://replicate.delivery/pbxt/e2eyoV2D6jiJTUbqysfRnYqKeyZh0vsEPBlZM1xDjkEpxjtHB/output.png", "started_at": "2023-11-23T23:15:25.562337Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xhgta6lbp4xyfiq4skns2ln6ga", "cancel": "https://api.replicate.com/v1/predictions/xhgta6lbp4xyfiq4skns2ln6ga/cancel" }, "version": "67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b" }
Generated inScheduler: K_EULER_ANCESTRAL Using karras sigmas: False Using seed: 26990 Mode: img2img Token indices sequence length is longer than the specified maximum sequence length for this model (124 > 77). Running this sequence through the model will result in indexing errors 0%| | 0/18 [00:00<?, ?it/s] 6%|▌ | 1/18 [00:00<00:04, 4.02it/s] 11%|█ | 2/18 [00:00<00:03, 4.94it/s] 17%|█▋ | 3/18 [00:00<00:02, 5.33it/s] 22%|██▏ | 4/18 [00:00<00:02, 5.54it/s] 28%|██▊ | 5/18 [00:00<00:02, 5.66it/s] 33%|███▎ | 6/18 [00:01<00:02, 5.73it/s] 39%|███▉ | 7/18 [00:01<00:01, 5.77it/s] 44%|████▍ | 8/18 [00:01<00:01, 5.80it/s] 50%|█████ | 9/18 [00:01<00:01, 5.81it/s] 56%|█████▌ | 10/18 [00:01<00:01, 5.81it/s] 61%|██████ | 11/18 [00:01<00:01, 5.82it/s] 67%|██████▋ | 12/18 [00:02<00:01, 5.83it/s] 72%|███████▏ | 13/18 [00:02<00:00, 5.83it/s] 78%|███████▊ | 14/18 [00:02<00:00, 5.84it/s] 83%|████████▎ | 15/18 [00:02<00:00, 5.84it/s] 89%|████████▉ | 16/18 [00:02<00:00, 5.84it/s] 94%|█████████▍| 17/18 [00:02<00:00, 5.84it/s] 100%|██████████| 18/18 [00:03<00:00, 5.84it/s] 100%|██████████| 18/18 [00:03<00:00, 5.71it/s]
Prediction
asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456bIDc6nhdalbwxmfad3yf3rbe6agjuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1280
- height
- 1280
- prompt
- a tabby cat, high resolution, sitting on a park bench
- strength
- 0.8
- scheduler
- K_EULER_ANCESTRAL
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye
- use_karras_sigmas
- num_inference_steps
- 30
{ "mask": "https://replicate.delivery/pbxt/JvhING0mRwQZyYjDe8EFb54j0dDW9DLXAmLcSLPPoYRZOHTk/mask.png", "image": "https://replicate.delivery/pbxt/JvhINeTaYtCNPV5m2EpOkMFulmV5sJi7hdKFH4XhG8D1ItSM/demo.png", "width": 1280, "height": 1280, "prompt": "a tabby cat, high resolution, sitting on a park bench", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false, "num_inference_steps": 30 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run asiryan/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b", { input: { mask: "https://replicate.delivery/pbxt/JvhING0mRwQZyYjDe8EFb54j0dDW9DLXAmLcSLPPoYRZOHTk/mask.png", image: "https://replicate.delivery/pbxt/JvhINeTaYtCNPV5m2EpOkMFulmV5sJi7hdKFH4XhG8D1ItSM/demo.png", width: 1280, height: 1280, prompt: "a tabby cat, high resolution, sitting on a park bench", strength: 0.8, scheduler: "K_EULER_ANCESTRAL", guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", use_karras_sigmas: false, num_inference_steps: 30 } } ); // 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 asiryan/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b", input={ "mask": "https://replicate.delivery/pbxt/JvhING0mRwQZyYjDe8EFb54j0dDW9DLXAmLcSLPPoYRZOHTk/mask.png", "image": "https://replicate.delivery/pbxt/JvhINeTaYtCNPV5m2EpOkMFulmV5sJi7hdKFH4XhG8D1ItSM/demo.png", "width": 1280, "height": 1280, "prompt": "a tabby cat, high resolution, sitting on a park bench", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": False, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run asiryan/dreamshaper-v8 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": "asiryan/dreamshaper-v8:67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b", "input": { "mask": "https://replicate.delivery/pbxt/JvhING0mRwQZyYjDe8EFb54j0dDW9DLXAmLcSLPPoYRZOHTk/mask.png", "image": "https://replicate.delivery/pbxt/JvhINeTaYtCNPV5m2EpOkMFulmV5sJi7hdKFH4XhG8D1ItSM/demo.png", "width": 1280, "height": 1280, "prompt": "a tabby cat, high resolution, sitting on a park bench", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T23:20:57.761977Z", "created_at": "2023-11-23T23:20:16.828424Z", "data_removed": false, "error": null, "id": "c6nhdalbwxmfad3yf3rbe6agju", "input": { "mask": "https://replicate.delivery/pbxt/JvhING0mRwQZyYjDe8EFb54j0dDW9DLXAmLcSLPPoYRZOHTk/mask.png", "image": "https://replicate.delivery/pbxt/JvhINeTaYtCNPV5m2EpOkMFulmV5sJi7hdKFH4XhG8D1ItSM/demo.png", "width": 1280, "height": 1280, "prompt": "a tabby cat, high resolution, sitting on a park bench", "strength": 0.8, "scheduler": "K_EULER_ANCESTRAL", "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "use_karras_sigmas": false, "num_inference_steps": 30 }, "logs": "Scheduler: K_EULER_ANCESTRAL\nUsing karras sigmas: False\nUsing seed: 10707\nMode: inpainting\n 0%| | 0/24 [00:00<?, ?it/s]\n 4%|▍ | 1/24 [00:01<00:45, 1.97s/it]\n 8%|▊ | 2/24 [00:03<00:37, 1.71s/it]\n 12%|█▎ | 3/24 [00:05<00:34, 1.63s/it]\n 17%|█▋ | 4/24 [00:06<00:31, 1.59s/it]\n 21%|██ | 5/24 [00:08<00:29, 1.57s/it]\n 25%|██▌ | 6/24 [00:09<00:28, 1.56s/it]\n 29%|██▉ | 7/24 [00:11<00:26, 1.55s/it]\n 33%|███▎ | 8/24 [00:12<00:24, 1.55s/it]\n 38%|███▊ | 9/24 [00:14<00:23, 1.55s/it]\n 42%|████▏ | 10/24 [00:15<00:21, 1.54s/it]\n 46%|████▌ | 11/24 [00:17<00:20, 1.54s/it]\n 50%|█████ | 12/24 [00:18<00:18, 1.54s/it]\n 54%|█████▍ | 13/24 [00:20<00:16, 1.54s/it]\n 58%|█████▊ | 14/24 [00:21<00:15, 1.53s/it]\n 62%|██████▎ | 15/24 [00:23<00:13, 1.53s/it]\n 67%|██████▋ | 16/24 [00:24<00:12, 1.53s/it]\n 71%|███████ | 17/24 [00:26<00:10, 1.53s/it]\n 75%|███████▌ | 18/24 [00:28<00:09, 1.53s/it]\n 79%|███████▉ | 19/24 [00:29<00:07, 1.53s/it]\n 83%|████████▎ | 20/24 [00:31<00:06, 1.53s/it]\n 88%|████████▊ | 21/24 [00:32<00:04, 1.54s/it]\n 92%|█████████▏| 22/24 [00:34<00:03, 1.53s/it]\n 96%|█████████▌| 23/24 [00:35<00:01, 1.54s/it]\n100%|██████████| 24/24 [00:37<00:00, 1.54s/it]\n100%|██████████| 24/24 [00:37<00:00, 1.55s/it]", "metrics": { "predict_time": 40.874417, "total_time": 40.933553 }, "output": "https://replicate.delivery/pbxt/ymFjZKbI9JqzDlmbEABBXBJZnWBXlQbPdRtDuWuDEWGWQ2eIA/output.png", "started_at": "2023-11-23T23:20:16.887560Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/c6nhdalbwxmfad3yf3rbe6agju", "cancel": "https://api.replicate.com/v1/predictions/c6nhdalbwxmfad3yf3rbe6agju/cancel" }, "version": "67a08099114e6499824844bd80af802d1c8ab1c65cd313683e3971774217456b" }
Generated inScheduler: K_EULER_ANCESTRAL Using karras sigmas: False Using seed: 10707 Mode: inpainting 0%| | 0/24 [00:00<?, ?it/s] 4%|▍ | 1/24 [00:01<00:45, 1.97s/it] 8%|▊ | 2/24 [00:03<00:37, 1.71s/it] 12%|█▎ | 3/24 [00:05<00:34, 1.63s/it] 17%|█▋ | 4/24 [00:06<00:31, 1.59s/it] 21%|██ | 5/24 [00:08<00:29, 1.57s/it] 25%|██▌ | 6/24 [00:09<00:28, 1.56s/it] 29%|██▉ | 7/24 [00:11<00:26, 1.55s/it] 33%|███▎ | 8/24 [00:12<00:24, 1.55s/it] 38%|███▊ | 9/24 [00:14<00:23, 1.55s/it] 42%|████▏ | 10/24 [00:15<00:21, 1.54s/it] 46%|████▌ | 11/24 [00:17<00:20, 1.54s/it] 50%|█████ | 12/24 [00:18<00:18, 1.54s/it] 54%|█████▍ | 13/24 [00:20<00:16, 1.54s/it] 58%|█████▊ | 14/24 [00:21<00:15, 1.53s/it] 62%|██████▎ | 15/24 [00:23<00:13, 1.53s/it] 67%|██████▋ | 16/24 [00:24<00:12, 1.53s/it] 71%|███████ | 17/24 [00:26<00:10, 1.53s/it] 75%|███████▌ | 18/24 [00:28<00:09, 1.53s/it] 79%|███████▉ | 19/24 [00:29<00:07, 1.53s/it] 83%|████████▎ | 20/24 [00:31<00:06, 1.53s/it] 88%|████████▊ | 21/24 [00:32<00:04, 1.54s/it] 92%|█████████▏| 22/24 [00:34<00:03, 1.53s/it] 96%|█████████▌| 23/24 [00:35<00:01, 1.54s/it] 100%|██████████| 24/24 [00:37<00:00, 1.54s/it] 100%|██████████| 24/24 [00:37<00:00, 1.55s/it]
Want to make some of these yourself?
Run this model