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.
prompthero /openjourney:9936c200
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 prompthero/openjourney using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"prompthero/openjourney:9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb",
{
input: {
seed: 2913619048,
width: 512,
height: 512,
prompt: "mdjrny-v4 style portrait of a gorgeous blond female in the style of stefan kostic, realistic, half body shot, sharp focus, 8 k high definition, insanely detailed, intricate, elegant, art by stanley lau and artgerm, extreme blur flames background",
num_outputs: 1,
guidance_scale: 17,
num_inference_steps: 80
}
}
);
// 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 prompthero/openjourney using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"prompthero/openjourney:9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb",
input={
"seed": 2913619048,
"width": 512,
"height": 512,
"prompt": "mdjrny-v4 style portrait of a gorgeous blond female in the style of stefan kostic, realistic, half body shot, sharp focus, 8 k high definition, insanely detailed, intricate, elegant, art by stanley lau and artgerm, extreme blur flames background",
"num_outputs": 1,
"guidance_scale": 17,
"num_inference_steps": 80
}
)
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 prompthero/openjourney 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": "prompthero/openjourney:9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb",
"input": {
"seed": 2913619048,
"width": 512,
"height": 512,
"prompt": "mdjrny-v4 style portrait of a gorgeous blond female in the style of stefan kostic, realistic, half body shot, sharp focus, 8 k high definition, insanely detailed, intricate, elegant, art by stanley lau and artgerm, extreme blur flames background",
"num_outputs": 1,
"guidance_scale": 17,
"num_inference_steps": 80
}
}' \
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": "2022-11-15T02:31:03.248051Z",
"created_at": "2022-11-15T02:30:56.510079Z",
"data_removed": false,
"error": null,
"id": "jefzpom6xfb4jnrahybd6qtzia",
"input": {
"seed": 2913619048,
"width": 512,
"height": 512,
"prompt": "mdjrny-v4 style portrait of a gorgeous blond female in the style of stefan kostic, realistic, half body shot, sharp focus, 8 k high definition, insanely detailed, intricate, elegant, art by stanley lau and artgerm, extreme blur flames background",
"num_outputs": 1,
"guidance_scale": "17",
"num_inference_steps": "80"
},
"logs": "Using seed: 2913619048\nGlobal seed set to 2913619048\n 0%| | 0/80 [00:00<?, ?it/s]\n 2%|▎ | 2/80 [00:00<00:06, 12.79it/s]\n 5%|▌ | 4/80 [00:00<00:05, 13.59it/s]\n 8%|▊ | 6/80 [00:00<00:05, 13.92it/s]\n 10%|█ | 8/80 [00:00<00:05, 14.06it/s]\n 12%|█▎ | 10/80 [00:00<00:04, 14.13it/s]\n 15%|█▌ | 12/80 [00:00<00:04, 14.18it/s]\n 18%|█▊ | 14/80 [00:00<00:04, 14.20it/s]\n 20%|██ | 16/80 [00:01<00:04, 13.89it/s]\n 22%|██▎ | 18/80 [00:01<00:04, 14.01it/s]\n 25%|██▌ | 20/80 [00:01<00:04, 14.09it/s]\n 28%|██▊ | 22/80 [00:01<00:04, 14.21it/s]\n 30%|███ | 24/80 [00:01<00:03, 14.26it/s]\n 32%|███▎ | 26/80 [00:01<00:03, 14.25it/s]\n 35%|███▌ | 28/80 [00:01<00:03, 14.28it/s]\n 38%|███▊ | 30/80 [00:02<00:03, 14.32it/s]\n 40%|████ | 32/80 [00:02<00:03, 14.33it/s]\n 42%|████▎ | 34/80 [00:02<00:03, 14.18it/s]\n 45%|████▌ | 36/80 [00:02<00:03, 14.14it/s]\n 48%|████▊ | 38/80 [00:02<00:02, 14.17it/s]\n 50%|█████ | 40/80 [00:02<00:02, 14.12it/s]\n 52%|█████▎ | 42/80 [00:02<00:02, 14.17it/s]\n 55%|█████▌ | 44/80 [00:03<00:02, 14.20it/s]\n 57%|█████▊ | 46/80 [00:03<00:02, 14.20it/s]\n 60%|██████ | 48/80 [00:03<00:02, 14.21it/s]\n 62%|██████▎ | 50/80 [00:03<00:02, 14.21it/s]\n 65%|██████▌ | 52/80 [00:03<00:01, 14.24it/s]\n 68%|██████▊ | 54/80 [00:03<00:01, 14.24it/s]\n 70%|███████ | 56/80 [00:03<00:01, 14.26it/s]\n 72%|███████▎ | 58/80 [00:04<00:01, 14.28it/s]\n 75%|███████▌ | 60/80 [00:04<00:01, 14.29it/s]\n 78%|███████▊ | 62/80 [00:04<00:01, 14.29it/s]\n 80%|████████ | 64/80 [00:04<00:01, 14.25it/s]\n 82%|████████▎ | 66/80 [00:04<00:00, 14.26it/s]\n 85%|████████▌ | 68/80 [00:04<00:00, 14.18it/s]\n 88%|████████▊ | 70/80 [00:04<00:00, 14.22it/s]\n 90%|█████████ | 72/80 [00:05<00:00, 14.17it/s]\n 92%|█████████▎| 74/80 [00:05<00:00, 14.10it/s]\n 95%|█████████▌| 76/80 [00:05<00:00, 13.99it/s]\n 98%|█████████▊| 78/80 [00:05<00:00, 13.94it/s]\n100%|██████████| 80/80 [00:05<00:00, 13.87it/s]\n100%|██████████| 80/80 [00:05<00:00, 14.13it/s]",
"metrics": {
"predict_time": 6.698847,
"total_time": 6.737972
},
"output": [
"https://replicate.delivery/pbxt/5XQKeuiuWOy4Gy8SIIAp0t4cGJcB5CdEYptGTNxY2WQzXFAIA/out-0.png"
],
"started_at": "2022-11-15T02:30:56.549204Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/jefzpom6xfb4jnrahybd6qtzia",
"cancel": "https://api.replicate.com/v1/predictions/jefzpom6xfb4jnrahybd6qtzia/cancel"
},
"version": "9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb"
}
Using seed: 2913619048
Global seed set to 2913619048
0%| | 0/80 [00:00<?, ?it/s]
2%|▎ | 2/80 [00:00<00:06, 12.79it/s]
5%|▌ | 4/80 [00:00<00:05, 13.59it/s]
8%|▊ | 6/80 [00:00<00:05, 13.92it/s]
10%|█ | 8/80 [00:00<00:05, 14.06it/s]
12%|█▎ | 10/80 [00:00<00:04, 14.13it/s]
15%|█▌ | 12/80 [00:00<00:04, 14.18it/s]
18%|█▊ | 14/80 [00:00<00:04, 14.20it/s]
20%|██ | 16/80 [00:01<00:04, 13.89it/s]
22%|██▎ | 18/80 [00:01<00:04, 14.01it/s]
25%|██▌ | 20/80 [00:01<00:04, 14.09it/s]
28%|██▊ | 22/80 [00:01<00:04, 14.21it/s]
30%|███ | 24/80 [00:01<00:03, 14.26it/s]
32%|███▎ | 26/80 [00:01<00:03, 14.25it/s]
35%|███▌ | 28/80 [00:01<00:03, 14.28it/s]
38%|███▊ | 30/80 [00:02<00:03, 14.32it/s]
40%|████ | 32/80 [00:02<00:03, 14.33it/s]
42%|████▎ | 34/80 [00:02<00:03, 14.18it/s]
45%|████▌ | 36/80 [00:02<00:03, 14.14it/s]
48%|████▊ | 38/80 [00:02<00:02, 14.17it/s]
50%|█████ | 40/80 [00:02<00:02, 14.12it/s]
52%|█████▎ | 42/80 [00:02<00:02, 14.17it/s]
55%|█████▌ | 44/80 [00:03<00:02, 14.20it/s]
57%|█████▊ | 46/80 [00:03<00:02, 14.20it/s]
60%|██████ | 48/80 [00:03<00:02, 14.21it/s]
62%|██████▎ | 50/80 [00:03<00:02, 14.21it/s]
65%|██████▌ | 52/80 [00:03<00:01, 14.24it/s]
68%|██████▊ | 54/80 [00:03<00:01, 14.24it/s]
70%|███████ | 56/80 [00:03<00:01, 14.26it/s]
72%|███████▎ | 58/80 [00:04<00:01, 14.28it/s]
75%|███████▌ | 60/80 [00:04<00:01, 14.29it/s]
78%|███████▊ | 62/80 [00:04<00:01, 14.29it/s]
80%|████████ | 64/80 [00:04<00:01, 14.25it/s]
82%|████████▎ | 66/80 [00:04<00:00, 14.26it/s]
85%|████████▌ | 68/80 [00:04<00:00, 14.18it/s]
88%|████████▊ | 70/80 [00:04<00:00, 14.22it/s]
90%|█████████ | 72/80 [00:05<00:00, 14.17it/s]
92%|█████████▎| 74/80 [00:05<00:00, 14.10it/s]
95%|█████████▌| 76/80 [00:05<00:00, 13.99it/s]
98%|█████████▊| 78/80 [00:05<00:00, 13.94it/s]
100%|██████████| 80/80 [00:05<00:00, 13.87it/s]
100%|██████████| 80/80 [00:05<00:00, 14.13it/s]