Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
asiryan /dreamshaper-v8:c79e08d9
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 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.
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 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.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
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.
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-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"
}
Scheduler: 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]