Readme
This model doesn't have a readme.
Generate a new image given any input text with DreamShaper V6
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: "illustration, high resolution, 8k, 16k, high quality, realistic, real, ### Depict an open (messy) black brief case containing everyday work items for a business man, items all over the floor, phone, head phones, bedroom, crime scene, ## ambiant lighting, moody lighting, vibrant",
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": "illustration, high resolution, 8k, 16k, high quality, realistic, real, ### Depict an open (messy) black brief case containing everyday work items for a business man, items all over the floor, phone, head phones, bedroom, crime scene, ## ambiant lighting, moody lighting, vibrant",
"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": "8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed",
"input": {
"width": 512,
"height": 768,
"prompt": "illustration, high resolution, 8k, 16k, high quality, realistic, real, ### Depict an open (messy) black brief case containing everyday work items for a business man, items all over the floor, phone, head phones, bedroom, crime scene, ## ambiant lighting, moody lighting, vibrant",
"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.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mcai/dreamshaper-v6@sha256:8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed \
-i 'width=512' \
-i 'height=768' \
-i 'prompt="illustration, high resolution, 8k, 16k, high quality, realistic, real, ### Depict an open (messy) black brief case containing everyday work items for a business man, items all over the floor, phone, head phones, bedroom, crime scene, ## ambiant lighting, moody lighting, vibrant"' \
-i 'scheduler="EulerAncestralDiscrete"' \
-i 'num_outputs=1' \
-i 'guidance_scale=7.5' \
-i '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"' \
-i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/dreamshaper-v6@sha256:8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "illustration, high resolution, 8k, 16k, high quality, realistic, real, ### Depict an open (messy) black brief case containing everyday work items for a business man, items all over the floor, phone, head phones, bedroom, crime scene, ## ambiant lighting, moody lighting, vibrant", "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 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.0022. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2023-06-01T17:22:31.301158Z",
"created_at": "2023-06-01T17:22:28.279697Z",
"data_removed": false,
"error": null,
"id": "ljqqln7r6jejhlkk6h6xacn45a",
"input": {
"width": "512",
"height": "768",
"prompt": "illustration, high resolution, 8k, 16k, high quality, realistic, real, ### Depict an open (messy) black brief case containing everyday work items for a business man, items all over the floor, phone, head phones, bedroom, crime scene, ## ambiant lighting, moody lighting, vibrant",
"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: 31927\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:01, 14.29it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 15.48it/s]\n 20%|██ | 6/30 [00:00<00:01, 15.51it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 15.55it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 15.57it/s]\n 40%|████ | 12/30 [00:00<00:01, 15.71it/s]\n 47%|████▋ | 14/30 [00:00<00:01, 15.76it/s]\n 53%|█████▎ | 16/30 [00:01<00:00, 15.83it/s]\n 60%|██████ | 18/30 [00:01<00:00, 15.63it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 15.04it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 15.39it/s]\n 80%|████████ | 24/30 [00:01<00:00, 15.73it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 16.19it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 16.46it/s]\n100%|██████████| 30/30 [00:01<00:00, 15.84it/s]\n100%|██████████| 30/30 [00:01<00:00, 15.69it/s]",
"metrics": {
"predict_time": 3.081191,
"total_time": 3.021461
},
"output": [
"https://replicate.delivery/pbxt/by5ffLwdy3hJgEgm0ffxPRZmEGQTPPhr9neJEO0TAhz16CNIC/out-0.png"
],
"started_at": "2023-06-01T17:22:28.219967Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ljqqln7r6jejhlkk6h6xacn45a",
"cancel": "https://api.replicate.com/v1/predictions/ljqqln7r6jejhlkk6h6xacn45a/cancel"
},
"version": "8b0deb0306a54dec7c6e5c955b83320f5d8b7fc659769667e0e71e56d0f488ed"
}
Using seed: 31927
0%| | 0/30 [00:00<?, ?it/s]
7%|▋ | 2/30 [00:00<00:01, 14.29it/s]
13%|█▎ | 4/30 [00:00<00:01, 15.48it/s]
20%|██ | 6/30 [00:00<00:01, 15.51it/s]
27%|██▋ | 8/30 [00:00<00:01, 15.55it/s]
33%|███▎ | 10/30 [00:00<00:01, 15.57it/s]
40%|████ | 12/30 [00:00<00:01, 15.71it/s]
47%|████▋ | 14/30 [00:00<00:01, 15.76it/s]
53%|█████▎ | 16/30 [00:01<00:00, 15.83it/s]
60%|██████ | 18/30 [00:01<00:00, 15.63it/s]
67%|██████▋ | 20/30 [00:01<00:00, 15.04it/s]
73%|███████▎ | 22/30 [00:01<00:00, 15.39it/s]
80%|████████ | 24/30 [00:01<00:00, 15.73it/s]
87%|████████▋ | 26/30 [00:01<00:00, 16.19it/s]
93%|█████████▎| 28/30 [00:01<00:00, 16.46it/s]
100%|██████████| 30/30 [00:01<00:00, 15.84it/s]
100%|██████████| 30/30 [00:01<00:00, 15.69it/s]
This model costs approximately $0.0022 to run on Replicate, or 454 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 2 seconds.
This model doesn't have a readme.
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Using seed: 31927
0%| | 0/30 [00:00<?, ?it/s]
7%|▋ | 2/30 [00:00<00:01, 14.29it/s]
13%|█▎ | 4/30 [00:00<00:01, 15.48it/s]
20%|██ | 6/30 [00:00<00:01, 15.51it/s]
27%|██▋ | 8/30 [00:00<00:01, 15.55it/s]
33%|███▎ | 10/30 [00:00<00:01, 15.57it/s]
40%|████ | 12/30 [00:00<00:01, 15.71it/s]
47%|████▋ | 14/30 [00:00<00:01, 15.76it/s]
53%|█████▎ | 16/30 [00:01<00:00, 15.83it/s]
60%|██████ | 18/30 [00:01<00:00, 15.63it/s]
67%|██████▋ | 20/30 [00:01<00:00, 15.04it/s]
73%|███████▎ | 22/30 [00:01<00:00, 15.39it/s]
80%|████████ | 24/30 [00:01<00:00, 15.73it/s]
87%|████████▋ | 26/30 [00:01<00:00, 16.19it/s]
93%|█████████▎| 28/30 [00:01<00:00, 16.46it/s]
100%|██████████| 30/30 [00:01<00:00, 15.84it/s]
100%|██████████| 30/30 [00:01<00:00, 15.69it/s]