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.
lucataco /aura-flow-v0.2:e784141e
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 lucataco/aura-flow-v0.2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/aura-flow-v0.2:e784141e567364018b6c24297273e910b80c468c60ccb2a2a6642c034c7d43ee",
{
input: {
cfg: 3.5,
shift: 1,
width: 1024,
height: 1024,
prompt: "A photo of a lavender cat",
sampler: "uni_pc",
scheduler: "normal",
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 lucataco/aura-flow-v0.2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/aura-flow-v0.2:e784141e567364018b6c24297273e910b80c468c60ccb2a2a6642c034c7d43ee",
input={
"cfg": 3.5,
"shift": 1,
"width": 1024,
"height": 1024,
"prompt": "A photo of a lavender cat",
"sampler": "uni_pc",
"scheduler": "normal",
"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 lucataco/aura-flow-v0.2 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": "lucataco/aura-flow-v0.2:e784141e567364018b6c24297273e910b80c468c60ccb2a2a6642c034c7d43ee",
"input": {
"cfg": 3.5,
"shift": 1,
"width": 1024,
"height": 1024,
"prompt": "A photo of a lavender cat",
"sampler": "uni_pc",
"scheduler": "normal",
"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-07-27T18:20:07.143054Z",
"created_at": "2024-07-27T18:19:54.146000Z",
"data_removed": false,
"error": null,
"id": "kh41eknhm9rj00cgynnvh1excr",
"input": {
"cfg": 3.5,
"shift": 1,
"width": 1024,
"height": 1024,
"prompt": "A photo of a lavender cat",
"sampler": "uni_pc",
"scheduler": "normal",
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
},
"logs": "Random seed set to: 1905931290\nRunning workflow\ngot prompt\nExecuting node 3, title: KSampler, class type: KSampler\n 0%| | 0/25 [00:00<?, ?it/s]\n 8%|▊ | 2/25 [00:00<00:06, 3.52it/s]\n 12%|█▏ | 3/25 [00:01<00:08, 2.72it/s]\n 16%|█▌ | 4/25 [00:01<00:08, 2.44it/s]\n 20%|██ | 5/25 [00:02<00:08, 2.30it/s]\n 24%|██▍ | 6/25 [00:02<00:08, 2.22it/s]\n 28%|██▊ | 7/25 [00:02<00:08, 2.17it/s]\n 32%|███▏ | 8/25 [00:03<00:07, 2.13it/s]\n 36%|███▌ | 9/25 [00:03<00:07, 2.11it/s]\n 40%|████ | 10/25 [00:04<00:07, 2.10it/s]\n 44%|████▍ | 11/25 [00:04<00:06, 2.09it/s]\n 48%|████▊ | 12/25 [00:05<00:06, 2.08it/s]\n 52%|█████▏ | 13/25 [00:05<00:05, 2.08it/s]\n 56%|█████▌ | 14/25 [00:06<00:05, 2.08it/s]\n 60%|██████ | 15/25 [00:06<00:04, 2.07it/s]\n 64%|██████▍ | 16/25 [00:07<00:04, 2.07it/s]\n 68%|██████▊ | 17/25 [00:07<00:03, 2.07it/s]\n 72%|███████▏ | 18/25 [00:08<00:03, 2.07it/s]\n 76%|███████▌ | 19/25 [00:08<00:02, 2.07it/s]\n 80%|████████ | 20/25 [00:09<00:02, 2.07it/s]\n 84%|████████▍ | 21/25 [00:09<00:01, 2.07it/s]\n 88%|████████▊ | 22/25 [00:10<00:01, 2.06it/s]\n 92%|█████████▏| 23/25 [00:10<00:00, 2.06it/s]\n 96%|█████████▌| 24/25 [00:11<00:00, 2.06it/s]\n100%|██████████| 25/25 [00:12<00:00, 1.66it/s]\n100%|██████████| 25/25 [00:12<00:00, 2.07it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 9, title: Save Image, class type: SaveImage\nPrompt executed in 12.45 seconds\noutputs: {'9': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nComfyUI_00001_.png",
"metrics": {
"predict_time": 12.986397748,
"total_time": 12.997054
},
"output": [
"https://replicate.delivery/yhqm/nlA4mIDPNFocFNks4CG90QPffqXmq2bzgqsUJOiCXWyWxuMTA/ComfyUI_00001_.webp"
],
"started_at": "2024-07-27T18:19:54.156656Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/kh41eknhm9rj00cgynnvh1excr",
"cancel": "https://api.replicate.com/v1/predictions/kh41eknhm9rj00cgynnvh1excr/cancel"
},
"version": "e784141e567364018b6c24297273e910b80c468c60ccb2a2a6642c034c7d43ee"
}
Random seed set to: 1905931290
Running workflow
got prompt
Executing node 3, title: KSampler, class type: KSampler
0%| | 0/25 [00:00<?, ?it/s]
8%|▊ | 2/25 [00:00<00:06, 3.52it/s]
12%|█▏ | 3/25 [00:01<00:08, 2.72it/s]
16%|█▌ | 4/25 [00:01<00:08, 2.44it/s]
20%|██ | 5/25 [00:02<00:08, 2.30it/s]
24%|██▍ | 6/25 [00:02<00:08, 2.22it/s]
28%|██▊ | 7/25 [00:02<00:08, 2.17it/s]
32%|███▏ | 8/25 [00:03<00:07, 2.13it/s]
36%|███▌ | 9/25 [00:03<00:07, 2.11it/s]
40%|████ | 10/25 [00:04<00:07, 2.10it/s]
44%|████▍ | 11/25 [00:04<00:06, 2.09it/s]
48%|████▊ | 12/25 [00:05<00:06, 2.08it/s]
52%|█████▏ | 13/25 [00:05<00:05, 2.08it/s]
56%|█████▌ | 14/25 [00:06<00:05, 2.08it/s]
60%|██████ | 15/25 [00:06<00:04, 2.07it/s]
64%|██████▍ | 16/25 [00:07<00:04, 2.07it/s]
68%|██████▊ | 17/25 [00:07<00:03, 2.07it/s]
72%|███████▏ | 18/25 [00:08<00:03, 2.07it/s]
76%|███████▌ | 19/25 [00:08<00:02, 2.07it/s]
80%|████████ | 20/25 [00:09<00:02, 2.07it/s]
84%|████████▍ | 21/25 [00:09<00:01, 2.07it/s]
88%|████████▊ | 22/25 [00:10<00:01, 2.06it/s]
92%|█████████▏| 23/25 [00:10<00:00, 2.06it/s]
96%|█████████▌| 24/25 [00:11<00:00, 2.06it/s]
100%|██████████| 25/25 [00:12<00:00, 1.66it/s]
100%|██████████| 25/25 [00:12<00:00, 2.07it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 9, title: Save Image, class type: SaveImage
Prompt executed in 12.45 seconds
outputs: {'9': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
ComfyUI_00001_.png