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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run paisparatodos/carlitos using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"paisparatodos/carlitos:446a59cce039734f160acb35b02fe470e52ee1b98a7758d3536655ec86671dff",
{
input: {
image: "https://replicate.delivery/pbxt/Mslb6eUxgPG9DladEGkGGAjJ0lRR00ITn4BGJPn4UDIADvux/hombre%20con%20terno%20negro%20camisa%20blanca%20y%20corbata%20negra%20con%20la%20banda%20presidencial%20del%20peru.webp",
model: "dev",
prompt: "Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 3,
aspect_ratio: "1:1",
output_format: "jpg",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
// 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 paisparatodos/carlitos using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"paisparatodos/carlitos:446a59cce039734f160acb35b02fe470e52ee1b98a7758d3536655ec86671dff",
input={
"image": "https://replicate.delivery/pbxt/Mslb6eUxgPG9DladEGkGGAjJ0lRR00ITn4BGJPn4UDIADvux/hombre%20con%20terno%20negro%20camisa%20blanca%20y%20corbata%20negra%20con%20la%20banda%20presidencial%20del%20peru.webp",
"model": "dev",
"prompt": "Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 3,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
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 paisparatodos/carlitos 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": "paisparatodos/carlitos:446a59cce039734f160acb35b02fe470e52ee1b98a7758d3536655ec86671dff",
"input": {
"image": "https://replicate.delivery/pbxt/Mslb6eUxgPG9DladEGkGGAjJ0lRR00ITn4BGJPn4UDIADvux/hombre%20con%20terno%20negro%20camisa%20blanca%20y%20corbata%20negra%20con%20la%20banda%20presidencial%20del%20peru.webp",
"model": "dev",
"prompt": "Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 3,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
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": "2025-04-22T17:23:06.997620Z",
"created_at": "2025-04-22T17:22:57.146000Z",
"data_removed": false,
"error": null,
"id": "yhy14t9sz9rmc0cpbt3a3k9bfr",
"input": {
"image": "https://replicate.delivery/pbxt/Mslb6eUxgPG9DladEGkGGAjJ0lRR00ITn4BGJPn4UDIADvux/hombre%20con%20terno%20negro%20camisa%20blanca%20y%20corbata%20negra%20con%20la%20banda%20presidencial%20del%20peru.webp",
"model": "dev",
"prompt": "Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 3,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "free=23981026512896\nDownloading weights\n2025-04-22T17:22:57Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpfndndczp/weights url=https://replicate.delivery/xezq/EiJBxF4qAE65JVBvshbTMxEas0TBfsnmkYf6xFlPH7IfNvKpA/trained_model.tar\n2025-04-22T17:22:57Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local\n2025-04-22T17:23:01Z | INFO | [ Complete ] dest=/tmp/tmpfndndczp/weights size=\"172 MB\" total_elapsed=3.771s url=https://replicate.delivery/xezq/EiJBxF4qAE65JVBvshbTMxEas0TBfsnmkYf6xFlPH7IfNvKpA/trained_model.tar\nDownloaded weights in 3.79s\nLoaded LoRAs in 4.36s\nUsing seed: 20375\nPrompt: Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú\nInput image size: 500x381\n[!] Resizing input image from 500x381 to 512x384\n[!] img2img mode\n 0%| | 0/23 [00:00<?, ?it/s]\n 4%|▍ | 1/23 [00:00<00:03, 6.14it/s]\n 9%|▊ | 2/23 [00:00<00:03, 5.41it/s]\n 13%|█▎ | 3/23 [00:00<00:03, 5.22it/s]\n 17%|█▋ | 4/23 [00:00<00:03, 5.14it/s]\n 22%|██▏ | 5/23 [00:00<00:03, 5.09it/s]\n 26%|██▌ | 6/23 [00:01<00:03, 5.06it/s]\n 30%|███ | 7/23 [00:01<00:03, 5.03it/s]\n 35%|███▍ | 8/23 [00:01<00:02, 5.03it/s]\n 39%|███▉ | 9/23 [00:01<00:02, 5.02it/s]\n 43%|████▎ | 10/23 [00:01<00:02, 5.02it/s]\n 48%|████▊ | 11/23 [00:02<00:02, 5.02it/s]\n 52%|█████▏ | 12/23 [00:02<00:02, 5.02it/s]\n 57%|█████▋ | 13/23 [00:02<00:01, 5.02it/s]\n 61%|██████ | 14/23 [00:02<00:01, 5.01it/s]\n 65%|██████▌ | 15/23 [00:02<00:01, 5.00it/s]\n 70%|██████▉ | 16/23 [00:03<00:01, 5.00it/s]\n 74%|███████▍ | 17/23 [00:03<00:01, 5.00it/s]\n 78%|███████▊ | 18/23 [00:03<00:01, 5.00it/s]\n 83%|████████▎ | 19/23 [00:03<00:00, 5.00it/s]\n 87%|████████▋ | 20/23 [00:03<00:00, 4.99it/s]\n 91%|█████████▏| 21/23 [00:04<00:00, 5.00it/s]\n 96%|█████████▌| 22/23 [00:04<00:00, 4.99it/s]\n100%|██████████| 23/23 [00:04<00:00, 4.99it/s]\n100%|██████████| 23/23 [00:04<00:00, 5.04it/s]\nTotal safe images: 3 out of 3",
"metrics": {
"predict_time": 9.720940784,
"total_time": 9.85162
},
"output": [
"https://replicate.delivery/xezq/9CCvWuZdMiLvHBALfRWNlWtSiDPM32IaubwRLe3AoG86JYlUA/out-0.jpg",
"https://replicate.delivery/xezq/eU1UoosMvcywHqIUTyYnhxkAhUlelD3aOseX0aWKlPT0TwKpA/out-1.jpg",
"https://replicate.delivery/xezq/hE3QTmHqiLLxH1Oqyzp2alAtkg7kxNYhPcMFpxVIwfT9EsSKA/out-2.jpg"
],
"started_at": "2025-04-22T17:22:57.276679Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-6wqlmmgc2rvbwkg2mqk7bcseatpahbafmjaajn7s7fepmmcs5ndq",
"get": "https://api.replicate.com/v1/predictions/yhy14t9sz9rmc0cpbt3a3k9bfr",
"cancel": "https://api.replicate.com/v1/predictions/yhy14t9sz9rmc0cpbt3a3k9bfr/cancel"
},
"version": "614a0d8449b68081f568890cfe36cc538a09251016e18d38e7a48b8a41eecd7e"
}
free=23981026512896
Downloading weights
2025-04-22T17:22:57Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpfndndczp/weights url=https://replicate.delivery/xezq/EiJBxF4qAE65JVBvshbTMxEas0TBfsnmkYf6xFlPH7IfNvKpA/trained_model.tar
2025-04-22T17:22:57Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-04-22T17:23:01Z | INFO | [ Complete ] dest=/tmp/tmpfndndczp/weights size="172 MB" total_elapsed=3.771s url=https://replicate.delivery/xezq/EiJBxF4qAE65JVBvshbTMxEas0TBfsnmkYf6xFlPH7IfNvKpA/trained_model.tar
Downloaded weights in 3.79s
Loaded LoRAs in 4.36s
Using seed: 20375
Prompt: Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú
Input image size: 500x381
[!] Resizing input image from 500x381 to 512x384
[!] img2img mode
0%| | 0/23 [00:00<?, ?it/s]
4%|▍ | 1/23 [00:00<00:03, 6.14it/s]
9%|▊ | 2/23 [00:00<00:03, 5.41it/s]
13%|█▎ | 3/23 [00:00<00:03, 5.22it/s]
17%|█▋ | 4/23 [00:00<00:03, 5.14it/s]
22%|██▏ | 5/23 [00:00<00:03, 5.09it/s]
26%|██▌ | 6/23 [00:01<00:03, 5.06it/s]
30%|███ | 7/23 [00:01<00:03, 5.03it/s]
35%|███▍ | 8/23 [00:01<00:02, 5.03it/s]
39%|███▉ | 9/23 [00:01<00:02, 5.02it/s]
43%|████▎ | 10/23 [00:01<00:02, 5.02it/s]
48%|████▊ | 11/23 [00:02<00:02, 5.02it/s]
52%|█████▏ | 12/23 [00:02<00:02, 5.02it/s]
57%|█████▋ | 13/23 [00:02<00:01, 5.02it/s]
61%|██████ | 14/23 [00:02<00:01, 5.01it/s]
65%|██████▌ | 15/23 [00:02<00:01, 5.00it/s]
70%|██████▉ | 16/23 [00:03<00:01, 5.00it/s]
74%|███████▍ | 17/23 [00:03<00:01, 5.00it/s]
78%|███████▊ | 18/23 [00:03<00:01, 5.00it/s]
83%|████████▎ | 19/23 [00:03<00:00, 5.00it/s]
87%|████████▋ | 20/23 [00:03<00:00, 4.99it/s]
91%|█████████▏| 21/23 [00:04<00:00, 5.00it/s]
96%|█████████▌| 22/23 [00:04<00:00, 4.99it/s]
100%|██████████| 23/23 [00:04<00:00, 4.99it/s]
100%|██████████| 23/23 [00:04<00:00, 5.04it/s]
Total safe images: 3 out of 3
This output was created using a different version of the model, paisparatodos/carlitos:614a0d84.
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.
This model runs on H100 hardware which costs $0.001525 per second. View more.
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
free=23981026512896
Downloading weights
2025-04-22T17:22:57Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpfndndczp/weights url=https://replicate.delivery/xezq/EiJBxF4qAE65JVBvshbTMxEas0TBfsnmkYf6xFlPH7IfNvKpA/trained_model.tar
2025-04-22T17:22:57Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-04-22T17:23:01Z | INFO | [ Complete ] dest=/tmp/tmpfndndczp/weights size="172 MB" total_elapsed=3.771s url=https://replicate.delivery/xezq/EiJBxF4qAE65JVBvshbTMxEas0TBfsnmkYf6xFlPH7IfNvKpA/trained_model.tar
Downloaded weights in 3.79s
Loaded LoRAs in 4.36s
Using seed: 20375
Prompt: Carlos Álvarez presidente del Perú da un discurso en el congreso de la republica del Perú y esta vestido con terno negro, camisa blanca, corbata negra y la banda presidencial del Perú
Input image size: 500x381
[!] Resizing input image from 500x381 to 512x384
[!] img2img mode
0%| | 0/23 [00:00<?, ?it/s]
4%|▍ | 1/23 [00:00<00:03, 6.14it/s]
9%|▊ | 2/23 [00:00<00:03, 5.41it/s]
13%|█▎ | 3/23 [00:00<00:03, 5.22it/s]
17%|█▋ | 4/23 [00:00<00:03, 5.14it/s]
22%|██▏ | 5/23 [00:00<00:03, 5.09it/s]
26%|██▌ | 6/23 [00:01<00:03, 5.06it/s]
30%|███ | 7/23 [00:01<00:03, 5.03it/s]
35%|███▍ | 8/23 [00:01<00:02, 5.03it/s]
39%|███▉ | 9/23 [00:01<00:02, 5.02it/s]
43%|████▎ | 10/23 [00:01<00:02, 5.02it/s]
48%|████▊ | 11/23 [00:02<00:02, 5.02it/s]
52%|█████▏ | 12/23 [00:02<00:02, 5.02it/s]
57%|█████▋ | 13/23 [00:02<00:01, 5.02it/s]
61%|██████ | 14/23 [00:02<00:01, 5.01it/s]
65%|██████▌ | 15/23 [00:02<00:01, 5.00it/s]
70%|██████▉ | 16/23 [00:03<00:01, 5.00it/s]
74%|███████▍ | 17/23 [00:03<00:01, 5.00it/s]
78%|███████▊ | 18/23 [00:03<00:01, 5.00it/s]
83%|████████▎ | 19/23 [00:03<00:00, 5.00it/s]
87%|████████▋ | 20/23 [00:03<00:00, 4.99it/s]
91%|█████████▏| 21/23 [00:04<00:00, 5.00it/s]
96%|█████████▌| 22/23 [00:04<00:00, 4.99it/s]
100%|██████████| 23/23 [00:04<00:00, 4.99it/s]
100%|██████████| 23/23 [00:04<00:00, 5.04it/s]
Total safe images: 3 out of 3