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.
fofr /epicrealismxl-lightning-hades:0ca10b1f
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run fofr/epicrealismxl-lightning-hades using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/epicrealismxl-lightning-hades:0ca10b1fd361c1c5568720736411eaa89d9684415eb61fd36875b4d3c20f605a",
{
input: {
width: 1024,
height: 1024,
prompt: "a living room interior",
output_format: "webp",
output_quality: 80,
negative_prompt: "",
number_of_images: 1
}
}
);
// 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 fofr/epicrealismxl-lightning-hades using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/epicrealismxl-lightning-hades:0ca10b1fd361c1c5568720736411eaa89d9684415eb61fd36875b4d3c20f605a",
input={
"width": 1024,
"height": 1024,
"prompt": "a living room interior",
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
}
)
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 fofr/epicrealismxl-lightning-hades 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": "fofr/epicrealismxl-lightning-hades:0ca10b1fd361c1c5568720736411eaa89d9684415eb61fd36875b4d3c20f605a",
"input": {
"width": 1024,
"height": 1024,
"prompt": "a living room interior",
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
}
}' \
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": "2024-06-04T12:22:43.518053Z",
"created_at": "2024-06-04T12:22:41.176000Z",
"data_removed": false,
"error": null,
"id": "6ctn3a4v31rgj0cfwcsr16g5zm",
"input": {
"width": 1024,
"height": 1024,
"prompt": "a living room interior",
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
},
"logs": "Random seed set to: 1247663501\nRunning workflow\ngot prompt\nExecuting node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 3, title: KSampler, class type: KSampler\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:00, 9.10it/s]\n 50%|█████ | 2/4 [00:00<00:00, 8.94it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 8.97it/s]\n100%|██████████| 4/4 [00:00<00:00, 9.07it/s]\n100%|██████████| 4/4 [00:00<00:00, 9.03it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 9, title: Save Image, class type: SaveImage\nPrompt executed in 0.88 seconds\noutputs: {'9': {'images': [{'filename': 'R8__00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nR8__00001_.png",
"metrics": {
"predict_time": 2.304002,
"total_time": 2.342053
},
"output": [
"https://replicate.delivery/pbxt/cczcfiIqqH0yWSVC6cC4pKLuKv0nKcZl1CfNOGUwy4kSkL7SA/R8__00001_.webp"
],
"started_at": "2024-06-04T12:22:41.214051Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/6ctn3a4v31rgj0cfwcsr16g5zm",
"cancel": "https://api.replicate.com/v1/predictions/6ctn3a4v31rgj0cfwcsr16g5zm/cancel"
},
"version": "0ca10b1fd361c1c5568720736411eaa89d9684415eb61fd36875b4d3c20f605a"
}
Random seed set to: 1247663501
Running workflow
got prompt
Executing node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode
Executing node 3, title: KSampler, class type: KSampler
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:00<00:00, 9.10it/s]
50%|█████ | 2/4 [00:00<00:00, 8.94it/s]
75%|███████▌ | 3/4 [00:00<00:00, 8.97it/s]
100%|██████████| 4/4 [00:00<00:00, 9.07it/s]
100%|██████████| 4/4 [00:00<00:00, 9.03it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 9, title: Save Image, class type: SaveImage
Prompt executed in 0.88 seconds
outputs: {'9': {'images': [{'filename': 'R8__00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
R8__00001_.png