mcai
/
rpg-v4
Generate a new image given any input text with RPG V4
- Public
- 58.5K runs
-
A100 (80GB)
Prediction
mcai/rpg-v4:a2d69f99ModelID3eeu44blgfchlh5rr7m5pq67feStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 768
- prompt
- full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy
- num_inference_steps
- 30
{ "width": 512, "height": 768, "prompt": "full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", { input: { width: 512, height: 768, prompt: "full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", input={ "width": 512, "height": 768, "prompt": "full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mcai/rpg-v4 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": "a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", "input": { "width": 512, "height": 768, "prompt": "full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run mcai/rpg-v4 using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc \ -i 'width=512' \ -i 'height=768' \ -i 'prompt="full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art"' \ -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, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy"' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run mcai/rpg-v4 using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-05-15T16:07:43.835713Z", "created_at": "2023-05-15T16:07:34.447640Z", "data_removed": false, "error": null, "id": "3eeu44blgfchlh5rr7m5pq67fe", "input": { "width": 512, "height": 768, "prompt": "full body and head shot, handsome young adult bodybuilder man flexing, digital painting, masterpiece quality, best quality, overdetailed digital art", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }, "logs": "Using seed: 33601\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:02, 13.44it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 13.20it/s]\n 20%|██ | 6/30 [00:00<00:01, 13.93it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 13.79it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 13.93it/s]\n 40%|████ | 12/30 [00:00<00:01, 14.11it/s]\n 47%|████▋ | 14/30 [00:00<00:01, 14.31it/s]\n 53%|█████▎ | 16/30 [00:01<00:01, 13.82it/s]\n 60%|██████ | 18/30 [00:01<00:00, 14.35it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 14.45it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 14.22it/s]\n 80%|████████ | 24/30 [00:01<00:00, 14.54it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 15.08it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 15.08it/s]\n100%|██████████| 30/30 [00:02<00:00, 14.93it/s]\n100%|██████████| 30/30 [00:02<00:00, 14.39it/s]", "metrics": { "predict_time": 3.046219, "total_time": 9.388073 }, "output": [ "https://replicate.delivery/pbxt/6vJZ1Qg9Pn5QINlG5oC3CEjBCXERbc5UWOelBbW1g8wnVAeQA/out-0.png" ], "started_at": "2023-05-15T16:07:40.789494Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3eeu44blgfchlh5rr7m5pq67fe", "cancel": "https://api.replicate.com/v1/predictions/3eeu44blgfchlh5rr7m5pq67fe/cancel" }, "version": "01412d14c9124928516b83ab0970d93069b911a8e5eadc1c9bfec61851617a09" }
Generated inUsing seed: 33601 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:02, 13.44it/s] 13%|█▎ | 4/30 [00:00<00:01, 13.20it/s] 20%|██ | 6/30 [00:00<00:01, 13.93it/s] 27%|██▋ | 8/30 [00:00<00:01, 13.79it/s] 33%|███▎ | 10/30 [00:00<00:01, 13.93it/s] 40%|████ | 12/30 [00:00<00:01, 14.11it/s] 47%|████▋ | 14/30 [00:00<00:01, 14.31it/s] 53%|█████▎ | 16/30 [00:01<00:01, 13.82it/s] 60%|██████ | 18/30 [00:01<00:00, 14.35it/s] 67%|██████▋ | 20/30 [00:01<00:00, 14.45it/s] 73%|███████▎ | 22/30 [00:01<00:00, 14.22it/s] 80%|████████ | 24/30 [00:01<00:00, 14.54it/s] 87%|████████▋ | 26/30 [00:01<00:00, 15.08it/s] 93%|█████████▎| 28/30 [00:01<00:00, 15.08it/s] 100%|██████████| 30/30 [00:02<00:00, 14.93it/s] 100%|██████████| 30/30 [00:02<00:00, 14.39it/s]
Prediction
mcai/rpg-v4:a2d69f99ModelID2nhcwxvfube7xlnoimwhyhmliyStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 768
- prompt
- Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy
- num_inference_steps
- 30
{ "width": 512, "height": 768, "prompt": "Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", { input: { width: 512, height: 768, prompt: "Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", input={ "width": 512, "height": 768, "prompt": "Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mcai/rpg-v4 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": "a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", "input": { "width": 512, "height": 768, "prompt": "Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run mcai/rpg-v4 using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc \ -i 'width=512' \ -i 'height=768' \ -i 'prompt="Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image."' \ -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, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy"' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run mcai/rpg-v4 using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-05-15T16:08:51.247074Z", "created_at": "2023-05-15T16:08:42.147334Z", "data_removed": false, "error": null, "id": "2nhcwxvfube7xlnoimwhyhmliy", "input": { "width": 512, "height": 768, "prompt": "Experience a high-quality portrayal: a striking blonde model, dressed in a sea-inspired outfit. Her golden hair flows freely, her smile captivating. She stands against a simpler backdrop, her pale, detailed skin and twinkling eyes the focus of this alluring, easier-to-capture image.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }, "logs": "Using seed: 9011\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:01, 15.13it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 15.24it/s]\n 20%|██ | 6/30 [00:00<00:01, 15.05it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 15.20it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 14.33it/s]\n 40%|████ | 12/30 [00:00<00:01, 14.60it/s]\n 47%|████▋ | 14/30 [00:00<00:01, 14.75it/s]\n 53%|█████▎ | 16/30 [00:01<00:00, 14.26it/s]\n 60%|██████ | 18/30 [00:01<00:00, 14.20it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 14.81it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 14.75it/s]\n 80%|████████ | 24/30 [00:01<00:00, 15.01it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 15.01it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 15.52it/s]\n100%|██████████| 30/30 [00:01<00:00, 15.88it/s]\n100%|██████████| 30/30 [00:01<00:00, 15.03it/s]", "metrics": { "predict_time": 2.980351, "total_time": 9.09974 }, "output": [ "https://replicate.delivery/pbxt/e448cXZICcQwc6D2eePhemUrpTvIrj5WEqWFX7g38hSLxCwDB/out-0.png" ], "started_at": "2023-05-15T16:08:48.266723Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2nhcwxvfube7xlnoimwhyhmliy", "cancel": "https://api.replicate.com/v1/predictions/2nhcwxvfube7xlnoimwhyhmliy/cancel" }, "version": "01412d14c9124928516b83ab0970d93069b911a8e5eadc1c9bfec61851617a09" }
Generated inUsing seed: 9011 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:01, 15.13it/s] 13%|█▎ | 4/30 [00:00<00:01, 15.24it/s] 20%|██ | 6/30 [00:00<00:01, 15.05it/s] 27%|██▋ | 8/30 [00:00<00:01, 15.20it/s] 33%|███▎ | 10/30 [00:00<00:01, 14.33it/s] 40%|████ | 12/30 [00:00<00:01, 14.60it/s] 47%|████▋ | 14/30 [00:00<00:01, 14.75it/s] 53%|█████▎ | 16/30 [00:01<00:00, 14.26it/s] 60%|██████ | 18/30 [00:01<00:00, 14.20it/s] 67%|██████▋ | 20/30 [00:01<00:00, 14.81it/s] 73%|███████▎ | 22/30 [00:01<00:00, 14.75it/s] 80%|████████ | 24/30 [00:01<00:00, 15.01it/s] 87%|████████▋ | 26/30 [00:01<00:00, 15.01it/s] 93%|█████████▎| 28/30 [00:01<00:00, 15.52it/s] 100%|██████████| 30/30 [00:01<00:00, 15.88it/s] 100%|██████████| 30/30 [00:01<00:00, 15.03it/s]
Prediction
mcai/rpg-v4:a2d69f99ModelIDyiv5ofwvjnezfm6ahojy7e45cyStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 768
- height
- 512
- prompt
- Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy
- num_inference_steps
- 30
{ "width": 768, "height": 512, "prompt": "Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", { input: { width: 768, height: 512, prompt: "Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", input={ "width": 768, "height": 512, "prompt": "Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mcai/rpg-v4 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": "a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", "input": { "width": 768, "height": 512, "prompt": "Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run mcai/rpg-v4 using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc \ -i 'width=768' \ -i 'height=512' \ -i 'prompt="Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance."' \ -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, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy"' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run mcai/rpg-v4 using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 768, "height": 512, "prompt": "Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-05-15T16:11:56.508238Z", "created_at": "2023-05-15T16:11:47.958181Z", "data_removed": false, "error": null, "id": "yiv5ofwvjnezfm6ahojy7e45cy", "input": { "width": 768, "height": 512, "prompt": "Amid snowy Ebenya, a white Porsche Cayenne gleams, a sculptural contrast to soft, snow-laden hills. Pristine, it sits poised for a thrilling drive. Snowflakes speckle its surface, matching the pure landscape. Its headlights illuminate the tranquil setting, inviting adventure against the wintry elegance.", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }, "logs": "Using seed: 35993\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:01, 14.43it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 15.33it/s]\n 20%|██ | 6/30 [00:00<00:01, 15.85it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 14.93it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 14.40it/s]\n 40%|████ | 12/30 [00:00<00:01, 14.31it/s]\n 47%|████▋ | 14/30 [00:00<00:01, 14.77it/s]\n 53%|█████▎ | 16/30 [00:01<00:00, 15.00it/s]\n 60%|██████ | 18/30 [00:01<00:00, 15.25it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 15.54it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 14.88it/s]\n 80%|████████ | 24/30 [00:01<00:00, 15.16it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 15.46it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 15.14it/s]\n100%|██████████| 30/30 [00:01<00:00, 15.17it/s]\n100%|██████████| 30/30 [00:01<00:00, 15.06it/s]", "metrics": { "predict_time": 2.986689, "total_time": 8.550057 }, "output": [ "https://replicate.delivery/pbxt/0Mt73CReYTQWJa1s4ijDAUFdptQ1pNinceCPeV92Ul3WeCwDB/out-0.png" ], "started_at": "2023-05-15T16:11:53.521549Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/yiv5ofwvjnezfm6ahojy7e45cy", "cancel": "https://api.replicate.com/v1/predictions/yiv5ofwvjnezfm6ahojy7e45cy/cancel" }, "version": "01412d14c9124928516b83ab0970d93069b911a8e5eadc1c9bfec61851617a09" }
Generated inUsing seed: 35993 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:01, 14.43it/s] 13%|█▎ | 4/30 [00:00<00:01, 15.33it/s] 20%|██ | 6/30 [00:00<00:01, 15.85it/s] 27%|██▋ | 8/30 [00:00<00:01, 14.93it/s] 33%|███▎ | 10/30 [00:00<00:01, 14.40it/s] 40%|████ | 12/30 [00:00<00:01, 14.31it/s] 47%|████▋ | 14/30 [00:00<00:01, 14.77it/s] 53%|█████▎ | 16/30 [00:01<00:00, 15.00it/s] 60%|██████ | 18/30 [00:01<00:00, 15.25it/s] 67%|██████▋ | 20/30 [00:01<00:00, 15.54it/s] 73%|███████▎ | 22/30 [00:01<00:00, 14.88it/s] 80%|████████ | 24/30 [00:01<00:00, 15.16it/s] 87%|████████▋ | 26/30 [00:01<00:00, 15.46it/s] 93%|█████████▎| 28/30 [00:01<00:00, 15.14it/s] 100%|██████████| 30/30 [00:01<00:00, 15.17it/s] 100%|██████████| 30/30 [00:01<00:00, 15.06it/s]
Prediction
mcai/rpg-v4:a2d69f99ModelIDxyzxr4covraa3hp7mzfj57fyd4StatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- 512
- height
- 768
- prompt
- ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy
- num_inference_steps
- 30
{ "width": 512, "height": 768, "prompt": "ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", { input: { width: 512, height: 768, prompt: "ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", input={ "width": 512, "height": 768, "prompt": "ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mcai/rpg-v4 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": "a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", "input": { "width": 512, "height": 768, "prompt": "ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run mcai/rpg-v4 using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc \ -i 'width=512' \ -i 'height=768' \ -i 'prompt="ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush"' \ -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, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy"' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run mcai/rpg-v4 using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 512, "height": 768, "prompt": "ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-05-15T16:14:31.304030Z", "created_at": "2023-05-15T16:14:27.860059Z", "data_removed": false, "error": null, "id": "xyzxr4covraa3hp7mzfj57fyd4", "input": { "width": 512, "height": 768, "prompt": "ww1ger man with a beard is on his knees and looking down in a devastated and apocalyptic battleground, explosions, shrapnel, Mustard gas, Mist, Acrid taste, Morbid, Disillusionment,Resignation,Shell shock, Broken mirrors, Glazing, Leading lines, Triadic, in the style of George Grosz, ultra detailed, intricate, surrealism, oil on canvas, dry brush", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }, "logs": "Using seed: 32229\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['surrealism, oil on canvas, dry brush']\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:01, 15.30it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 15.64it/s]\n 20%|██ | 6/30 [00:00<00:01, 15.98it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 16.27it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 16.24it/s]\n 40%|████ | 12/30 [00:00<00:01, 16.15it/s]\n 47%|████▋ | 14/30 [00:00<00:00, 16.20it/s]\n 53%|█████▎ | 16/30 [00:01<00:00, 15.57it/s]\n 60%|██████ | 18/30 [00:01<00:00, 15.59it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 15.92it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 16.07it/s]\n 80%|████████ | 24/30 [00:01<00:00, 16.23it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 16.42it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 16.56it/s]\n100%|██████████| 30/30 [00:01<00:00, 16.66it/s]\n100%|██████████| 30/30 [00:01<00:00, 16.18it/s]", "metrics": { "predict_time": 3.380277, "total_time": 3.443971 }, "output": [ "https://replicate.delivery/pbxt/ctHeBpqawJzdA6vuFa6v2kge5lGxrBhHLYQBhgFtCJQmxA8QA/out-0.png" ], "started_at": "2023-05-15T16:14:27.923753Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xyzxr4covraa3hp7mzfj57fyd4", "cancel": "https://api.replicate.com/v1/predictions/xyzxr4covraa3hp7mzfj57fyd4/cancel" }, "version": "01412d14c9124928516b83ab0970d93069b911a8e5eadc1c9bfec61851617a09" }
Generated inUsing seed: 32229 The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['surrealism, oil on canvas, dry brush'] 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:01, 15.30it/s] 13%|█▎ | 4/30 [00:00<00:01, 15.64it/s] 20%|██ | 6/30 [00:00<00:01, 15.98it/s] 27%|██▋ | 8/30 [00:00<00:01, 16.27it/s] 33%|███▎ | 10/30 [00:00<00:01, 16.24it/s] 40%|████ | 12/30 [00:00<00:01, 16.15it/s] 47%|████▋ | 14/30 [00:00<00:00, 16.20it/s] 53%|█████▎ | 16/30 [00:01<00:00, 15.57it/s] 60%|██████ | 18/30 [00:01<00:00, 15.59it/s] 67%|██████▋ | 20/30 [00:01<00:00, 15.92it/s] 73%|███████▎ | 22/30 [00:01<00:00, 16.07it/s] 80%|████████ | 24/30 [00:01<00:00, 16.23it/s] 87%|████████▋ | 26/30 [00:01<00:00, 16.42it/s] 93%|█████████▎| 28/30 [00:01<00:00, 16.56it/s] 100%|██████████| 30/30 [00:01<00:00, 16.66it/s] 100%|██████████| 30/30 [00:01<00:00, 16.18it/s]
Prediction
mcai/rpg-v4:a2d69f99ModelIDuyyzk5xjibhybpvpmjgyykhvkyStatusSucceededSourceWebHardware–Total durationCreatedInput
- width
- "512"
- height
- "768"
- prompt
- a Laborwave male vampire with long Ivory hair AND entropy
- scheduler
- EulerAncestralDiscrete
- num_outputs
- 1
- guidance_scale
- 7.5
- negative_prompt
- disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy
- num_inference_steps
- 30
{ "width": "512", "height": "768", "prompt": "a Laborwave male vampire with long Ivory hair AND entropy", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", { input: { width: "512", height: "768", prompt: "a Laborwave male vampire with long Ivory hair AND entropy", scheduler: "EulerAncestralDiscrete", num_outputs: 1, guidance_scale: 7.5, negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run mcai/rpg-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mcai/rpg-v4:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", input={ "width": "512", "height": "768", "prompt": "a Laborwave male vampire with long Ivory hair AND entropy", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run mcai/rpg-v4 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": "a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc", "input": { "width": "512", "height": "768", "prompt": "a Laborwave male vampire with long Ivory hair AND entropy", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run mcai/rpg-v4 using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc \ -i 'width="512"' \ -i 'height="768"' \ -i 'prompt="a Laborwave male vampire with long Ivory hair AND entropy"' \ -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, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy"' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run mcai/rpg-v4 using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/rpg-v4@sha256:a2d69f99475d76956b73235fc3d1f1491807f55613ed05118539ec1277fe60fc
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": "512", "height": "768", "prompt": "a Laborwave male vampire with long Ivory hair AND entropy", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-05-15T16:19:49.454544Z", "created_at": "2023-05-15T16:19:42.382124Z", "data_removed": false, "error": null, "id": "uyyzk5xjibhybpvpmjgyykhvky", "input": { "width": "512", "height": "768", "prompt": "a Laborwave male vampire with long Ivory hair AND entropy", "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, 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, blurry, bad anatomy", "num_inference_steps": 30 }, "logs": "Using seed: 34426\n 0%| | 0/30 [00:00<?, ?it/s]\n 7%|▋ | 2/30 [00:00<00:02, 12.77it/s]\n 13%|█▎ | 4/30 [00:00<00:01, 14.20it/s]\n 20%|██ | 6/30 [00:00<00:01, 14.65it/s]\n 27%|██▋ | 8/30 [00:00<00:01, 14.84it/s]\n 33%|███▎ | 10/30 [00:00<00:01, 14.08it/s]\n 40%|████ | 12/30 [00:00<00:01, 14.11it/s]\n 47%|████▋ | 14/30 [00:00<00:01, 14.06it/s]\n 53%|█████▎ | 16/30 [00:01<00:00, 14.21it/s]\n 60%|██████ | 18/30 [00:01<00:00, 14.11it/s]\n 67%|██████▋ | 20/30 [00:01<00:00, 14.25it/s]\n 73%|███████▎ | 22/30 [00:01<00:00, 14.49it/s]\n 80%|████████ | 24/30 [00:01<00:00, 14.18it/s]\n 87%|████████▋ | 26/30 [00:01<00:00, 14.24it/s]\n 93%|█████████▎| 28/30 [00:01<00:00, 14.21it/s]\n100%|██████████| 30/30 [00:02<00:00, 13.90it/s]\n100%|██████████| 30/30 [00:02<00:00, 14.14it/s]", "metrics": { "predict_time": 3.102254, "total_time": 7.07242 }, "output": [ "https://replicate.delivery/pbxt/NTBKHh0HFpqHEJYM3RjIj6abAP2fH715OuJx1DT6xqCSbAeQA/out-0.png" ], "started_at": "2023-05-15T16:19:46.352290Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/uyyzk5xjibhybpvpmjgyykhvky", "cancel": "https://api.replicate.com/v1/predictions/uyyzk5xjibhybpvpmjgyykhvky/cancel" }, "version": "01412d14c9124928516b83ab0970d93069b911a8e5eadc1c9bfec61851617a09" }
Generated inUsing seed: 34426 0%| | 0/30 [00:00<?, ?it/s] 7%|▋ | 2/30 [00:00<00:02, 12.77it/s] 13%|█▎ | 4/30 [00:00<00:01, 14.20it/s] 20%|██ | 6/30 [00:00<00:01, 14.65it/s] 27%|██▋ | 8/30 [00:00<00:01, 14.84it/s] 33%|███▎ | 10/30 [00:00<00:01, 14.08it/s] 40%|████ | 12/30 [00:00<00:01, 14.11it/s] 47%|████▋ | 14/30 [00:00<00:01, 14.06it/s] 53%|█████▎ | 16/30 [00:01<00:00, 14.21it/s] 60%|██████ | 18/30 [00:01<00:00, 14.11it/s] 67%|██████▋ | 20/30 [00:01<00:00, 14.25it/s] 73%|███████▎ | 22/30 [00:01<00:00, 14.49it/s] 80%|████████ | 24/30 [00:01<00:00, 14.18it/s] 87%|████████▋ | 26/30 [00:01<00:00, 14.24it/s] 93%|█████████▎| 28/30 [00:01<00:00, 14.21it/s] 100%|██████████| 30/30 [00:02<00:00, 13.90it/s] 100%|██████████| 30/30 [00:02<00:00, 14.14it/s]
Want to make some of these yourself?
Run this model