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.
pagebrain /dreamshaper-v7:c180b0a5
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 pagebrain/dreamshaper-v7 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pagebrain/dreamshaper-v7:c180b0a592fe7be34db228e17ab1ddea337af32bd3e297e388be74cb03656583",
{
input: {
seed: 3889919804,
width: 576,
height: 1024,
prompt: "face close up, fashion photography portrait of indian girl with blue hair, in lush jungle with flowers, 3d render, cgi, symetrical, octane render, 35mm, bokeh, 9:16, (intricate details:1.12), hdr, (intricate details, hyperdetailed:1.15), (natural skin texture, hyperrealism, soft light, sharp:1.2), detailed, sunlight passing through foliage",
scheduler: "K_EULER_ANCESTRAL",
num_outputs: 1,
guidance_scale: 9,
negative_prompt: "(worst quality:2),(low quality:2),(blurry:2),bad_prompt,text, (bad and mutated hands:1.3),(bad hands),badhandv4,mutated hands, bad anatomy, missing fingers,extra fingers,fused fingers,too many fingers,(interlocked fingers:1.2), extra limbs,malformed limbs,multiple limbs, extra arms, extra legs, long neck, cross-eyed, negative_hand, negative_hand-neg, text, label, caption, nude, nsfw, naked, explicit, porn",
prompt_strength: 0.8,
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 pagebrain/dreamshaper-v7 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pagebrain/dreamshaper-v7:c180b0a592fe7be34db228e17ab1ddea337af32bd3e297e388be74cb03656583",
input={
"seed": 3889919804,
"width": 576,
"height": 1024,
"prompt": "face close up, fashion photography portrait of indian girl with blue hair, in lush jungle with flowers, 3d render, cgi, symetrical, octane render, 35mm, bokeh, 9:16, (intricate details:1.12), hdr, (intricate details, hyperdetailed:1.15), (natural skin texture, hyperrealism, soft light, sharp:1.2), detailed, sunlight passing through foliage",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 9,
"negative_prompt": "(worst quality:2),(low quality:2),(blurry:2),bad_prompt,text, (bad and mutated hands:1.3),(bad hands),badhandv4,mutated hands, bad anatomy, missing fingers,extra fingers,fused fingers,too many fingers,(interlocked fingers:1.2), extra limbs,malformed limbs,multiple limbs, extra arms, extra legs, long neck, cross-eyed, negative_hand, negative_hand-neg, text, label, caption, nude, nsfw, naked, explicit, porn",
"prompt_strength": 0.8,
"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 pagebrain/dreamshaper-v7 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": "pagebrain/dreamshaper-v7:c180b0a592fe7be34db228e17ab1ddea337af32bd3e297e388be74cb03656583",
"input": {
"seed": 3889919804,
"width": 576,
"height": 1024,
"prompt": "face close up, fashion photography portrait of indian girl with blue hair, in lush jungle with flowers, 3d render, cgi, symetrical, octane render, 35mm, bokeh, 9:16, (intricate details:1.12), hdr, (intricate details, hyperdetailed:1.15), (natural skin texture, hyperrealism, soft light, sharp:1.2), detailed, sunlight passing through foliage",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 9,
"negative_prompt": "(worst quality:2),(low quality:2),(blurry:2),bad_prompt,text, (bad and mutated hands:1.3),(bad hands),badhandv4,mutated hands, bad anatomy, missing fingers,extra fingers,fused fingers,too many fingers,(interlocked fingers:1.2), extra limbs,malformed limbs,multiple limbs, extra arms, extra legs, long neck, cross-eyed, negative_hand, negative_hand-neg, text, label, caption, nude, nsfw, naked, explicit, porn",
"prompt_strength": 0.8,
"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-09-07T06:17:04.344585Z",
"created_at": "2023-09-07T06:16:45.302962Z",
"data_removed": false,
"error": null,
"id": "fp44f5bbllgcaq664s3le656fu",
"input": {
"seed": 3889919804,
"width": 576,
"height": 1024,
"prompt": "face close up, fashion photography portrait of indian girl with blue hair, in lush jungle with flowers, 3d render, cgi, symetrical, octane render, 35mm, bokeh, 9:16, (intricate details:1.12), hdr, (intricate details, hyperdetailed:1.15), (natural skin texture, hyperrealism, soft light, sharp:1.2), detailed, sunlight passing through foliage",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 9,
"negative_prompt": "(worst quality:2),(low quality:2),(blurry:2),bad_prompt,text, (bad and mutated hands:1.3),(bad hands),badhandv4,mutated hands, bad anatomy, missing fingers,extra fingers,fused fingers,too many fingers,(interlocked fingers:1.2), extra limbs,malformed limbs,multiple limbs, extra arms, extra legs, long neck, cross-eyed, negative_hand, negative_hand-neg, text, label, caption, nude, nsfw, naked, explicit, porn",
"prompt_strength": 0.8,
"num_inference_steps": 30
},
"logs": "Using seed: 3889919804\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['soft light, sharp : 1. 2 ), detailed, sunlight passing through foliage']\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:18, 1.58it/s]\n 7%|▋ | 2/30 [00:01<00:16, 1.68it/s]\n 10%|█ | 3/30 [00:01<00:15, 1.71it/s]\n 13%|█▎ | 4/30 [00:02<00:15, 1.72it/s]\n 17%|█▋ | 5/30 [00:02<00:14, 1.73it/s]\n 20%|██ | 6/30 [00:03<00:13, 1.73it/s]\n 23%|██▎ | 7/30 [00:04<00:13, 1.74it/s]\n 27%|██▋ | 8/30 [00:04<00:12, 1.73it/s]\n 30%|███ | 9/30 [00:05<00:12, 1.74it/s]\n 33%|███▎ | 10/30 [00:05<00:11, 1.73it/s]\n 37%|███▋ | 11/30 [00:06<00:10, 1.73it/s]\n 40%|████ | 12/30 [00:06<00:10, 1.73it/s]\n 43%|████▎ | 13/30 [00:07<00:09, 1.73it/s]\n 47%|████▋ | 14/30 [00:08<00:09, 1.73it/s]\n 50%|█████ | 15/30 [00:08<00:08, 1.73it/s]\n 53%|█████▎ | 16/30 [00:09<00:08, 1.73it/s]\n 57%|█████▋ | 17/30 [00:09<00:07, 1.73it/s]\n 60%|██████ | 18/30 [00:10<00:06, 1.73it/s]\n 63%|██████▎ | 19/30 [00:11<00:06, 1.73it/s]\n 67%|██████▋ | 20/30 [00:11<00:05, 1.73it/s]\n 70%|███████ | 21/30 [00:12<00:05, 1.73it/s]\n 73%|███████▎ | 22/30 [00:12<00:04, 1.73it/s]\n 77%|███████▋ | 23/30 [00:13<00:04, 1.73it/s]\n 80%|████████ | 24/30 [00:13<00:03, 1.73it/s]\n 83%|████████▎ | 25/30 [00:14<00:02, 1.73it/s]\n 87%|████████▋ | 26/30 [00:15<00:02, 1.73it/s]\n 90%|█████████ | 27/30 [00:15<00:01, 1.73it/s]\n 93%|█████████▎| 28/30 [00:16<00:01, 1.72it/s]\n 97%|█████████▋| 29/30 [00:16<00:00, 1.73it/s]\n100%|██████████| 30/30 [00:17<00:00, 1.73it/s]\n100%|██████████| 30/30 [00:17<00:00, 1.73it/s]",
"metrics": {
"predict_time": 19.072349,
"total_time": 19.041623
},
"output": [
"https://pbxt.replicate.delivery/nq44eVAeZeU3eTTgHjwZlTOdLf1pOLLFEwglm7tMo2D4bOOMC/out-0.png"
],
"started_at": "2023-09-07T06:16:45.272236Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fp44f5bbllgcaq664s3le656fu",
"cancel": "https://api.replicate.com/v1/predictions/fp44f5bbllgcaq664s3le656fu/cancel"
},
"version": "c180b0a592fe7be34db228e17ab1ddea337af32bd3e297e388be74cb03656583"
}
Using seed: 3889919804
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['soft light, sharp : 1. 2 ), detailed, sunlight passing through foliage']
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:18, 1.58it/s]
7%|▋ | 2/30 [00:01<00:16, 1.68it/s]
10%|█ | 3/30 [00:01<00:15, 1.71it/s]
13%|█▎ | 4/30 [00:02<00:15, 1.72it/s]
17%|█▋ | 5/30 [00:02<00:14, 1.73it/s]
20%|██ | 6/30 [00:03<00:13, 1.73it/s]
23%|██▎ | 7/30 [00:04<00:13, 1.74it/s]
27%|██▋ | 8/30 [00:04<00:12, 1.73it/s]
30%|███ | 9/30 [00:05<00:12, 1.74it/s]
33%|███▎ | 10/30 [00:05<00:11, 1.73it/s]
37%|███▋ | 11/30 [00:06<00:10, 1.73it/s]
40%|████ | 12/30 [00:06<00:10, 1.73it/s]
43%|████▎ | 13/30 [00:07<00:09, 1.73it/s]
47%|████▋ | 14/30 [00:08<00:09, 1.73it/s]
50%|█████ | 15/30 [00:08<00:08, 1.73it/s]
53%|█████▎ | 16/30 [00:09<00:08, 1.73it/s]
57%|█████▋ | 17/30 [00:09<00:07, 1.73it/s]
60%|██████ | 18/30 [00:10<00:06, 1.73it/s]
63%|██████▎ | 19/30 [00:11<00:06, 1.73it/s]
67%|██████▋ | 20/30 [00:11<00:05, 1.73it/s]
70%|███████ | 21/30 [00:12<00:05, 1.73it/s]
73%|███████▎ | 22/30 [00:12<00:04, 1.73it/s]
77%|███████▋ | 23/30 [00:13<00:04, 1.73it/s]
80%|████████ | 24/30 [00:13<00:03, 1.73it/s]
83%|████████▎ | 25/30 [00:14<00:02, 1.73it/s]
87%|████████▋ | 26/30 [00:15<00:02, 1.73it/s]
90%|█████████ | 27/30 [00:15<00:01, 1.73it/s]
93%|█████████▎| 28/30 [00:16<00:01, 1.72it/s]
97%|█████████▋| 29/30 [00:16<00:00, 1.73it/s]
100%|██████████| 30/30 [00:17<00:00, 1.73it/s]
100%|██████████| 30/30 [00:17<00:00, 1.73it/s]