defaulta photo of <1> riding a horse on mars
typetext
{
"guidance_scale": 3.25,
"height": "512",
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"negative_prompt": "easynegative, bad-picture-chill-75v",
"num_inference_steps": 31,
"num_outputs": 1,
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"prompt_strength": 0.9,
"scheduler": "K_EULER_ANCESTRAL",
"width": "512"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_A9F**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
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: {
guidance_scale: 3.25,
height: "512",
lora_scales: "0.6",
lora_urls: "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
negative_prompt: "easynegative, bad-picture-chill-75v",
num_inference_steps: 31,
num_outputs: 1,
prompt: "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
prompt_strength: 0.9,
scheduler: "K_EULER_ANCESTRAL",
width: "512"
}
}
);
// 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=r8_A9F**********************************
This is your API token. Keep it to yourself.
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={
"guidance_scale": 3.25,
"height": "512",
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"negative_prompt": "easynegative, bad-picture-chill-75v",
"num_inference_steps": 31,
"num_outputs": 1,
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"prompt_strength": 0.9,
"scheduler": "K_EULER_ANCESTRAL",
"width": "512"
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_A9F**********************************
This is your API token. Keep it to yourself.
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": {
"guidance_scale": 3.25,
"height": "512",
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"negative_prompt": "easynegative, bad-picture-chill-75v",
"num_inference_steps": 31,
"num_outputs": 1,
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"prompt_strength": 0.9,
"scheduler": "K_EULER_ANCESTRAL",
"width": "512"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "xbwykzzdrzaczdkydodvcqmkka",
"model": "zhouzhengjun/lora_openjourney_v4",
"version": "f8e5074f993f6852679bdac9f604590827f11698fdbfc3f68a1f0c3395b46db6",
"input": {
"guidance_scale": 3.25,
"height": "512",
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/Mf7QBwNXrehQ3k6GwMPpi8bqy0cer9x1NqogXVWylWC9l6YhA/tmp28kwa2ceclexz5tc90001zun1iy5b8x3wzip.safetensors",
"negative_prompt": "easynegative, bad-picture-chill-75v",
"num_inference_steps": 31,
"num_outputs": 1,
"prompt": "(((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo , floating_hair,glowingeyes,green hair,greeneyes <1>, twintails, halterdress,",
"prompt_strength": 0.9,
"scheduler": "K_EULER_ANCESTRAL",
"width": "512"
},
"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]",
"output": [
"https://replicate.delivery/pbxt/xSvYgfGIXEzHOK2fUfIkksiIhanhqOm5xDt3TJQ1VkCyZZnhA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-04-20T10:51:34.616238Z",
"started_at": "2023-04-20T10:51:34.734894Z",
"completed_at": "2023-04-20T10:51:38.537121Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/xbwykzzdrzaczdkydodvcqmkka/cancel",
"get": "https://api.replicate.com/v1/predictions/xbwykzzdrzaczdkydodvcqmkka"
},
"metrics": {
"predict_time": 3.802227,
"total_time": 3.920883
}
}