pagebrain / dreamshaper-v8
T4 GPU, negative embeddings, img2img, inpainting, safety checker, KarrasDPM, pruned fp16 safetensor (Updated 1 year, 9 months ago)
Prediction
pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703IDzmzdxbbbcxtuhmmbi2e3ra4uaqStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 1584580292
- width
- "576"
- height
- "1024"
- prompt
- masterpiece, (photorealistic:1.4), best quality, beautiful lighting, lucy (cyberpunk), 1girl, white hair, against railing, arm rest, bangs, bare shoulders, belt, black belt, black leotard, black pants, blurry, bob cut, breasts, building, cityscape, clothing cutout, (cropped jacket), cyberpunk, depth of field, from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, (mechanical parts)
- 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
{ "seed": 1584580292, "width": "576", "height": "1024", "prompt": "masterpiece, (photorealistic:1.4), best quality, beautiful lighting, lucy (cyberpunk), 1girl, white hair, against railing, arm rest, bangs, bare shoulders, belt, black belt, black leotard, black pants, blurry, bob cut, breasts, building, cityscape, clothing cutout, (cropped jacket), cyberpunk, depth of field, from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, (mechanical parts)", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", { input: { seed: 1584580292, width: "576", height: "1024", prompt: "masterpiece, (photorealistic:1.4), best quality, beautiful lighting, lucy (cyberpunk), 1girl, white hair, against railing, arm rest, bangs, bare shoulders, belt, black belt, black leotard, black pants, blurry, bob cut, breasts, building, cityscape, clothing cutout, (cropped jacket), cyberpunk, depth of field, from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, (mechanical parts)", 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", input={ "seed": 1584580292, "width": "576", "height": "1024", "prompt": "masterpiece, (photorealistic:1.4), best quality, beautiful lighting, lucy (cyberpunk), 1girl, white hair, against railing, arm rest, bangs, bare shoulders, belt, black belt, black leotard, black pants, blurry, bob cut, breasts, building, cityscape, clothing cutout, (cropped jacket), cyberpunk, depth of field, from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, (mechanical parts)", "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.
Run pagebrain/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": "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", "input": { "seed": 1584580292, "width": "576", "height": "1024", "prompt": "masterpiece, (photorealistic:1.4), best quality, beautiful lighting, lucy (cyberpunk), 1girl, white hair, against railing, arm rest, bangs, bare shoulders, belt, black belt, black leotard, black pants, blurry, bob cut, breasts, building, cityscape, clothing cutout, (cropped jacket), cyberpunk, depth of field, from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, (mechanical parts)", "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.
Output
{ "completed_at": "2023-09-06T21:39:08.597639Z", "created_at": "2023-09-06T21:38:46.340784Z", "data_removed": false, "error": null, "id": "zmzdxbbbcxtuhmmbi2e3ra4uaq", "input": { "seed": 1584580292, "width": "576", "height": "1024", "prompt": "masterpiece, (photorealistic:1.4), best quality, beautiful lighting, lucy (cyberpunk), 1girl, white hair, against railing, arm rest, bangs, bare shoulders, belt, black belt, black leotard, black pants, blurry, bob cut, breasts, building, cityscape, clothing cutout, (cropped jacket), cyberpunk, depth of field, from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, (mechanical parts)", "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: 1584580292\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, ( mechanical parts )']\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:19, 1.49it/s]\n 7%|▋ | 2/30 [00:01<00:18, 1.49it/s]\n 10%|█ | 3/30 [00:01<00:17, 1.51it/s]\n 13%|█▎ | 4/30 [00:02<00:17, 1.50it/s]\n 17%|█▋ | 5/30 [00:03<00:16, 1.49it/s]\n 20%|██ | 6/30 [00:04<00:16, 1.50it/s]\n 23%|██▎ | 7/30 [00:04<00:15, 1.49it/s]\n 27%|██▋ | 8/30 [00:05<00:14, 1.48it/s]\n 30%|███ | 9/30 [00:06<00:14, 1.49it/s]\n 33%|███▎ | 10/30 [00:06<00:13, 1.48it/s]\n 37%|███▋ | 11/30 [00:07<00:12, 1.48it/s]\n 40%|████ | 12/30 [00:08<00:12, 1.49it/s]\n 43%|████▎ | 13/30 [00:08<00:11, 1.48it/s]\n 47%|████▋ | 14/30 [00:09<00:10, 1.48it/s]\n 50%|█████ | 15/30 [00:10<00:10, 1.47it/s]\n 53%|█████▎ | 16/30 [00:10<00:09, 1.47it/s]\n 57%|█████▋ | 17/30 [00:11<00:08, 1.46it/s]\n 60%|██████ | 18/30 [00:12<00:08, 1.47it/s]\n 63%|██████▎ | 19/30 [00:12<00:07, 1.46it/s]\n 67%|██████▋ | 20/30 [00:13<00:06, 1.46it/s]\n 70%|███████ | 21/30 [00:14<00:06, 1.46it/s]\n 73%|███████▎ | 22/30 [00:14<00:05, 1.46it/s]\n 77%|███████▋ | 23/30 [00:15<00:04, 1.45it/s]\n 80%|████████ | 24/30 [00:16<00:04, 1.45it/s]\n 83%|████████▎ | 25/30 [00:16<00:03, 1.44it/s]\n 87%|████████▋ | 26/30 [00:17<00:02, 1.44it/s]\n 90%|█████████ | 27/30 [00:18<00:02, 1.44it/s]\n 93%|█████████▎| 28/30 [00:19<00:01, 1.44it/s]\n 97%|█████████▋| 29/30 [00:19<00:00, 1.44it/s]\n100%|██████████| 30/30 [00:20<00:00, 1.43it/s]\n100%|██████████| 30/30 [00:20<00:00, 1.46it/s]", "metrics": { "predict_time": 22.298377, "total_time": 22.256855 }, "output": [ "https://replicate.delivery/pbxt/5mseT0EaKDWrBCKxMCUacvDbuKjM7NmvmhG8deZ7smV7NqhRA/out-0.png" ], "started_at": "2023-09-06T21:38:46.299262Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zmzdxbbbcxtuhmmbi2e3ra4uaq", "cancel": "https://api.replicate.com/v1/predictions/zmzdxbbbcxtuhmmbi2e3ra4uaq/cancel" }, "version": "5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703" }
Generated inUsing seed: 1584580292 The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['from side, gradient eyes, grey eyes, grey hair, white jacket, leotard, lips, long sleeves, looking afar, looking ahead, ( mechanical parts )'] 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:19, 1.49it/s] 7%|▋ | 2/30 [00:01<00:18, 1.49it/s] 10%|█ | 3/30 [00:01<00:17, 1.51it/s] 13%|█▎ | 4/30 [00:02<00:17, 1.50it/s] 17%|█▋ | 5/30 [00:03<00:16, 1.49it/s] 20%|██ | 6/30 [00:04<00:16, 1.50it/s] 23%|██▎ | 7/30 [00:04<00:15, 1.49it/s] 27%|██▋ | 8/30 [00:05<00:14, 1.48it/s] 30%|███ | 9/30 [00:06<00:14, 1.49it/s] 33%|███▎ | 10/30 [00:06<00:13, 1.48it/s] 37%|███▋ | 11/30 [00:07<00:12, 1.48it/s] 40%|████ | 12/30 [00:08<00:12, 1.49it/s] 43%|████▎ | 13/30 [00:08<00:11, 1.48it/s] 47%|████▋ | 14/30 [00:09<00:10, 1.48it/s] 50%|█████ | 15/30 [00:10<00:10, 1.47it/s] 53%|█████▎ | 16/30 [00:10<00:09, 1.47it/s] 57%|█████▋ | 17/30 [00:11<00:08, 1.46it/s] 60%|██████ | 18/30 [00:12<00:08, 1.47it/s] 63%|██████▎ | 19/30 [00:12<00:07, 1.46it/s] 67%|██████▋ | 20/30 [00:13<00:06, 1.46it/s] 70%|███████ | 21/30 [00:14<00:06, 1.46it/s] 73%|███████▎ | 22/30 [00:14<00:05, 1.46it/s] 77%|███████▋ | 23/30 [00:15<00:04, 1.45it/s] 80%|████████ | 24/30 [00:16<00:04, 1.45it/s] 83%|████████▎ | 25/30 [00:16<00:03, 1.44it/s] 87%|████████▋ | 26/30 [00:17<00:02, 1.44it/s] 90%|█████████ | 27/30 [00:18<00:02, 1.44it/s] 93%|█████████▎| 28/30 [00:19<00:01, 1.44it/s] 97%|█████████▋| 29/30 [00:19<00:00, 1.44it/s] 100%|██████████| 30/30 [00:20<00:00, 1.43it/s] 100%|██████████| 30/30 [00:20<00:00, 1.46it/s]
Prediction
pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703IDjruo34rbrrebbrrp3b6zyjr46mStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 4161553119
- width
- 576
- height
- 1024
- prompt
- black dragonborn, solo, red eyes, male, upper body, male focus, horns, cape, armor, glowing, glowing eyes , volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur, realistic:1.3) , ((masterpiece, best quality)), art by greg rutkowski
- scheduler
- K_EULER_ANCESTRAL
- num_outputs
- 1
- guidance_scale
- 8
- 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
- 20
{ "seed": 4161553119, "width": 576, "height": 1024, "prompt": "black dragonborn, solo, red eyes, male, upper body, male focus, horns, cape, armor, glowing, glowing eyes , volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur, realistic:1.3) , ((masterpiece, best quality)), art by greg rutkowski ", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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": 20 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", { input: { seed: 4161553119, width: 576, height: 1024, prompt: "black dragonborn, solo, red eyes, male, upper body, male focus, horns, cape, armor, glowing, glowing eyes , volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur, realistic:1.3) , ((masterpiece, best quality)), art by greg rutkowski ", scheduler: "K_EULER_ANCESTRAL", num_outputs: 1, guidance_scale: 8, 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: 20 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", input={ "seed": 4161553119, "width": 576, "height": 1024, "prompt": "black dragonborn, solo, red eyes, male, upper body, male focus, horns, cape, armor, glowing, glowing eyes , volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur, realistic:1.3) , ((masterpiece, best quality)), art by greg rutkowski ", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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": 20 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run pagebrain/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": "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", "input": { "seed": 4161553119, "width": 576, "height": 1024, "prompt": "black dragonborn, solo, red eyes, male, upper body, male focus, horns, cape, armor, glowing, glowing eyes , volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur, realistic:1.3) , ((masterpiece, best quality)), art by greg rutkowski ", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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": 20 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-07T05:13:54.413189Z", "created_at": "2023-09-07T05:13:41.222745Z", "data_removed": false, "error": null, "id": "jruo34rbrrebbrrp3b6zyjr46m", "input": { "seed": 4161553119, "width": 576, "height": 1024, "prompt": "black dragonborn, solo, red eyes, male, upper body, male focus, horns, cape, armor, glowing, glowing eyes , volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur, realistic:1.3) , ((masterpiece, best quality)), art by greg rutkowski ", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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": 20 }, "logs": "Using seed: 4161553119\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:12, 1.51it/s]\n 10%|█ | 2/20 [00:01<00:10, 1.65it/s]\n 15%|█▌ | 3/20 [00:01<00:10, 1.69it/s]\n 20%|██ | 4/20 [00:02<00:09, 1.71it/s]\n 25%|██▌ | 5/20 [00:02<00:08, 1.73it/s]\n 30%|███ | 6/20 [00:03<00:08, 1.74it/s]\n 35%|███▌ | 7/20 [00:04<00:07, 1.74it/s]\n 40%|████ | 8/20 [00:04<00:06, 1.74it/s]\n 45%|████▌ | 9/20 [00:05<00:06, 1.74it/s]\n 50%|█████ | 10/20 [00:05<00:05, 1.74it/s]\n 55%|█████▌ | 11/20 [00:06<00:05, 1.74it/s]\n 60%|██████ | 12/20 [00:06<00:04, 1.74it/s]\n 65%|██████▌ | 13/20 [00:07<00:04, 1.74it/s]\n 70%|███████ | 14/20 [00:08<00:03, 1.74it/s]\n 75%|███████▌ | 15/20 [00:08<00:02, 1.74it/s]\n 80%|████████ | 16/20 [00:09<00:02, 1.74it/s]\n 85%|████████▌ | 17/20 [00:09<00:01, 1.74it/s]\n 90%|█████████ | 18/20 [00:10<00:01, 1.74it/s]\n 95%|█████████▌| 19/20 [00:10<00:00, 1.74it/s]\n100%|██████████| 20/20 [00:11<00:00, 1.74it/s]\n100%|██████████| 20/20 [00:11<00:00, 1.73it/s]", "metrics": { "predict_time": 13.247216, "total_time": 13.190444 }, "output": [ "https://replicate.delivery/pbxt/noSBBeP78r1DbS6jTIuaY8DnvujHgKsC0iYXEHQNfBhR4whRA/out-0.png" ], "started_at": "2023-09-07T05:13:41.165973Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/jruo34rbrrebbrrp3b6zyjr46m", "cancel": "https://api.replicate.com/v1/predictions/jruo34rbrrebbrrp3b6zyjr46m/cancel" }, "version": "5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703" }
Generated inUsing seed: 4161553119 0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:12, 1.51it/s] 10%|█ | 2/20 [00:01<00:10, 1.65it/s] 15%|█▌ | 3/20 [00:01<00:10, 1.69it/s] 20%|██ | 4/20 [00:02<00:09, 1.71it/s] 25%|██▌ | 5/20 [00:02<00:08, 1.73it/s] 30%|███ | 6/20 [00:03<00:08, 1.74it/s] 35%|███▌ | 7/20 [00:04<00:07, 1.74it/s] 40%|████ | 8/20 [00:04<00:06, 1.74it/s] 45%|████▌ | 9/20 [00:05<00:06, 1.74it/s] 50%|█████ | 10/20 [00:05<00:05, 1.74it/s] 55%|█████▌ | 11/20 [00:06<00:05, 1.74it/s] 60%|██████ | 12/20 [00:06<00:04, 1.74it/s] 65%|██████▌ | 13/20 [00:07<00:04, 1.74it/s] 70%|███████ | 14/20 [00:08<00:03, 1.74it/s] 75%|███████▌ | 15/20 [00:08<00:02, 1.74it/s] 80%|████████ | 16/20 [00:09<00:02, 1.74it/s] 85%|████████▌ | 17/20 [00:09<00:01, 1.74it/s] 90%|█████████ | 18/20 [00:10<00:01, 1.74it/s] 95%|█████████▌| 19/20 [00:10<00:00, 1.74it/s] 100%|██████████| 20/20 [00:11<00:00, 1.74it/s] 100%|██████████| 20/20 [00:11<00:00, 1.73it/s]
Prediction
pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703IDvjwc6rbbbezgnniygzohmx4jfiStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 5775713
- width
- "576"
- height
- "1024"
- prompt
- (masterpiece), (extremely intricate:1.3), (realistic), portrait of a girl, the most beautiful in the world, (medieval armor), metal reflections, upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, octane render unreal engine, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail
- 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
{ "seed": 5775713, "width": "576", "height": "1024", "prompt": "(masterpiece), (extremely intricate:1.3), (realistic), portrait of a girl, the most beautiful in the world, (medieval armor), metal reflections, upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, octane render unreal engine, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail", "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", { input: { seed: 5775713, width: "576", height: "1024", prompt: "(masterpiece), (extremely intricate:1.3), (realistic), portrait of a girl, the most beautiful in the world, (medieval armor), metal reflections, upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, octane render unreal engine, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail", 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", input={ "seed": 5775713, "width": "576", "height": "1024", "prompt": "(masterpiece), (extremely intricate:1.3), (realistic), portrait of a girl, the most beautiful in the world, (medieval armor), metal reflections, upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, octane render unreal engine, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail", "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.
Run pagebrain/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": "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", "input": { "seed": 5775713, "width": "576", "height": "1024", "prompt": "(masterpiece), (extremely intricate:1.3), (realistic), portrait of a girl, the most beautiful in the world, (medieval armor), metal reflections, upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, octane render unreal engine, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail", "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.
Output
{ "completed_at": "2023-09-06T21:37:15.007456Z", "created_at": "2023-09-06T21:36:49.068046Z", "data_removed": false, "error": null, "id": "vjwc6rbbbezgnniygzohmx4jfi", "input": { "seed": 5775713, "width": "576", "height": "1024", "prompt": "(masterpiece), (extremely intricate:1.3), (realistic), portrait of a girl, the most beautiful in the world, (medieval armor), metal reflections, upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, octane render unreal engine, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail", "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: 5775713\nToken indices sequence length is longer than the specified maximum sequence length for this model (104 > 77). Running this sequence through the model will result in indexing errors\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur : 1. 3 ), chainmail']\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:03<01:38, 3.38s/it]\n 7%|▋ | 2/30 [00:03<00:49, 1.75s/it]\n 10%|█ | 3/30 [00:04<00:33, 1.23s/it]\n 13%|█▎ | 4/30 [00:05<00:25, 1.01it/s]\n 17%|█▋ | 5/30 [00:05<00:21, 1.18it/s]\n 20%|██ | 6/30 [00:06<00:18, 1.30it/s]\n 23%|██▎ | 7/30 [00:07<00:16, 1.39it/s]\n 27%|██▋ | 8/30 [00:07<00:15, 1.46it/s]\n 30%|███ | 9/30 [00:08<00:13, 1.50it/s]\n 33%|███▎ | 10/30 [00:08<00:12, 1.54it/s]\n 37%|███▋ | 11/30 [00:09<00:12, 1.56it/s]\n 40%|████ | 12/30 [00:10<00:11, 1.58it/s]\n 43%|████▎ | 13/30 [00:10<00:10, 1.59it/s]\n 47%|████▋ | 14/30 [00:11<00:10, 1.60it/s]\n 50%|█████ | 15/30 [00:11<00:09, 1.60it/s]\n 53%|█████▎ | 16/30 [00:12<00:08, 1.60it/s]\n 57%|█████▋ | 17/30 [00:13<00:08, 1.60it/s]\n 60%|██████ | 18/30 [00:13<00:07, 1.60it/s]\n 63%|██████▎ | 19/30 [00:14<00:06, 1.59it/s]\n 67%|██████▋ | 20/30 [00:15<00:06, 1.59it/s]\n 70%|███████ | 21/30 [00:15<00:05, 1.59it/s]\n 73%|███████▎ | 22/30 [00:16<00:05, 1.59it/s]\n 77%|███████▋ | 23/30 [00:17<00:04, 1.59it/s]\n 80%|████████ | 24/30 [00:17<00:03, 1.59it/s]\n 83%|████████▎ | 25/30 [00:18<00:03, 1.58it/s]\n 87%|████████▋ | 26/30 [00:18<00:02, 1.58it/s]\n 90%|█████████ | 27/30 [00:19<00:01, 1.58it/s]\n 93%|█████████▎| 28/30 [00:20<00:01, 1.58it/s]\n 97%|█████████▋| 29/30 [00:20<00:00, 1.58it/s]\n100%|██████████| 30/30 [00:21<00:00, 1.57it/s]\n100%|██████████| 30/30 [00:21<00:00, 1.40it/s]", "metrics": { "predict_time": 24.773704, "total_time": 25.93941 }, "output": [ "https://replicate.delivery/pbxt/2qLHofTH3D3feJit9xpPSFewKeNr6fxtEefkS7Zky3RgKMqhRA/out-0.png" ], "started_at": "2023-09-06T21:36:50.233752Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vjwc6rbbbezgnniygzohmx4jfi", "cancel": "https://api.replicate.com/v1/predictions/vjwc6rbbbezgnniygzohmx4jfi/cancel" }, "version": "5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703" }
Generated inUsing seed: 5775713 Token indices sequence length is longer than the specified maximum sequence length for this model (104 > 77). Running this sequence through the model will result in indexing errors The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur : 1. 3 ), chainmail'] 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:03<01:38, 3.38s/it] 7%|▋ | 2/30 [00:03<00:49, 1.75s/it] 10%|█ | 3/30 [00:04<00:33, 1.23s/it] 13%|█▎ | 4/30 [00:05<00:25, 1.01it/s] 17%|█▋ | 5/30 [00:05<00:21, 1.18it/s] 20%|██ | 6/30 [00:06<00:18, 1.30it/s] 23%|██▎ | 7/30 [00:07<00:16, 1.39it/s] 27%|██▋ | 8/30 [00:07<00:15, 1.46it/s] 30%|███ | 9/30 [00:08<00:13, 1.50it/s] 33%|███▎ | 10/30 [00:08<00:12, 1.54it/s] 37%|███▋ | 11/30 [00:09<00:12, 1.56it/s] 40%|████ | 12/30 [00:10<00:11, 1.58it/s] 43%|████▎ | 13/30 [00:10<00:10, 1.59it/s] 47%|████▋ | 14/30 [00:11<00:10, 1.60it/s] 50%|█████ | 15/30 [00:11<00:09, 1.60it/s] 53%|█████▎ | 16/30 [00:12<00:08, 1.60it/s] 57%|█████▋ | 17/30 [00:13<00:08, 1.60it/s] 60%|██████ | 18/30 [00:13<00:07, 1.60it/s] 63%|██████▎ | 19/30 [00:14<00:06, 1.59it/s] 67%|██████▋ | 20/30 [00:15<00:06, 1.59it/s] 70%|███████ | 21/30 [00:15<00:05, 1.59it/s] 73%|███████▎ | 22/30 [00:16<00:05, 1.59it/s] 77%|███████▋ | 23/30 [00:17<00:04, 1.59it/s] 80%|████████ | 24/30 [00:17<00:03, 1.59it/s] 83%|████████▎ | 25/30 [00:18<00:03, 1.58it/s] 87%|████████▋ | 26/30 [00:18<00:02, 1.58it/s] 90%|█████████ | 27/30 [00:19<00:01, 1.58it/s] 93%|█████████▎| 28/30 [00:20<00:01, 1.58it/s] 97%|█████████▋| 29/30 [00:20<00:00, 1.58it/s] 100%|██████████| 30/30 [00:21<00:00, 1.57it/s] 100%|██████████| 30/30 [00:21<00:00, 1.40it/s]
Prediction
pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703IDihn3dcjbxdn2lrb73q5uiimliyStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 3944324357
- width
- 576
- height
- 1024
- prompt
- portrait, action pose, slow motion, (old male human wizard:1.2) old male human wizard wearing yellow and black robes (majestic evoker cloth armor:1.2), (wrinkles, steampunk), (archmage robes, runic patterns:1.2), (insanely detailed, bloom:1.5), (analog:1.2), (high sharpness), (detailed pupils:1.1), (painting:1.1), (digital painting:1), detailed face and eyes, Masterpiece, best quality, (highly detailed photo:1.1), 8k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, (60-year old Austrian male:1.1), sharp, (older body:1.1), stocky, realistic, real shadow 3d, (highest quality), (concept art, 4k), (wizard labratory in backgound:1.2), by Michelangelo and Alessandro Casagrande and Greg Rutkowski and Sally Mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by (arnold schwarzenegger:1.001) and (Dolph Lundgren:1.001) and (Albert Einstien:1.001)
- scheduler
- K_EULER_ANCESTRAL
- num_outputs
- 1
- guidance_scale
- 8
- 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
{ "seed": 3944324357, "width": 576, "height": 1024, "prompt": "portrait, action pose, slow motion, (old male human wizard:1.2) old male human wizard wearing yellow and black robes (majestic evoker cloth armor:1.2), (wrinkles, steampunk), (archmage robes, runic patterns:1.2), (insanely detailed, bloom:1.5), (analog:1.2), (high sharpness), (detailed pupils:1.1), (painting:1.1), (digital painting:1), detailed face and eyes, Masterpiece, best quality, (highly detailed photo:1.1), 8k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, (60-year old Austrian male:1.1), sharp, (older body:1.1), stocky, realistic, real shadow 3d, (highest quality), (concept art, 4k), (wizard labratory in backgound:1.2), by Michelangelo and Alessandro Casagrande and Greg Rutkowski and Sally Mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by (arnold schwarzenegger:1.001) and (Dolph Lundgren:1.001) and (Albert Einstien:1.001)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", { input: { seed: 3944324357, width: 576, height: 1024, prompt: "portrait, action pose, slow motion, (old male human wizard:1.2) old male human wizard wearing yellow and black robes (majestic evoker cloth armor:1.2), (wrinkles, steampunk), (archmage robes, runic patterns:1.2), (insanely detailed, bloom:1.5), (analog:1.2), (high sharpness), (detailed pupils:1.1), (painting:1.1), (digital painting:1), detailed face and eyes, Masterpiece, best quality, (highly detailed photo:1.1), 8k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, (60-year old Austrian male:1.1), sharp, (older body:1.1), stocky, realistic, real shadow 3d, (highest quality), (concept art, 4k), (wizard labratory in backgound:1.2), by Michelangelo and Alessandro Casagrande and Greg Rutkowski and Sally Mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by (arnold schwarzenegger:1.001) and (Dolph Lundgren:1.001) and (Albert Einstien:1.001)", scheduler: "K_EULER_ANCESTRAL", num_outputs: 1, guidance_scale: 8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run pagebrain/dreamshaper-v8 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", input={ "seed": 3944324357, "width": 576, "height": 1024, "prompt": "portrait, action pose, slow motion, (old male human wizard:1.2) old male human wizard wearing yellow and black robes (majestic evoker cloth armor:1.2), (wrinkles, steampunk), (archmage robes, runic patterns:1.2), (insanely detailed, bloom:1.5), (analog:1.2), (high sharpness), (detailed pupils:1.1), (painting:1.1), (digital painting:1), detailed face and eyes, Masterpiece, best quality, (highly detailed photo:1.1), 8k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, (60-year old Austrian male:1.1), sharp, (older body:1.1), stocky, realistic, real shadow 3d, (highest quality), (concept art, 4k), (wizard labratory in backgound:1.2), by Michelangelo and Alessandro Casagrande and Greg Rutkowski and Sally Mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by (arnold schwarzenegger:1.001) and (Dolph Lundgren:1.001) and (Albert Einstien:1.001)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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.
Run pagebrain/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": "pagebrain/dreamshaper-v8:5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703", "input": { "seed": 3944324357, "width": 576, "height": 1024, "prompt": "portrait, action pose, slow motion, (old male human wizard:1.2) old male human wizard wearing yellow and black robes (majestic evoker cloth armor:1.2), (wrinkles, steampunk), (archmage robes, runic patterns:1.2), (insanely detailed, bloom:1.5), (analog:1.2), (high sharpness), (detailed pupils:1.1), (painting:1.1), (digital painting:1), detailed face and eyes, Masterpiece, best quality, (highly detailed photo:1.1), 8k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, (60-year old Austrian male:1.1), sharp, (older body:1.1), stocky, realistic, real shadow 3d, (highest quality), (concept art, 4k), (wizard labratory in backgound:1.2), by Michelangelo and Alessandro Casagrande and Greg Rutkowski and Sally Mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by (arnold schwarzenegger:1.001) and (Dolph Lundgren:1.001) and (Albert Einstien:1.001)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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.
Output
{ "completed_at": "2023-09-07T05:15:10.878147Z", "created_at": "2023-09-07T05:14:51.597511Z", "data_removed": false, "error": null, "id": "ihn3dcjbxdn2lrb73q5uiimliy", "input": { "seed": 3944324357, "width": 576, "height": 1024, "prompt": "portrait, action pose, slow motion, (old male human wizard:1.2) old male human wizard wearing yellow and black robes (majestic evoker cloth armor:1.2), (wrinkles, steampunk), (archmage robes, runic patterns:1.2), (insanely detailed, bloom:1.5), (analog:1.2), (high sharpness), (detailed pupils:1.1), (painting:1.1), (digital painting:1), detailed face and eyes, Masterpiece, best quality, (highly detailed photo:1.1), 8k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, (60-year old Austrian male:1.1), sharp, (older body:1.1), stocky, realistic, real shadow 3d, (highest quality), (concept art, 4k), (wizard labratory in backgound:1.2), by Michelangelo and Alessandro Casagrande and Greg Rutkowski and Sally Mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by (arnold schwarzenegger:1.001) and (Dolph Lundgren:1.001) and (Albert Einstien:1.001)", "scheduler": "K_EULER_ANCESTRAL", "num_outputs": 1, "guidance_scale": 8, "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: 3944324357\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['sharpness ), ( detailed pupils : 1. 1 ), ( painting : 1. 1 ), ( digital painting : 1 ), detailed face and eyes, masterpiece, best quality, ( highly detailed photo : 1. 1 ), 8 k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, ( 6 0 - year old austrian male : 1. 1 ), sharp, ( older body : 1. 1 ), stocky, realistic, real shadow 3 d, ( highest quality ), ( concept art, 4 k ), ( wizard labratory in backgound : 1. 2 ), by michelangelo and alessandro casagrande and greg rutkowski and sally mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by ( arnold schwarzenegger : 1. 0 0 1 ) and ( dolph lundgren : 1. 0 0 1 ) and ( albert einstien : 1. 0 0 1 )']\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.66it/s]\n 10%|█ | 3/30 [00:01<00:15, 1.69it/s]\n 13%|█▎ | 4/30 [00:02<00:15, 1.69it/s]\n 17%|█▋ | 5/30 [00:02<00:14, 1.70it/s]\n 20%|██ | 6/30 [00:03<00:14, 1.70it/s]\n 23%|██▎ | 7/30 [00:04<00:13, 1.70it/s]\n 27%|██▋ | 8/30 [00:04<00:12, 1.70it/s]\n 30%|███ | 9/30 [00:05<00:12, 1.70it/s]\n 33%|███▎ | 10/30 [00:05<00:11, 1.70it/s]\n 37%|███▋ | 11/30 [00:06<00:11, 1.70it/s]\n 40%|████ | 12/30 [00:07<00:10, 1.70it/s]\n 43%|████▎ | 13/30 [00:07<00:09, 1.70it/s]\n 47%|████▋ | 14/30 [00:08<00:09, 1.70it/s]\n 50%|█████ | 15/30 [00:08<00:08, 1.70it/s]\n 53%|█████▎ | 16/30 [00:09<00:08, 1.70it/s]\n 57%|█████▋ | 17/30 [00:10<00:07, 1.70it/s]\n 60%|██████ | 18/30 [00:10<00:07, 1.70it/s]\n 63%|██████▎ | 19/30 [00:11<00:06, 1.69it/s]\n 67%|██████▋ | 20/30 [00:11<00:05, 1.68it/s]\n 70%|███████ | 21/30 [00:12<00:05, 1.68it/s]\n 73%|███████▎ | 22/30 [00:13<00:04, 1.68it/s]\n 77%|███████▋ | 23/30 [00:13<00:04, 1.68it/s]\n 80%|████████ | 24/30 [00:14<00:03, 1.67it/s]\n 83%|████████▎ | 25/30 [00:14<00:02, 1.68it/s]\n 87%|████████▋ | 26/30 [00:15<00:02, 1.67it/s]\n 90%|█████████ | 27/30 [00:16<00:01, 1.67it/s]\n 93%|█████████▎| 28/30 [00:16<00:01, 1.67it/s]\n 97%|█████████▋| 29/30 [00:17<00:00, 1.66it/s]\n100%|██████████| 30/30 [00:17<00:00, 1.67it/s]\n100%|██████████| 30/30 [00:17<00:00, 1.68it/s]", "metrics": { "predict_time": 19.322837, "total_time": 19.280636 }, "output": [ "https://replicate.delivery/pbxt/rv6qdfBd8AQ2GKYzwxAcf200SbSFsogXBWPsnRsfjOB9yhDjA/out-0.png" ], "started_at": "2023-09-07T05:14:51.555310Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ihn3dcjbxdn2lrb73q5uiimliy", "cancel": "https://api.replicate.com/v1/predictions/ihn3dcjbxdn2lrb73q5uiimliy/cancel" }, "version": "5829a47c216fa1a4180601d57b6905f5bc202d7bd27d1d5bd35fa8ecfb4b9703" }
Generated inUsing seed: 3944324357 The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['sharpness ), ( detailed pupils : 1. 1 ), ( painting : 1. 1 ), ( digital painting : 1 ), detailed face and eyes, masterpiece, best quality, ( highly detailed photo : 1. 1 ), 8 k, photorealistic, very long straight white and grey hair, grey streaks, ecstatic, ( 6 0 - year old austrian male : 1. 1 ), sharp, ( older body : 1. 1 ), stocky, realistic, real shadow 3 d, ( highest quality ), ( concept art, 4 k ), ( wizard labratory in backgound : 1. 2 ), by michelangelo and alessandro casagrande and greg rutkowski and sally mann and jeremy mann and sandra chevrier and maciej kuciara, inspired by ( arnold schwarzenegger : 1. 0 0 1 ) and ( dolph lundgren : 1. 0 0 1 ) and ( albert einstien : 1. 0 0 1 )'] 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.66it/s] 10%|█ | 3/30 [00:01<00:15, 1.69it/s] 13%|█▎ | 4/30 [00:02<00:15, 1.69it/s] 17%|█▋ | 5/30 [00:02<00:14, 1.70it/s] 20%|██ | 6/30 [00:03<00:14, 1.70it/s] 23%|██▎ | 7/30 [00:04<00:13, 1.70it/s] 27%|██▋ | 8/30 [00:04<00:12, 1.70it/s] 30%|███ | 9/30 [00:05<00:12, 1.70it/s] 33%|███▎ | 10/30 [00:05<00:11, 1.70it/s] 37%|███▋ | 11/30 [00:06<00:11, 1.70it/s] 40%|████ | 12/30 [00:07<00:10, 1.70it/s] 43%|████▎ | 13/30 [00:07<00:09, 1.70it/s] 47%|████▋ | 14/30 [00:08<00:09, 1.70it/s] 50%|█████ | 15/30 [00:08<00:08, 1.70it/s] 53%|█████▎ | 16/30 [00:09<00:08, 1.70it/s] 57%|█████▋ | 17/30 [00:10<00:07, 1.70it/s] 60%|██████ | 18/30 [00:10<00:07, 1.70it/s] 63%|██████▎ | 19/30 [00:11<00:06, 1.69it/s] 67%|██████▋ | 20/30 [00:11<00:05, 1.68it/s] 70%|███████ | 21/30 [00:12<00:05, 1.68it/s] 73%|███████▎ | 22/30 [00:13<00:04, 1.68it/s] 77%|███████▋ | 23/30 [00:13<00:04, 1.68it/s] 80%|████████ | 24/30 [00:14<00:03, 1.67it/s] 83%|████████▎ | 25/30 [00:14<00:02, 1.68it/s] 87%|████████▋ | 26/30 [00:15<00:02, 1.67it/s] 90%|█████████ | 27/30 [00:16<00:01, 1.67it/s] 93%|█████████▎| 28/30 [00:16<00:01, 1.67it/s] 97%|█████████▋| 29/30 [00:17<00:00, 1.66it/s] 100%|██████████| 30/30 [00:17<00:00, 1.67it/s] 100%|██████████| 30/30 [00:17<00:00, 1.68it/s]
Want to make some of these yourself?
Run this model