Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
fogside /rpm_characters_concepts:616d6893
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fogside/rpm_characters_concepts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fogside/rpm_characters_concepts:616d68938cbacdbb382dedca6214c4795bb540beba6bc941d8f1cf54c16495d9",
{
input: {
prompt: "male, man wizard, purple and gold, shiny amulets, wide shoulders, whimsical outfit, a magician from the world of warcraft, elfen leader, fairytale hero, glowing mushroom fantasy forest landscape, dark light night",
body_type: "masculine",
negative_prompt: "handbag"
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run fogside/rpm_characters_concepts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fogside/rpm_characters_concepts:616d68938cbacdbb382dedca6214c4795bb540beba6bc941d8f1cf54c16495d9",
input={
"prompt": "male, man wizard, purple and gold, shiny amulets, wide shoulders, whimsical outfit, a magician from the world of warcraft, elfen leader, fairytale hero, glowing mushroom fantasy forest landscape, dark light night",
"body_type": "masculine",
"negative_prompt": "handbag"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run fogside/rpm_characters_concepts 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": "fogside/rpm_characters_concepts:616d68938cbacdbb382dedca6214c4795bb540beba6bc941d8f1cf54c16495d9",
"input": {
"prompt": "male, man wizard, purple and gold, shiny amulets, wide shoulders, whimsical outfit, a magician from the world of warcraft, elfen leader, fairytale hero, glowing mushroom fantasy forest landscape, dark light night",
"body_type": "masculine",
"negative_prompt": "handbag"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-05-07T17:03:07.711046Z",
"created_at": "2023-05-07T17:02:59.029791Z",
"data_removed": false,
"error": null,
"id": "xfgmefp6azfnrjzwb7bylkikma",
"input": {
"prompt": "male, man wizard, purple and gold, shiny amulets, wide shoulders, whimsical outfit, a magician from the world of warcraft, elfen leader, fairytale hero, glowing mushroom fantasy forest landscape, dark light night",
"body_type": "masculine",
"negative_prompt": "handbag"
},
"logs": "Using seed: 64338\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:15, 1.26it/s]\n 10%|█ | 2/20 [00:00<00:07, 2.55it/s]\n 15%|█▌ | 3/20 [00:01<00:04, 3.87it/s]\n 25%|██▌ | 5/20 [00:01<00:02, 5.94it/s]\n 35%|███▌ | 7/20 [00:01<00:01, 7.27it/s]\n 40%|████ | 8/20 [00:01<00:01, 7.77it/s]\n 50%|█████ | 10/20 [00:01<00:01, 8.56it/s]\n 60%|██████ | 12/20 [00:01<00:00, 9.04it/s]\n 65%|██████▌ | 13/20 [00:02<00:00, 9.20it/s]\n 70%|███████ | 14/20 [00:02<00:00, 9.34it/s]\n 75%|███████▌ | 15/20 [00:02<00:00, 9.49it/s]\n 85%|████████▌ | 17/20 [00:02<00:00, 9.72it/s]\n 90%|█████████ | 18/20 [00:02<00:00, 9.48it/s]\n 95%|█████████▌| 19/20 [00:02<00:00, 9.58it/s]\n100%|██████████| 20/20 [00:02<00:00, 9.64it/s]\n100%|██████████| 20/20 [00:02<00:00, 7.35it/s]\n 0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:00<00:02, 1.54it/s]\n 40%|████ | 2/5 [00:00<00:01, 2.76it/s]\n 60%|██████ | 3/5 [00:00<00:00, 3.71it/s]\n 80%|████████ | 4/5 [00:01<00:00, 4.47it/s]\n100%|██████████| 5/5 [00:01<00:00, 5.05it/s]\n100%|██████████| 5/5 [00:01<00:00, 3.92it/s]\n 0%| | 0/7 [00:00<?, ?it/s]\n 14%|█▍ | 1/7 [00:00<00:03, 1.82it/s]\n 43%|████▎ | 3/7 [00:00<00:00, 5.41it/s]\n 71%|███████▏ | 5/7 [00:00<00:00, 8.23it/s]\n100%|██████████| 7/7 [00:00<00:00, 10.71it/s]\n100%|██████████| 7/7 [00:00<00:00, 7.80it/s]",
"metrics": {
"predict_time": 8.629553,
"total_time": 8.681255
},
"output": [
"https://replicate.delivery/pbxt/3tN1IX4Ag367FVW4dFJ77wD3YUCEzZeu2P4N2BnzXcLlXscIA/out-0.png"
],
"started_at": "2023-05-07T17:02:59.081493Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/xfgmefp6azfnrjzwb7bylkikma",
"cancel": "https://api.replicate.com/v1/predictions/xfgmefp6azfnrjzwb7bylkikma/cancel"
},
"version": "616d68938cbacdbb382dedca6214c4795bb540beba6bc941d8f1cf54c16495d9"
}
Using seed: 64338
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:15, 1.26it/s]
10%|█ | 2/20 [00:00<00:07, 2.55it/s]
15%|█▌ | 3/20 [00:01<00:04, 3.87it/s]
25%|██▌ | 5/20 [00:01<00:02, 5.94it/s]
35%|███▌ | 7/20 [00:01<00:01, 7.27it/s]
40%|████ | 8/20 [00:01<00:01, 7.77it/s]
50%|█████ | 10/20 [00:01<00:01, 8.56it/s]
60%|██████ | 12/20 [00:01<00:00, 9.04it/s]
65%|██████▌ | 13/20 [00:02<00:00, 9.20it/s]
70%|███████ | 14/20 [00:02<00:00, 9.34it/s]
75%|███████▌ | 15/20 [00:02<00:00, 9.49it/s]
85%|████████▌ | 17/20 [00:02<00:00, 9.72it/s]
90%|█████████ | 18/20 [00:02<00:00, 9.48it/s]
95%|█████████▌| 19/20 [00:02<00:00, 9.58it/s]
100%|██████████| 20/20 [00:02<00:00, 9.64it/s]
100%|██████████| 20/20 [00:02<00:00, 7.35it/s]
0%| | 0/5 [00:00<?, ?it/s]
20%|██ | 1/5 [00:00<00:02, 1.54it/s]
40%|████ | 2/5 [00:00<00:01, 2.76it/s]
60%|██████ | 3/5 [00:00<00:00, 3.71it/s]
80%|████████ | 4/5 [00:01<00:00, 4.47it/s]
100%|██████████| 5/5 [00:01<00:00, 5.05it/s]
100%|██████████| 5/5 [00:01<00:00, 3.92it/s]
0%| | 0/7 [00:00<?, ?it/s]
14%|█▍ | 1/7 [00:00<00:03, 1.82it/s]
43%|████▎ | 3/7 [00:00<00:00, 5.41it/s]
71%|███████▏ | 5/7 [00:00<00:00, 8.23it/s]
100%|██████████| 7/7 [00:00<00:00, 10.71it/s]
100%|██████████| 7/7 [00:00<00:00, 7.80it/s]