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 /juggernaut-xl-lightning:c9a24c32
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 fofr/juggernaut-xl-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/juggernaut-xl-lightning:c9a24c321ceb0b7843b872dcae82109dddadd1f82e94b115ee39289e0e182e40",
{
input: {
width: 1024,
height: 1024,
prompt: "A portrait photo, neon red hair, lightning storm",
output_format: "webp",
output_quality: 80,
negative_prompt: "",
number_of_images: 1
}
}
);
console.log(output);
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/juggernaut-xl-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/juggernaut-xl-lightning:c9a24c321ceb0b7843b872dcae82109dddadd1f82e94b115ee39289e0e182e40",
input={
"width": 1024,
"height": 1024,
"prompt": "A portrait photo, neon red hair, lightning storm",
"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/juggernaut-xl-lightning 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": "c9a24c321ceb0b7843b872dcae82109dddadd1f82e94b115ee39289e0e182e40",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A portrait photo, neon red hair, lightning storm",
"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-04T16:14:35.493300Z",
"created_at": "2024-06-04T16:14:32.100000Z",
"data_removed": false,
"error": null,
"id": "tw92mgyymhrgg0cfwg3t8xmy70",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A portrait photo, neon red hair, lightning storm",
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
},
"logs": "Random seed set to: 1634244148\nRunning workflow\ngot prompt\nExecuting node 3, title: KSampler, class type: KSampler\n 0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:00<00:01, 2.64it/s]\n 40%|████ | 2/5 [00:00<00:01, 2.62it/s]\n 60%|██████ | 3/5 [00:01<00:00, 2.62it/s]\n 80%|████████ | 4/5 [00:01<00:00, 2.64it/s]\n100%|██████████| 5/5 [00:01<00:00, 3.24it/s]\n100%|██████████| 5/5 [00:01<00:00, 2.94it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 9, title: Save Image, class type: SaveImage\nPrompt executed in 2.10 seconds\noutputs: {'9': {'images': [{'filename': 'R8__00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nR8__00001_.png",
"metrics": {
"predict_time": 3.350245,
"total_time": 3.3933
},
"output": [
"https://replicate.delivery/pbxt/FzykscXmQcKUNZt7mYTNALhU94ju1ie6fiHma9pGUozq9O7SA/R8__00001_.webp"
],
"started_at": "2024-06-04T16:14:32.143055Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/tw92mgyymhrgg0cfwg3t8xmy70",
"cancel": "https://api.replicate.com/v1/predictions/tw92mgyymhrgg0cfwg3t8xmy70/cancel"
},
"version": "c9a24c321ceb0b7843b872dcae82109dddadd1f82e94b115ee39289e0e182e40"
}
Random seed set to: 1634244148
Running workflow
got prompt
Executing node 3, title: KSampler, class type: KSampler
0%| | 0/5 [00:00<?, ?it/s]
20%|██ | 1/5 [00:00<00:01, 2.64it/s]
40%|████ | 2/5 [00:00<00:01, 2.62it/s]
60%|██████ | 3/5 [00:01<00:00, 2.62it/s]
80%|████████ | 4/5 [00:01<00:00, 2.64it/s]
100%|██████████| 5/5 [00:01<00:00, 3.24it/s]
100%|██████████| 5/5 [00:01<00:00, 2.94it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 9, title: Save Image, class type: SaveImage
Prompt executed in 2.10 seconds
outputs: {'9': {'images': [{'filename': 'R8__00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
R8__00001_.png