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-v4:e8818682
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-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"prompthero/openjourney-v4:e8818682e72a8b25895c7d90e889b712b6edfc5151f145e3606f21c1e85c65bf",
{
input: {
seed: 3329637825,
width: 512,
height: 768,
prompt: "portrait photograph of Madison Beer as Pocahontas, young beautiful native american woman, perfect symmetrical face, indigenes feather jewelry, traditional handmade dress, armed female hunter warrior, (((wild west))) environment, Utah landscape, ultra realistic, concept art, elegant, ((intricate)), ((highly detailed)), depth of field, ((professionally color graded)), soft ambient lighting, dusk, 8k, art by artgerm and greg rutkowski and alphonse mucha",
scheduler: "K_EULER_ANCESTRAL",
num_outputs: 1,
guidance_scale: 7,
negative_prompt: "bad anatomy, blurry, extra arms, extra fingers, poorly drawn hands, disfigured, tiling, deformed, mutated",
prompt_strength: 0.8,
num_inference_steps: 25
}
}
);
// 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-v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"prompthero/openjourney-v4:e8818682e72a8b25895c7d90e889b712b6edfc5151f145e3606f21c1e85c65bf",
input={
"seed": 3329637825,
"width": 512,
"height": 768,
"prompt": "portrait photograph of Madison Beer as Pocahontas, young beautiful native american woman, perfect symmetrical face, indigenes feather jewelry, traditional handmade dress, armed female hunter warrior, (((wild west))) environment, Utah landscape, ultra realistic, concept art, elegant, ((intricate)), ((highly detailed)), depth of field, ((professionally color graded)), soft ambient lighting, dusk, 8k, art by artgerm and greg rutkowski and alphonse mucha",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 7,
"negative_prompt": "bad anatomy, blurry, extra arms, extra fingers, poorly drawn hands, disfigured, tiling, deformed, mutated",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
)
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-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": "prompthero/openjourney-v4:e8818682e72a8b25895c7d90e889b712b6edfc5151f145e3606f21c1e85c65bf",
"input": {
"seed": 3329637825,
"width": 512,
"height": 768,
"prompt": "portrait photograph of Madison Beer as Pocahontas, young beautiful native american woman, perfect symmetrical face, indigenes feather jewelry, traditional handmade dress, armed female hunter warrior, (((wild west))) environment, Utah landscape, ultra realistic, concept art, elegant, ((intricate)), ((highly detailed)), depth of field, ((professionally color graded)), soft ambient lighting, dusk, 8k, art by artgerm and greg rutkowski and alphonse mucha",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 7,
"negative_prompt": "bad anatomy, blurry, extra arms, extra fingers, poorly drawn hands, disfigured, tiling, deformed, mutated",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
}' \
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-04-14T11:18:48.680479Z",
"created_at": "2023-04-14T11:18:41.718176Z",
"data_removed": false,
"error": null,
"id": "f6aatbxkofatll2ild5arm6nha",
"input": {
"seed": 3329637825,
"width": 512,
"height": "768",
"prompt": "portrait photograph of Madison Beer as Pocahontas, young beautiful native american woman, perfect symmetrical face, indigenes feather jewelry, traditional handmade dress, armed female hunter warrior, (((wild west))) environment, Utah landscape, ultra realistic, concept art, elegant, ((intricate)), ((highly detailed)), depth of field, ((professionally color graded)), soft ambient lighting, dusk, 8k, art by artgerm and greg rutkowski and alphonse mucha",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 7,
"negative_prompt": "bad anatomy, blurry, extra arms, extra fingers, poorly drawn hands, disfigured, tiling, deformed, mutated",
"prompt_strength": 0.8,
"num_inference_steps": 25
},
"logs": "Using seed: 3329637825\nusing txt2img\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: [', dusk, 8 k, art by artgerm and greg rutkowski and alphonse mucha']\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:07, 3.39it/s]\n 8%|▊ | 2/25 [00:00<00:05, 3.97it/s]\n 12%|█▏ | 3/25 [00:00<00:05, 4.20it/s]\n 16%|█▌ | 4/25 [00:00<00:04, 4.31it/s]\n 20%|██ | 5/25 [00:01<00:04, 4.34it/s]\n 24%|██▍ | 6/25 [00:01<00:04, 4.39it/s]\n 28%|██▊ | 7/25 [00:01<00:04, 4.43it/s]\n 32%|███▏ | 8/25 [00:01<00:03, 4.47it/s]\n 36%|███▌ | 9/25 [00:02<00:03, 4.46it/s]\n 40%|████ | 10/25 [00:02<00:03, 4.46it/s]\n 44%|████▍ | 11/25 [00:02<00:03, 4.45it/s]\n 48%|████▊ | 12/25 [00:02<00:02, 4.46it/s]\n 52%|█████▏ | 13/25 [00:02<00:02, 4.48it/s]\n 56%|█████▌ | 14/25 [00:03<00:02, 4.48it/s]\n 60%|██████ | 15/25 [00:03<00:02, 4.47it/s]\n 64%|██████▍ | 16/25 [00:03<00:02, 4.48it/s]\n 68%|██████▊ | 17/25 [00:03<00:01, 4.49it/s]\n 72%|███████▏ | 18/25 [00:04<00:01, 4.48it/s]\n 76%|███████▌ | 19/25 [00:04<00:01, 4.49it/s]\n 80%|████████ | 20/25 [00:04<00:01, 4.49it/s]\n 84%|████████▍ | 21/25 [00:04<00:00, 4.49it/s]\n 88%|████████▊ | 22/25 [00:04<00:00, 4.49it/s]\n 92%|█████████▏| 23/25 [00:05<00:00, 4.49it/s]\n 96%|█████████▌| 24/25 [00:05<00:00, 4.49it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.49it/s]\n100%|██████████| 25/25 [00:05<00:00, 4.43it/s]",
"metrics": {
"predict_time": 6.83091,
"total_time": 6.962303
},
"output": [
"https://replicate.delivery/pbxt/HmNdwPg2V261PdKEUyQDDSWKEPBhXAaLWee9eLoeY4XiJ6GDB/out-0.png"
],
"started_at": "2023-04-14T11:18:41.849569Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/f6aatbxkofatll2ild5arm6nha",
"cancel": "https://api.replicate.com/v1/predictions/f6aatbxkofatll2ild5arm6nha/cancel"
},
"version": "e8818682e72a8b25895c7d90e889b712b6edfc5151f145e3606f21c1e85c65bf"
}
Using seed: 3329637825
using txt2img
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: [', dusk, 8 k, art by artgerm and greg rutkowski and alphonse mucha']
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:07, 3.39it/s]
8%|▊ | 2/25 [00:00<00:05, 3.97it/s]
12%|█▏ | 3/25 [00:00<00:05, 4.20it/s]
16%|█▌ | 4/25 [00:00<00:04, 4.31it/s]
20%|██ | 5/25 [00:01<00:04, 4.34it/s]
24%|██▍ | 6/25 [00:01<00:04, 4.39it/s]
28%|██▊ | 7/25 [00:01<00:04, 4.43it/s]
32%|███▏ | 8/25 [00:01<00:03, 4.47it/s]
36%|███▌ | 9/25 [00:02<00:03, 4.46it/s]
40%|████ | 10/25 [00:02<00:03, 4.46it/s]
44%|████▍ | 11/25 [00:02<00:03, 4.45it/s]
48%|████▊ | 12/25 [00:02<00:02, 4.46it/s]
52%|█████▏ | 13/25 [00:02<00:02, 4.48it/s]
56%|█████▌ | 14/25 [00:03<00:02, 4.48it/s]
60%|██████ | 15/25 [00:03<00:02, 4.47it/s]
64%|██████▍ | 16/25 [00:03<00:02, 4.48it/s]
68%|██████▊ | 17/25 [00:03<00:01, 4.49it/s]
72%|███████▏ | 18/25 [00:04<00:01, 4.48it/s]
76%|███████▌ | 19/25 [00:04<00:01, 4.49it/s]
80%|████████ | 20/25 [00:04<00:01, 4.49it/s]
84%|████████▍ | 21/25 [00:04<00:00, 4.49it/s]
88%|████████▊ | 22/25 [00:04<00:00, 4.49it/s]
92%|█████████▏| 23/25 [00:05<00:00, 4.49it/s]
96%|█████████▌| 24/25 [00:05<00:00, 4.49it/s]
100%|██████████| 25/25 [00:05<00:00, 4.49it/s]
100%|██████████| 25/25 [00:05<00:00, 4.43it/s]