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: 55440,
width: 512,
height: 512,
prompt: "devil of the old world, awake under the sea, emanating dark energy, terrible presence, arcane magic, intricate artwork . octane render, trending on artstation. cinematic, hyper realism, high detail, octane render, 8k",
num_outputs: 1,
guidance_scale: 7.5,
num_inference_steps: 70
}
}
);
// 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": 55440,
"width": 512,
"height": 512,
"prompt": "devil of the old world, awake under the sea, emanating dark energy, terrible presence, arcane magic, intricate artwork . octane render, trending on artstation. cinematic, hyper realism, high detail, octane render, 8k",
"num_outputs": 1,
"guidance_scale": 7.5,
"num_inference_steps": 70
}
)
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": 55440,
"width": 512,
"height": 512,
"prompt": "devil of the old world, awake under the sea, emanating dark energy, terrible presence, arcane magic, intricate artwork . octane render, trending on artstation. cinematic, hyper realism, high detail, octane render, 8k",
"num_outputs": 1,
"guidance_scale": 7.5,
"num_inference_steps": 70
}
}' \
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-15T10:52:42.876486Z",
"created_at": "2022-11-15T10:51:55.188253Z",
"data_removed": false,
"error": null,
"id": "iv4sclcm6jgydotukqkxtjkl6e",
"input": {
"seed": 55440,
"width": 512,
"height": 512,
"prompt": "devil of the old world, awake under the sea, emanating dark energy, terrible presence, arcane magic, intricate artwork . octane render, trending on artstation. cinematic, hyper realism, high detail, octane render, 8k",
"num_outputs": 1,
"guidance_scale": "7.5",
"num_inference_steps": "70"
},
"logs": "Using seed: 55440\nGlobal seed set to 55440\n 0%| | 0/70 [00:00<?, ?it/s]\n 1%|▏ | 1/70 [00:01<01:19, 1.15s/it]\n 4%|▍ | 3/70 [00:01<00:23, 2.83it/s]\n 7%|▋ | 5/70 [00:01<00:13, 4.79it/s]\n 10%|█ | 7/70 [00:01<00:09, 6.58it/s]\n 13%|█▎ | 9/70 [00:01<00:07, 8.23it/s]\n 16%|█▌ | 11/70 [00:01<00:06, 9.63it/s]\n 19%|█▊ | 13/70 [00:02<00:05, 10.71it/s]\n 21%|██▏ | 15/70 [00:02<00:04, 11.40it/s]\n 24%|██▍ | 17/70 [00:02<00:04, 12.02it/s]\n 27%|██▋ | 19/70 [00:02<00:04, 12.52it/s]\n 30%|███ | 21/70 [00:02<00:03, 12.69it/s]\n 33%|███▎ | 23/70 [00:02<00:03, 12.82it/s]\n 36%|███▌ | 25/70 [00:02<00:03, 13.13it/s]\n 39%|███▊ | 27/70 [00:03<00:03, 13.22it/s]\n 41%|████▏ | 29/70 [00:03<00:03, 13.43it/s]\n 44%|████▍ | 31/70 [00:03<00:02, 13.56it/s]\n 47%|████▋ | 33/70 [00:03<00:02, 13.71it/s]\n 50%|█████ | 35/70 [00:03<00:02, 13.36it/s]\n 53%|█████▎ | 37/70 [00:03<00:02, 13.56it/s]\n 56%|█████▌ | 39/70 [00:03<00:02, 13.57it/s]\n 59%|█████▊ | 41/70 [00:04<00:02, 13.68it/s]\n 61%|██████▏ | 43/70 [00:04<00:01, 13.77it/s]\n 64%|██████▍ | 45/70 [00:04<00:01, 13.87it/s]\n 67%|██████▋ | 47/70 [00:04<00:01, 13.83it/s]\n 70%|███████ | 49/70 [00:04<00:01, 13.74it/s]\n 73%|███████▎ | 51/70 [00:04<00:01, 13.82it/s]\n 76%|███████▌ | 53/70 [00:04<00:01, 13.87it/s]\n 79%|███████▊ | 55/70 [00:05<00:01, 13.97it/s]\n 81%|████████▏ | 57/70 [00:05<00:00, 14.02it/s]\n 84%|████████▍ | 59/70 [00:05<00:00, 14.11it/s]\n 87%|████████▋ | 61/70 [00:05<00:00, 13.45it/s]\n 90%|█████████ | 63/70 [00:05<00:00, 13.08it/s]\n 93%|█████████▎| 65/70 [00:05<00:00, 13.28it/s]\n 96%|█████████▌| 67/70 [00:05<00:00, 13.53it/s]\n 99%|█████████▊| 69/70 [00:06<00:00, 13.74it/s]\n100%|██████████| 70/70 [00:06<00:00, 11.30it/s]",
"metrics": {
"predict_time": 9.065325,
"total_time": 47.688233
},
"output": [
"https://replicate.delivery/pbxt/YtDDfu90uLQgGKrxKWtjfjshflYfB3IOHxZXACT9898pXIBAB/out-0.png"
],
"started_at": "2022-11-15T10:52:33.811161Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/iv4sclcm6jgydotukqkxtjkl6e",
"cancel": "https://api.replicate.com/v1/predictions/iv4sclcm6jgydotukqkxtjkl6e/cancel"
},
"version": "9936c2001faa2194a261c01381f90e65261879985476014a0a37a334593a05eb"
}
Using seed: 55440
Global seed set to 55440
0%| | 0/70 [00:00<?, ?it/s]
1%|▏ | 1/70 [00:01<01:19, 1.15s/it]
4%|▍ | 3/70 [00:01<00:23, 2.83it/s]
7%|▋ | 5/70 [00:01<00:13, 4.79it/s]
10%|█ | 7/70 [00:01<00:09, 6.58it/s]
13%|█▎ | 9/70 [00:01<00:07, 8.23it/s]
16%|█▌ | 11/70 [00:01<00:06, 9.63it/s]
19%|█▊ | 13/70 [00:02<00:05, 10.71it/s]
21%|██▏ | 15/70 [00:02<00:04, 11.40it/s]
24%|██▍ | 17/70 [00:02<00:04, 12.02it/s]
27%|██▋ | 19/70 [00:02<00:04, 12.52it/s]
30%|███ | 21/70 [00:02<00:03, 12.69it/s]
33%|███▎ | 23/70 [00:02<00:03, 12.82it/s]
36%|███▌ | 25/70 [00:02<00:03, 13.13it/s]
39%|███▊ | 27/70 [00:03<00:03, 13.22it/s]
41%|████▏ | 29/70 [00:03<00:03, 13.43it/s]
44%|████▍ | 31/70 [00:03<00:02, 13.56it/s]
47%|████▋ | 33/70 [00:03<00:02, 13.71it/s]
50%|█████ | 35/70 [00:03<00:02, 13.36it/s]
53%|█████▎ | 37/70 [00:03<00:02, 13.56it/s]
56%|█████▌ | 39/70 [00:03<00:02, 13.57it/s]
59%|█████▊ | 41/70 [00:04<00:02, 13.68it/s]
61%|██████▏ | 43/70 [00:04<00:01, 13.77it/s]
64%|██████▍ | 45/70 [00:04<00:01, 13.87it/s]
67%|██████▋ | 47/70 [00:04<00:01, 13.83it/s]
70%|███████ | 49/70 [00:04<00:01, 13.74it/s]
73%|███████▎ | 51/70 [00:04<00:01, 13.82it/s]
76%|███████▌ | 53/70 [00:04<00:01, 13.87it/s]
79%|███████▊ | 55/70 [00:05<00:01, 13.97it/s]
81%|████████▏ | 57/70 [00:05<00:00, 14.02it/s]
84%|████████▍ | 59/70 [00:05<00:00, 14.11it/s]
87%|████████▋ | 61/70 [00:05<00:00, 13.45it/s]
90%|█████████ | 63/70 [00:05<00:00, 13.08it/s]
93%|█████████▎| 65/70 [00:05<00:00, 13.28it/s]
96%|█████████▌| 67/70 [00:05<00:00, 13.53it/s]
99%|█████████▊| 69/70 [00:06<00:00, 13.74it/s]
100%|██████████| 70/70 [00:06<00:00, 11.30it/s]