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 /realvisxl2-lcm:47963344
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 lucataco/realvisxl2-lcm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/realvisxl2-lcm:479633443fc6588e1e8ae764b79cdb3702d0c196e0cb2de6db39ce577383be77",
{
input: {
seed: 34694,
width: 1024,
height: 1024,
prompt: "dark shot, front shot, photo of a 25 y.o latino man, perfect eyes, natural skin, skin moles, looks at viewer, cinematic shot",
scheduler: "LCM",
num_outputs: 1,
guidance_scale: 2,
apply_watermark: true,
negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
prompt_strength: 0.8,
num_inference_steps: 6
}
}
);
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 lucataco/realvisxl2-lcm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/realvisxl2-lcm:479633443fc6588e1e8ae764b79cdb3702d0c196e0cb2de6db39ce577383be77",
input={
"seed": 34694,
"width": 1024,
"height": 1024,
"prompt": "dark shot, front shot, photo of a 25 y.o latino man, perfect eyes, natural skin, skin moles, looks at viewer, cinematic shot",
"scheduler": "LCM",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": True,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"prompt_strength": 0.8,
"num_inference_steps": 6
}
)
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/realvisxl2-lcm 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": "479633443fc6588e1e8ae764b79cdb3702d0c196e0cb2de6db39ce577383be77",
"input": {
"seed": 34694,
"width": 1024,
"height": 1024,
"prompt": "dark shot, front shot, photo of a 25 y.o latino man, perfect eyes, natural skin, skin moles, looks at viewer, cinematic shot",
"scheduler": "LCM",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": true,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"prompt_strength": 0.8,
"num_inference_steps": 6
}
}' \
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": "2023-11-15T23:06:59.108210Z",
"created_at": "2023-11-15T23:06:56.321159Z",
"data_removed": false,
"error": null,
"id": "xbpexxtb6uqgh77hbusyq34tca",
"input": {
"seed": 34694,
"width": 1024,
"height": 1024,
"prompt": "dark shot, front shot, photo of a 25 y.o latino man, perfect eyes, natural skin, skin moles, looks at viewer, cinematic shot",
"scheduler": "LCM",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": true,
"negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"prompt_strength": 0.8,
"num_inference_steps": 6
},
"logs": "Using seed: 34694\nPrompt: dark shot, front shot, photo of a 25 y.o latino man, perfect eyes, natural skin, skin moles, looks at viewer, cinematic shot\ntxt2img mode\nThe config attributes {'skip_prk_steps': True} were passed to LCMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.\n 0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:00, 8.94it/s]\n 33%|███▎ | 2/6 [00:00<00:00, 8.86it/s]\n 50%|█████ | 3/6 [00:00<00:00, 8.87it/s]\n 67%|██████▋ | 4/6 [00:00<00:00, 8.86it/s]\n 83%|████████▎ | 5/6 [00:00<00:00, 8.84it/s]\n100%|██████████| 6/6 [00:00<00:00, 8.82it/s]\n100%|██████████| 6/6 [00:00<00:00, 8.84it/s]",
"metrics": {
"predict_time": 2.750163,
"total_time": 2.787051
},
"output": [
"https://replicate.delivery/pbxt/ILTzFdAenk1JLKVb7jZbEDUOUJGz7hSFFSArhCnxin7ICY8IA/out-0.png"
],
"started_at": "2023-11-15T23:06:56.358047Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/xbpexxtb6uqgh77hbusyq34tca",
"cancel": "https://api.replicate.com/v1/predictions/xbpexxtb6uqgh77hbusyq34tca/cancel"
},
"version": "479633443fc6588e1e8ae764b79cdb3702d0c196e0cb2de6db39ce577383be77"
}
Using seed: 34694
Prompt: dark shot, front shot, photo of a 25 y.o latino man, perfect eyes, natural skin, skin moles, looks at viewer, cinematic shot
txt2img mode
The config attributes {'skip_prk_steps': True} were passed to LCMScheduler, but are not expected and will be ignored. Please verify your scheduler_config.json configuration file.
0%| | 0/6 [00:00<?, ?it/s]
17%|█▋ | 1/6 [00:00<00:00, 8.94it/s]
33%|███▎ | 2/6 [00:00<00:00, 8.86it/s]
50%|█████ | 3/6 [00:00<00:00, 8.87it/s]
67%|██████▋ | 4/6 [00:00<00:00, 8.86it/s]
83%|████████▎ | 5/6 [00:00<00:00, 8.84it/s]
100%|██████████| 6/6 [00:00<00:00, 8.82it/s]
100%|██████████| 6/6 [00:00<00:00, 8.84it/s]