You're looking at a specific version of this model. Jump to the model overview.
mcai /dreamshaper-v6:8b0deb03
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run mcai/dreamshaper-v6 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"mcai/dreamshaper-v6:8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed",
{
input: {
width: 512,
height: 768,
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",
scheduler: "EulerAncestralDiscrete",
num_outputs: 1,
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",
num_inference_steps: 30
}
}
);
// 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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run mcai/dreamshaper-v6 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"mcai/dreamshaper-v6:8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed",
input={
"width": 512,
"height": 768,
"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",
"scheduler": "EulerAncestralDiscrete",
"num_outputs": 1,
"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",
"num_inference_steps": 30
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mcai/dreamshaper-v6 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": "mcai/dreamshaper-v6:8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed",
"input": {
"width": 512,
"height": 768,
"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",
"scheduler": "EulerAncestralDiscrete",
"num_outputs": 1,
"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",
"num_inference_steps": 30
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-06-01T17:25:11.467857Z",
"created_at": "2023-06-01T17:25:08.119227Z",
"data_removed": false,
"error": null,
"id": "adtym4aefvaknltst6qclygbkm",
"input": {
"width": 512,
"height": 768,
"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",
"scheduler": "EulerAncestralDiscrete",
"num_outputs": 1,
"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",
"num_inference_steps": 30
},
"logs": "Using seed: 25024\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:02, 12.23it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 13.12it/s]\n 20%|██ | 6/30 [00:00<00:01, 13.23it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 13.36it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 13.32it/s]\n 40%|████ | 12/30 [00:00<00:01, 13.48it/s]\n 47%|████▋ | 14/30 [00:01<00:01, 13.55it/s]\n 53%|█████▎ | 16/30 [00:01<00:01, 13.10it/s]\n 60%|██████ | 18/30 [00:01<00:00, 13.29it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 13.12it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 13.28it/s]\n 80%|████████ | 24/30 [00:01<00:00, 13.45it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 13.57it/s]\n 93%|█████████▎| 28/30 [00:02<00:00, 13.61it/s]\n100%|██████████| 30/30 [00:02<00:00, 13.12it/s]\n100%|██████████| 30/30 [00:02<00:00, 13.27it/s]",
"metrics": {
"predict_time": 3.423619,
"total_time": 3.34863
},
"output": [
"https://replicate.delivery/pbxt/aNZyGOOmZcoYLh1iz9v2DsLEiEMcNA04jafyaUqIpOV7M0gIA/out-0.png"
],
"started_at": "2023-06-01T17:25:08.044238Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/adtym4aefvaknltst6qclygbkm",
"cancel": "https://api.replicate.com/v1/predictions/adtym4aefvaknltst6qclygbkm/cancel"
},
"version": "8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed"
}
Using seed: 25024
0%| | 0/30 [00:00<?, ?it/s]
7%|▋ | 2/30 [00:00<00:02, 12.23it/s]
13%|█▎ | 4/30 [00:00<00:01, 13.12it/s]
20%|██ | 6/30 [00:00<00:01, 13.23it/s]
27%|██▋ | 8/30 [00:00<00:01, 13.36it/s]
33%|███▎ | 10/30 [00:00<00:01, 13.32it/s]
40%|████ | 12/30 [00:00<00:01, 13.48it/s]
47%|████▋ | 14/30 [00:01<00:01, 13.55it/s]
53%|█████▎ | 16/30 [00:01<00:01, 13.10it/s]
60%|██████ | 18/30 [00:01<00:00, 13.29it/s]
67%|██████▋ | 20/30 [00:01<00:00, 13.12it/s]
73%|███████▎ | 22/30 [00:01<00:00, 13.28it/s]
80%|████████ | 24/30 [00:01<00:00, 13.45it/s]
87%|████████▋ | 26/30 [00:01<00:00, 13.57it/s]
93%|█████████▎| 28/30 [00:02<00:00, 13.61it/s]
100%|██████████| 30/30 [00:02<00:00, 13.12it/s]
100%|██████████| 30/30 [00:02<00:00, 13.27it/s]