Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
pagebrain /epicrealism-v5:88d89cc6
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pagebrain/epicrealism-v5 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pagebrain/epicrealism-v5:88d89cc606f073ee7cad89dc834b3ec129a0d76bf7e6b42037c257ac4971236a",
{
input: {
seed: 2109437995,
width: 576,
height: 1024,
prompt: "medium shot of a woman traveller ready for the journey waiting on the train station, detailed sharp, flash photo\n",
scheduler: "KarrasDPM",
num_outputs: 1,
guidance_scale: 5,
safety_checker: false,
negative_prompt: "deformed, distorted, disfigured, doll, poorly drawn, bad anatomy, wrong anatomy, cartoon, cgi, render, illustration, painting, drawing\n",
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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run pagebrain/epicrealism-v5 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pagebrain/epicrealism-v5:88d89cc606f073ee7cad89dc834b3ec129a0d76bf7e6b42037c257ac4971236a",
input={
"seed": 2109437995,
"width": 576,
"height": 1024,
"prompt": "medium shot of a woman traveller ready for the journey waiting on the train station, detailed sharp, flash photo\n",
"scheduler": "KarrasDPM",
"num_outputs": 1,
"guidance_scale": 5,
"safety_checker": False,
"negative_prompt": "deformed, distorted, disfigured, doll, poorly drawn, bad anatomy, wrong anatomy, cartoon, cgi, render, illustration, painting, drawing\n",
"prompt_strength": 0.8,
"num_inference_steps": 20
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pagebrain/epicrealism-v5 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/epicrealism-v5:88d89cc606f073ee7cad89dc834b3ec129a0d76bf7e6b42037c257ac4971236a",
"input": {
"seed": 2109437995,
"width": 576,
"height": 1024,
"prompt": "medium shot of a woman traveller ready for the journey waiting on the train station, detailed sharp, flash photo\\n",
"scheduler": "KarrasDPM",
"num_outputs": 1,
"guidance_scale": 5,
"safety_checker": false,
"negative_prompt": "deformed, distorted, disfigured, doll, poorly drawn, bad anatomy, wrong anatomy, cartoon, cgi, render, illustration, painting, drawing\\n",
"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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-09-09T08:53:17.441936Z",
"created_at": "2023-09-09T08:53:04.053079Z",
"data_removed": false,
"error": null,
"id": "daxehpzbnwrv6lgyob6sssuxbu",
"input": {
"seed": 2109437995,
"width": "576",
"height": "1024",
"prompt": "medium shot of a woman traveller ready for the journey waiting on the train station, detailed sharp, flash photo\n",
"scheduler": "KarrasDPM",
"num_outputs": 1,
"guidance_scale": 5,
"safety_checker": false,
"negative_prompt": "deformed, distorted, disfigured, doll, poorly drawn, bad anatomy, wrong anatomy, cartoon, cgi, render, illustration, painting, drawing\n",
"prompt_strength": 0.8,
"num_inference_steps": 20
},
"logs": "Using seed: 2109437995\nPrompt: medium shot of a woman traveller ready for the journey waiting on the train station, detailed sharp, flash photo\ntxt2img mode\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:12, 1.54it/s]\n 10%|█ | 2/20 [00:01<00:11, 1.62it/s]\n 15%|█▌ | 3/20 [00:01<00:10, 1.66it/s]\n 20%|██ | 4/20 [00:02<00:09, 1.67it/s]\n 25%|██▌ | 5/20 [00:03<00:08, 1.68it/s]\n 30%|███ | 6/20 [00:03<00:08, 1.69it/s]\n 35%|███▌ | 7/20 [00:04<00:07, 1.69it/s]\n 40%|████ | 8/20 [00:04<00:07, 1.70it/s]\n 45%|████▌ | 9/20 [00:05<00:06, 1.70it/s]\n 50%|█████ | 10/20 [00:05<00:05, 1.70it/s]\n 55%|█████▌ | 11/20 [00:06<00:05, 1.69it/s]\n 60%|██████ | 12/20 [00:07<00:04, 1.69it/s]\n 65%|██████▌ | 13/20 [00:07<00:04, 1.69it/s]\n 70%|███████ | 14/20 [00:08<00:03, 1.69it/s]\n 75%|███████▌ | 15/20 [00:08<00:02, 1.69it/s]\n 80%|████████ | 16/20 [00:09<00:02, 1.69it/s]\n 85%|████████▌ | 17/20 [00:10<00:01, 1.68it/s]\n 90%|█████████ | 18/20 [00:10<00:01, 1.68it/s]\n 95%|█████████▌| 19/20 [00:11<00:00, 1.67it/s]\n100%|██████████| 20/20 [00:11<00:00, 1.67it/s]\n100%|██████████| 20/20 [00:11<00:00, 1.68it/s]",
"metrics": {
"predict_time": 13.474651,
"total_time": 13.388857
},
"output": [
"https://replicate.delivery/pbxt/VSasdidUZwY8IhU7SwK5e2r1OzFIL1xOaNBXc6cyLbdeReEjA/out-0.png"
],
"started_at": "2023-09-09T08:53:03.967285Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/daxehpzbnwrv6lgyob6sssuxbu",
"cancel": "https://api.replicate.com/v1/predictions/daxehpzbnwrv6lgyob6sssuxbu/cancel"
},
"version": "88d89cc606f073ee7cad89dc834b3ec129a0d76bf7e6b42037c257ac4971236a"
}
Using seed: 2109437995
Prompt: medium shot of a woman traveller ready for the journey waiting on the train station, detailed sharp, flash photo
txt2img mode
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:12, 1.54it/s]
10%|█ | 2/20 [00:01<00:11, 1.62it/s]
15%|█▌ | 3/20 [00:01<00:10, 1.66it/s]
20%|██ | 4/20 [00:02<00:09, 1.67it/s]
25%|██▌ | 5/20 [00:03<00:08, 1.68it/s]
30%|███ | 6/20 [00:03<00:08, 1.69it/s]
35%|███▌ | 7/20 [00:04<00:07, 1.69it/s]
40%|████ | 8/20 [00:04<00:07, 1.70it/s]
45%|████▌ | 9/20 [00:05<00:06, 1.70it/s]
50%|█████ | 10/20 [00:05<00:05, 1.70it/s]
55%|█████▌ | 11/20 [00:06<00:05, 1.69it/s]
60%|██████ | 12/20 [00:07<00:04, 1.69it/s]
65%|██████▌ | 13/20 [00:07<00:04, 1.69it/s]
70%|███████ | 14/20 [00:08<00:03, 1.69it/s]
75%|███████▌ | 15/20 [00:08<00:02, 1.69it/s]
80%|████████ | 16/20 [00:09<00:02, 1.69it/s]
85%|████████▌ | 17/20 [00:10<00:01, 1.68it/s]
90%|█████████ | 18/20 [00:10<00:01, 1.68it/s]
95%|█████████▌| 19/20 [00:11<00:00, 1.67it/s]
100%|██████████| 20/20 [00:11<00:00, 1.67it/s]
100%|██████████| 20/20 [00:11<00:00, 1.68it/s]