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.
zhouzhengjun /lora_openjourney_v4:f8e5074f
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 zhouzhengjun/lora_openjourney_v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zhouzhengjun/lora_openjourney_v4:f8e5074f993f6852679bdac9f604590827f11698fdbfc3f68a1f0c3395b46db6",
{
input: {
width: 512,
height: 512,
prompt: "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
scheduler: "K_EULER_ANCESTRAL",
lora_scales: "0.6",
num_outputs: 1,
guidance_scale: 3.25,
negative_prompt: "easynegative, bad-picture-chill-75v",
prompt_strength: 0.9,
num_inference_steps: 31
}
}
);
// 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 zhouzhengjun/lora_openjourney_v4 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zhouzhengjun/lora_openjourney_v4:f8e5074f993f6852679bdac9f604590827f11698fdbfc3f68a1f0c3395b46db6",
input={
"width": 512,
"height": 512,
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"scheduler": "K_EULER_ANCESTRAL",
"lora_scales": "0.6",
"num_outputs": 1,
"guidance_scale": 3.25,
"negative_prompt": "easynegative, bad-picture-chill-75v",
"prompt_strength": 0.9,
"num_inference_steps": 31
}
)
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 zhouzhengjun/lora_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": "zhouzhengjun/lora_openjourney_v4:f8e5074f993f6852679bdac9f604590827f11698fdbfc3f68a1f0c3395b46db6",
"input": {
"width": 512,
"height": 512,
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"scheduler": "K_EULER_ANCESTRAL",
"lora_scales": "0.6",
"num_outputs": 1,
"guidance_scale": 3.25,
"negative_prompt": "easynegative, bad-picture-chill-75v",
"prompt_strength": 0.9,
"num_inference_steps": 31
}
}' \
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-20T10:51:38.537121Z",
"created_at": "2023-04-20T10:51:34.616238Z",
"data_removed": false,
"error": null,
"id": "xbwykzzdrzaczdkydodvcqmkka",
"input": {
"width": "512",
"height": "512",
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"scheduler": "K_EULER_ANCESTRAL",
"lora_scales": "0.6",
"num_outputs": 1,
"guidance_scale": 3.25,
"negative_prompt": "easynegative, bad-picture-chill-75v",
"prompt_strength": 0.9,
"num_inference_steps": 31
},
"logs": "Using seed: 8651\nGenerating image of 512 x 512 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,\nThe requested LoRAs are loaded.\nThe config attributes {'clip_sample_range': 1.0} were passed to EulerDiscreteScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.\nThe config attributes {'clip_sample_range': 1.0} were passed to EulerAncestralDiscreteScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,']\n 0%| | 0/31 [00:00<?, ?it/s]\n 6%|▋ | 2/31 [00:00<00:02, 11.13it/s]\n 13%|█▎ | 4/31 [00:00<00:02, 11.14it/s]\n 19%|█▉ | 6/31 [00:00<00:02, 11.23it/s]\n 26%|██▌ | 8/31 [00:00<00:02, 11.25it/s]\n 32%|███▏ | 10/31 [00:00<00:01, 11.30it/s]\n 39%|███▊ | 12/31 [00:01<00:01, 11.33it/s]\n 45%|████▌ | 14/31 [00:01<00:01, 11.02it/s]\n 52%|█████▏ | 16/31 [00:01<00:01, 11.10it/s]\n 58%|█████▊ | 18/31 [00:01<00:01, 11.18it/s]\n 65%|██████▍ | 20/31 [00:01<00:00, 11.23it/s]\n 71%|███████ | 22/31 [00:01<00:00, 11.22it/s]\n 77%|███████▋ | 24/31 [00:02<00:00, 11.21it/s]\n 84%|████████▍ | 26/31 [00:02<00:00, 11.11it/s]\n 90%|█████████ | 28/31 [00:02<00:00, 11.04it/s]\n 97%|█████████▋| 30/31 [00:02<00:00, 11.11it/s]\n100%|██████████| 31/31 [00:02<00:00, 11.16it/s]",
"metrics": {
"predict_time": 3.802227,
"total_time": 3.920883
},
"output": [
"https://replicate.delivery/pbxt/xSvYgfGIXEzHOK2fUfIkksiIhanhqOm5xDt3TJQ1VkCyZZnhA/out-0.png"
],
"started_at": "2023-04-20T10:51:34.734894Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/xbwykzzdrzaczdkydodvcqmkka",
"cancel": "https://api.replicate.com/v1/predictions/xbwykzzdrzaczdkydodvcqmkka/cancel"
},
"version": "f8e5074f993f6852679bdac9f604590827f11698fdbfc3f68a1f0c3395b46db6"
}
Using seed: 8651
Generating image of 512 x 512 with prompt: (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,
The requested LoRAs are loaded.
The config attributes {'clip_sample_range': 1.0} were passed to EulerDiscreteScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.
The config attributes {'clip_sample_range': 1.0} were passed to EulerAncestralDiscreteScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['twintails, halterdress,']
0%| | 0/31 [00:00<?, ?it/s]
6%|▋ | 2/31 [00:00<00:02, 11.13it/s]
13%|█▎ | 4/31 [00:00<00:02, 11.14it/s]
19%|█▉ | 6/31 [00:00<00:02, 11.23it/s]
26%|██▌ | 8/31 [00:00<00:02, 11.25it/s]
32%|███▏ | 10/31 [00:00<00:01, 11.30it/s]
39%|███▊ | 12/31 [00:01<00:01, 11.33it/s]
45%|████▌ | 14/31 [00:01<00:01, 11.02it/s]
52%|█████▏ | 16/31 [00:01<00:01, 11.10it/s]
58%|█████▊ | 18/31 [00:01<00:01, 11.18it/s]
65%|██████▍ | 20/31 [00:01<00:00, 11.23it/s]
71%|███████ | 22/31 [00:01<00:00, 11.22it/s]
77%|███████▋ | 24/31 [00:02<00:00, 11.21it/s]
84%|████████▍ | 26/31 [00:02<00:00, 11.11it/s]
90%|█████████ | 28/31 [00:02<00:00, 11.04it/s]
97%|█████████▋| 30/31 [00:02<00:00, 11.11it/s]
100%|██████████| 31/31 [00:02<00:00, 11.16it/s]