Readme
This model doesn't have a readme.
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 ludocomito/flux-caravaggio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"ludocomito/flux-caravaggio:383a996094f5f49f068fc12a10d3d3ed9e64df91ad967747e058013947602521",
{
input: {
model: "dev",
prompt: "Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 0.8,
num_inference_steps: 45
}
}
);
// 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 ludocomito/flux-caravaggio using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ludocomito/flux-caravaggio:383a996094f5f49f068fc12a10d3d3ed9e64df91ad967747e058013947602521",
input={
"model": "dev",
"prompt": "Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 45
}
)
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 ludocomito/flux-caravaggio 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": "383a996094f5f49f068fc12a10d3d3ed9e64df91ad967747e058013947602521",
"input": {
"model": "dev",
"prompt": "Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 45
}
}' \
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
{
"completed_at": "2024-08-25T23:22:10.674751Z",
"created_at": "2024-08-25T23:21:57.924000Z",
"data_removed": false,
"error": null,
"id": "7dh3b7n9mhrm00chhfc8z6gvq0",
"input": {
"model": "dev",
"prompt": "Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"extra_lora_scale": 0.8,
"num_inference_steps": 45
},
"logs": "Using seed: 47295\nPrompt: Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO\ntxt2img mode\nUsing dev model\nWeights already loaded\nLoaded LoRAs in 0.04s\n 0%| | 0/45 [00:00<?, ?it/s]\n 2%|▏ | 1/45 [00:00<00:11, 3.68it/s]\n 4%|▍ | 2/45 [00:00<00:10, 4.23it/s]\n 7%|▋ | 3/45 [00:00<00:10, 3.96it/s]\n 9%|▉ | 4/45 [00:01<00:10, 3.85it/s]\n 11%|█ | 5/45 [00:01<00:10, 3.79it/s]\n 13%|█▎ | 6/45 [00:01<00:10, 3.75it/s]\n 16%|█▌ | 7/45 [00:01<00:10, 3.73it/s]\n 18%|█▊ | 8/45 [00:02<00:09, 3.71it/s]\n 20%|██ | 9/45 [00:02<00:09, 3.70it/s]\n 22%|██▏ | 10/45 [00:02<00:09, 3.69it/s]\n 24%|██▍ | 11/45 [00:02<00:09, 3.69it/s]\n 27%|██▋ | 12/45 [00:03<00:08, 3.69it/s]\n 29%|██▉ | 13/45 [00:03<00:08, 3.68it/s]\n 31%|███ | 14/45 [00:03<00:08, 3.68it/s]\n 33%|███▎ | 15/45 [00:04<00:08, 3.68it/s]\n 36%|███▌ | 16/45 [00:04<00:07, 3.68it/s]\n 38%|███▊ | 17/45 [00:04<00:07, 3.68it/s]\n 40%|████ | 18/45 [00:04<00:07, 3.68it/s]\n 42%|████▏ | 19/45 [00:05<00:07, 3.68it/s]\n 44%|████▍ | 20/45 [00:05<00:06, 3.68it/s]\n 47%|████▋ | 21/45 [00:05<00:06, 3.68it/s]\n 49%|████▉ | 22/45 [00:05<00:06, 3.68it/s]\n 51%|█████ | 23/45 [00:06<00:05, 3.68it/s]\n 53%|█████▎ | 24/45 [00:06<00:05, 3.68it/s]\n 56%|█████▌ | 25/45 [00:06<00:05, 3.68it/s]\n 58%|█████▊ | 26/45 [00:07<00:05, 3.68it/s]\n 60%|██████ | 27/45 [00:07<00:04, 3.68it/s]\n 62%|██████▏ | 28/45 [00:07<00:04, 3.68it/s]\n 64%|██████▍ | 29/45 [00:07<00:04, 3.68it/s]\n 67%|██████▋ | 30/45 [00:08<00:04, 3.68it/s]\n 69%|██████▉ | 31/45 [00:08<00:03, 3.68it/s]\n 71%|███████ | 32/45 [00:08<00:03, 3.68it/s]\n 73%|███████▎ | 33/45 [00:08<00:03, 3.68it/s]\n 76%|███████▌ | 34/45 [00:09<00:02, 3.68it/s]\n 78%|███████▊ | 35/45 [00:09<00:02, 3.68it/s]\n 80%|████████ | 36/45 [00:09<00:02, 3.68it/s]\n 82%|████████▏ | 37/45 [00:09<00:02, 3.68it/s]\n 84%|████████▍ | 38/45 [00:10<00:01, 3.68it/s]\n 87%|████████▋ | 39/45 [00:10<00:01, 3.68it/s]\n 89%|████████▉ | 40/45 [00:10<00:01, 3.68it/s]\n 91%|█████████ | 41/45 [00:11<00:01, 3.68it/s]\n 93%|█████████▎| 42/45 [00:11<00:00, 3.67it/s]\n 96%|█████████▌| 43/45 [00:11<00:00, 3.68it/s]\n 98%|█████████▊| 44/45 [00:11<00:00, 3.68it/s]\n100%|██████████| 45/45 [00:12<00:00, 3.68it/s]\n100%|██████████| 45/45 [00:12<00:00, 3.70it/s]",
"metrics": {
"predict_time": 12.740603896,
"total_time": 12.750751
},
"output": [
"https://replicate.delivery/yhqm/dv8ynzli9kICA9UszgrhPs1gheTJMBvI8y1xBVGeYfxE1tsmA/out-0.webp"
],
"started_at": "2024-08-25T23:21:57.934147Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/7dh3b7n9mhrm00chhfc8z6gvq0",
"cancel": "https://api.replicate.com/v1/predictions/7dh3b7n9mhrm00chhfc8z6gvq0/cancel"
},
"version": "383a996094f5f49f068fc12a10d3d3ed9e64df91ad967747e058013947602521"
}
Using seed: 47295
Prompt: Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO
txt2img mode
Using dev model
Weights already loaded
Loaded LoRAs in 0.04s
0%| | 0/45 [00:00<?, ?it/s]
2%|▏ | 1/45 [00:00<00:11, 3.68it/s]
4%|▍ | 2/45 [00:00<00:10, 4.23it/s]
7%|▋ | 3/45 [00:00<00:10, 3.96it/s]
9%|▉ | 4/45 [00:01<00:10, 3.85it/s]
11%|█ | 5/45 [00:01<00:10, 3.79it/s]
13%|█▎ | 6/45 [00:01<00:10, 3.75it/s]
16%|█▌ | 7/45 [00:01<00:10, 3.73it/s]
18%|█▊ | 8/45 [00:02<00:09, 3.71it/s]
20%|██ | 9/45 [00:02<00:09, 3.70it/s]
22%|██▏ | 10/45 [00:02<00:09, 3.69it/s]
24%|██▍ | 11/45 [00:02<00:09, 3.69it/s]
27%|██▋ | 12/45 [00:03<00:08, 3.69it/s]
29%|██▉ | 13/45 [00:03<00:08, 3.68it/s]
31%|███ | 14/45 [00:03<00:08, 3.68it/s]
33%|███▎ | 15/45 [00:04<00:08, 3.68it/s]
36%|███▌ | 16/45 [00:04<00:07, 3.68it/s]
38%|███▊ | 17/45 [00:04<00:07, 3.68it/s]
40%|████ | 18/45 [00:04<00:07, 3.68it/s]
42%|████▏ | 19/45 [00:05<00:07, 3.68it/s]
44%|████▍ | 20/45 [00:05<00:06, 3.68it/s]
47%|████▋ | 21/45 [00:05<00:06, 3.68it/s]
49%|████▉ | 22/45 [00:05<00:06, 3.68it/s]
51%|█████ | 23/45 [00:06<00:05, 3.68it/s]
53%|█████▎ | 24/45 [00:06<00:05, 3.68it/s]
56%|█████▌ | 25/45 [00:06<00:05, 3.68it/s]
58%|█████▊ | 26/45 [00:07<00:05, 3.68it/s]
60%|██████ | 27/45 [00:07<00:04, 3.68it/s]
62%|██████▏ | 28/45 [00:07<00:04, 3.68it/s]
64%|██████▍ | 29/45 [00:07<00:04, 3.68it/s]
67%|██████▋ | 30/45 [00:08<00:04, 3.68it/s]
69%|██████▉ | 31/45 [00:08<00:03, 3.68it/s]
71%|███████ | 32/45 [00:08<00:03, 3.68it/s]
73%|███████▎ | 33/45 [00:08<00:03, 3.68it/s]
76%|███████▌ | 34/45 [00:09<00:02, 3.68it/s]
78%|███████▊ | 35/45 [00:09<00:02, 3.68it/s]
80%|████████ | 36/45 [00:09<00:02, 3.68it/s]
82%|████████▏ | 37/45 [00:09<00:02, 3.68it/s]
84%|████████▍ | 38/45 [00:10<00:01, 3.68it/s]
87%|████████▋ | 39/45 [00:10<00:01, 3.68it/s]
89%|████████▉ | 40/45 [00:10<00:01, 3.68it/s]
91%|█████████ | 41/45 [00:11<00:01, 3.68it/s]
93%|█████████▎| 42/45 [00:11<00:00, 3.67it/s]
96%|█████████▌| 43/45 [00:11<00:00, 3.68it/s]
98%|█████████▊| 44/45 [00:11<00:00, 3.68it/s]
100%|██████████| 45/45 [00:12<00:00, 3.68it/s]
100%|██████████| 45/45 [00:12<00:00, 3.70it/s]
This model runs on Nvidia H100 GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is warm. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
Using seed: 47295
Prompt: Painting of a couple man and woman dancing in a room with a window shading light, dramatic emphasize lights and shadows in the style of CARAVAGGIO
txt2img mode
Using dev model
Weights already loaded
Loaded LoRAs in 0.04s
0%| | 0/45 [00:00<?, ?it/s]
2%|▏ | 1/45 [00:00<00:11, 3.68it/s]
4%|▍ | 2/45 [00:00<00:10, 4.23it/s]
7%|▋ | 3/45 [00:00<00:10, 3.96it/s]
9%|▉ | 4/45 [00:01<00:10, 3.85it/s]
11%|█ | 5/45 [00:01<00:10, 3.79it/s]
13%|█▎ | 6/45 [00:01<00:10, 3.75it/s]
16%|█▌ | 7/45 [00:01<00:10, 3.73it/s]
18%|█▊ | 8/45 [00:02<00:09, 3.71it/s]
20%|██ | 9/45 [00:02<00:09, 3.70it/s]
22%|██▏ | 10/45 [00:02<00:09, 3.69it/s]
24%|██▍ | 11/45 [00:02<00:09, 3.69it/s]
27%|██▋ | 12/45 [00:03<00:08, 3.69it/s]
29%|██▉ | 13/45 [00:03<00:08, 3.68it/s]
31%|███ | 14/45 [00:03<00:08, 3.68it/s]
33%|███▎ | 15/45 [00:04<00:08, 3.68it/s]
36%|███▌ | 16/45 [00:04<00:07, 3.68it/s]
38%|███▊ | 17/45 [00:04<00:07, 3.68it/s]
40%|████ | 18/45 [00:04<00:07, 3.68it/s]
42%|████▏ | 19/45 [00:05<00:07, 3.68it/s]
44%|████▍ | 20/45 [00:05<00:06, 3.68it/s]
47%|████▋ | 21/45 [00:05<00:06, 3.68it/s]
49%|████▉ | 22/45 [00:05<00:06, 3.68it/s]
51%|█████ | 23/45 [00:06<00:05, 3.68it/s]
53%|█████▎ | 24/45 [00:06<00:05, 3.68it/s]
56%|█████▌ | 25/45 [00:06<00:05, 3.68it/s]
58%|█████▊ | 26/45 [00:07<00:05, 3.68it/s]
60%|██████ | 27/45 [00:07<00:04, 3.68it/s]
62%|██████▏ | 28/45 [00:07<00:04, 3.68it/s]
64%|██████▍ | 29/45 [00:07<00:04, 3.68it/s]
67%|██████▋ | 30/45 [00:08<00:04, 3.68it/s]
69%|██████▉ | 31/45 [00:08<00:03, 3.68it/s]
71%|███████ | 32/45 [00:08<00:03, 3.68it/s]
73%|███████▎ | 33/45 [00:08<00:03, 3.68it/s]
76%|███████▌ | 34/45 [00:09<00:02, 3.68it/s]
78%|███████▊ | 35/45 [00:09<00:02, 3.68it/s]
80%|████████ | 36/45 [00:09<00:02, 3.68it/s]
82%|████████▏ | 37/45 [00:09<00:02, 3.68it/s]
84%|████████▍ | 38/45 [00:10<00:01, 3.68it/s]
87%|████████▋ | 39/45 [00:10<00:01, 3.68it/s]
89%|████████▉ | 40/45 [00:10<00:01, 3.68it/s]
91%|█████████ | 41/45 [00:11<00:01, 3.68it/s]
93%|█████████▎| 42/45 [00:11<00:00, 3.67it/s]
96%|█████████▌| 43/45 [00:11<00:00, 3.68it/s]
98%|█████████▊| 44/45 [00:11<00:00, 3.68it/s]
100%|██████████| 45/45 [00:12<00:00, 3.68it/s]
100%|██████████| 45/45 [00:12<00:00, 3.70it/s]