Readme
This model doesn't have a readme.
A1111 webui api
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 llsean/cog-a1111-webui using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"llsean/cog-a1111-webui:f254d34e1d79fa724fd80b5649ddd99eb128b9fdab16c988bf59f4a27c45f656",
{
input: {
seed: -1,
width: 512,
height: 512,
prompt: " a man",
hr_scale: 2,
hr_steps: 20,
enable_hr: false,
scheduler: "DPM++ SDE Karras",
hr_upscaler: "Latent",
num_outputs: 1,
guidance_scale: 7.5,
negative_prompt: "",
denoising_strength: 0.5,
num_inference_steps: 20
}
}
);
// 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 llsean/cog-a1111-webui using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"llsean/cog-a1111-webui:f254d34e1d79fa724fd80b5649ddd99eb128b9fdab16c988bf59f4a27c45f656",
input={
"seed": -1,
"width": 512,
"height": 512,
"prompt": " a man",
"hr_scale": 2,
"hr_steps": 20,
"enable_hr": False,
"scheduler": "DPM++ SDE Karras",
"hr_upscaler": "Latent",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "",
"denoising_strength": 0.5,
"num_inference_steps": 20
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
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 llsean/cog-a1111-webui 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": "llsean/cog-a1111-webui:f254d34e1d79fa724fd80b5649ddd99eb128b9fdab16c988bf59f4a27c45f656",
"input": {
"seed": -1,
"width": 512,
"height": 512,
"prompt": " a man",
"hr_scale": 2,
"hr_steps": 20,
"enable_hr": false,
"scheduler": "DPM++ SDE Karras",
"hr_upscaler": "Latent",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "",
"denoising_strength": 0.5,
"num_inference_steps": 20
}
}' \
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": "2023-11-28T14:16:06.398065Z",
"created_at": "2023-11-28T14:16:02.342583Z",
"data_removed": false,
"error": null,
"id": "kf4ltl3b6up5en3upoo6qhldka",
"input": {
"seed": -1,
"width": 512,
"height": 512,
"prompt": " a man",
"hr_scale": 2,
"hr_steps": 20,
"enable_hr": false,
"scheduler": "DPM++ SDE Karras",
"hr_upscaler": "Latent",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "",
"denoising_strength": 0.5,
"num_inference_steps": 20
},
"logs": "0%| | 0/20 [00:00<?, ?it/s]\nTotal progress: 0%| | 0/20 [00:00<?, ?it/s]\u001b[A\n 5%|▌ | 1/20 [00:00<00:02, 7.24it/s]\n 10%|█ | 2/20 [00:00<00:02, 7.23it/s]\nTotal progress: 10%|█ | 2/20 [00:00<00:01, 15.05it/s]\u001b[A\n 15%|█▌ | 3/20 [00:00<00:02, 7.24it/s]\n 20%|██ | 4/20 [00:00<00:02, 7.21it/s]\nTotal progress: 20%|██ | 4/20 [00:00<00:01, 9.20it/s]\u001b[A\n 25%|██▌ | 5/20 [00:00<00:02, 7.21it/s]\nTotal progress: 30%|███ | 6/20 [00:00<00:01, 8.13it/s]\u001b[A\n 30%|███ | 6/20 [00:00<00:01, 7.20it/s]\nTotal progress: 35%|███▌ | 7/20 [00:00<00:01, 7.90it/s]\u001b[A\n 35%|███▌ | 7/20 [00:00<00:01, 7.24it/s]\nTotal progress: 40%|████ | 8/20 [00:00<00:01, 7.72it/s]\u001b[A\n 40%|████ | 8/20 [00:01<00:01, 7.21it/s]\nTotal progress: 45%|████▌ | 9/20 [00:01<00:01, 7.55it/s]\u001b[A\n 45%|████▌ | 9/20 [00:01<00:01, 7.15it/s]\nTotal progress: 50%|█████ | 10/20 [00:01<00:01, 7.38it/s]\u001b[A\n 50%|█████ | 10/20 [00:01<00:01, 7.10it/s]\nTotal progress: 55%|█████▌ | 11/20 [00:01<00:01, 7.27it/s]\u001b[A\n 55%|█████▌ | 11/20 [00:01<00:01, 7.12it/s]\nTotal progress: 60%|██████ | 12/20 [00:01<00:01, 7.27it/s]\u001b[A\n 60%|██████ | 12/20 [00:01<00:01, 7.17it/s]\nTotal progress: 65%|██████▌ | 13/20 [00:01<00:00, 7.26it/s]\u001b[A\n 65%|██████▌ | 13/20 [00:01<00:00, 7.20it/s]\nTotal progress: 70%|███████ | 14/20 [00:01<00:00, 7.27it/s]\u001b[A\n 70%|███████ | 14/20 [00:01<00:00, 7.15it/s]\nTotal progress: 75%|███████▌ | 15/20 [00:01<00:00, 7.20it/s]\u001b[A\n 75%|███████▌ | 15/20 [00:02<00:00, 7.21it/s]\nTotal progress: 80%|████████ | 16/20 [00:02<00:00, 7.25it/s]\u001b[A\n 80%|████████ | 16/20 [00:02<00:00, 7.27it/s]\nTotal progress: 85%|████████▌ | 17/20 [00:02<00:00, 7.30it/s]\u001b[A\n 85%|████████▌ | 17/20 [00:02<00:00, 7.27it/s]\nTotal progress: 90%|█████████ | 18/20 [00:02<00:00, 7.26it/s]\u001b[A\n 90%|█████████ | 18/20 [00:02<00:00, 7.33it/s]\nTotal progress: 95%|█████████▌| 19/20 [00:02<00:00, 7.33it/s]\u001b[A\n 95%|█████████▌| 19/20 [00:02<00:00, 7.42it/s]\n100%|██████████| 20/20 [00:02<00:00, 7.44it/s]\nTotal progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]\u001b[A\nTotal progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]\u001b[A\nTotal progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]",
"metrics": {
"predict_time": 4.023995,
"total_time": 4.055482
},
"output": [
"https://replicate.delivery/pbxt/wQxI0jRZbX7kDNGQU7YcZz6ednDbNZVIUmyCOeSKLotlg68RA/1747788793-aad5be04-8df8-11ee-95d7-eefb0558db96.png"
],
"started_at": "2023-11-28T14:16:02.374070Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/kf4ltl3b6up5en3upoo6qhldka",
"cancel": "https://api.replicate.com/v1/predictions/kf4ltl3b6up5en3upoo6qhldka/cancel"
},
"version": "f254d34e1d79fa724fd80b5649ddd99eb128b9fdab16c988bf59f4a27c45f656"
}
0%| | 0/20 [00:00<?, ?it/s]
Total progress: 0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:02, 7.24it/s]
10%|█ | 2/20 [00:00<00:02, 7.23it/s]
Total progress: 10%|█ | 2/20 [00:00<00:01, 15.05it/s]
15%|█▌ | 3/20 [00:00<00:02, 7.24it/s]
20%|██ | 4/20 [00:00<00:02, 7.21it/s]
Total progress: 20%|██ | 4/20 [00:00<00:01, 9.20it/s]
25%|██▌ | 5/20 [00:00<00:02, 7.21it/s]
Total progress: 30%|███ | 6/20 [00:00<00:01, 8.13it/s]
30%|███ | 6/20 [00:00<00:01, 7.20it/s]
Total progress: 35%|███▌ | 7/20 [00:00<00:01, 7.90it/s]
35%|███▌ | 7/20 [00:00<00:01, 7.24it/s]
Total progress: 40%|████ | 8/20 [00:00<00:01, 7.72it/s]
40%|████ | 8/20 [00:01<00:01, 7.21it/s]
Total progress: 45%|████▌ | 9/20 [00:01<00:01, 7.55it/s]
45%|████▌ | 9/20 [00:01<00:01, 7.15it/s]
Total progress: 50%|█████ | 10/20 [00:01<00:01, 7.38it/s]
50%|█████ | 10/20 [00:01<00:01, 7.10it/s]
Total progress: 55%|█████▌ | 11/20 [00:01<00:01, 7.27it/s]
55%|█████▌ | 11/20 [00:01<00:01, 7.12it/s]
Total progress: 60%|██████ | 12/20 [00:01<00:01, 7.27it/s]
60%|██████ | 12/20 [00:01<00:01, 7.17it/s]
Total progress: 65%|██████▌ | 13/20 [00:01<00:00, 7.26it/s]
65%|██████▌ | 13/20 [00:01<00:00, 7.20it/s]
Total progress: 70%|███████ | 14/20 [00:01<00:00, 7.27it/s]
70%|███████ | 14/20 [00:01<00:00, 7.15it/s]
Total progress: 75%|███████▌ | 15/20 [00:01<00:00, 7.20it/s]
75%|███████▌ | 15/20 [00:02<00:00, 7.21it/s]
Total progress: 80%|████████ | 16/20 [00:02<00:00, 7.25it/s]
80%|████████ | 16/20 [00:02<00:00, 7.27it/s]
Total progress: 85%|████████▌ | 17/20 [00:02<00:00, 7.30it/s]
85%|████████▌ | 17/20 [00:02<00:00, 7.27it/s]
Total progress: 90%|█████████ | 18/20 [00:02<00:00, 7.26it/s]
90%|█████████ | 18/20 [00:02<00:00, 7.33it/s]
Total progress: 95%|█████████▌| 19/20 [00:02<00:00, 7.33it/s]
95%|█████████▌| 19/20 [00:02<00:00, 7.42it/s]
100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
Total progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
Total progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
Total progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
This model costs approximately $0.051 to run on Replicate, or 19 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 53 seconds. The predict time for this model varies significantly based on the inputs.
This model doesn't have a readme.
This model is cold. 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 costs approximately $0.051 to run on Replicate, but this varies depending on your inputs. View more.
0%| | 0/20 [00:00<?, ?it/s]
Total progress: 0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:02, 7.24it/s]
10%|█ | 2/20 [00:00<00:02, 7.23it/s]
Total progress: 10%|█ | 2/20 [00:00<00:01, 15.05it/s]
15%|█▌ | 3/20 [00:00<00:02, 7.24it/s]
20%|██ | 4/20 [00:00<00:02, 7.21it/s]
Total progress: 20%|██ | 4/20 [00:00<00:01, 9.20it/s]
25%|██▌ | 5/20 [00:00<00:02, 7.21it/s]
Total progress: 30%|███ | 6/20 [00:00<00:01, 8.13it/s]
30%|███ | 6/20 [00:00<00:01, 7.20it/s]
Total progress: 35%|███▌ | 7/20 [00:00<00:01, 7.90it/s]
35%|███▌ | 7/20 [00:00<00:01, 7.24it/s]
Total progress: 40%|████ | 8/20 [00:00<00:01, 7.72it/s]
40%|████ | 8/20 [00:01<00:01, 7.21it/s]
Total progress: 45%|████▌ | 9/20 [00:01<00:01, 7.55it/s]
45%|████▌ | 9/20 [00:01<00:01, 7.15it/s]
Total progress: 50%|█████ | 10/20 [00:01<00:01, 7.38it/s]
50%|█████ | 10/20 [00:01<00:01, 7.10it/s]
Total progress: 55%|█████▌ | 11/20 [00:01<00:01, 7.27it/s]
55%|█████▌ | 11/20 [00:01<00:01, 7.12it/s]
Total progress: 60%|██████ | 12/20 [00:01<00:01, 7.27it/s]
60%|██████ | 12/20 [00:01<00:01, 7.17it/s]
Total progress: 65%|██████▌ | 13/20 [00:01<00:00, 7.26it/s]
65%|██████▌ | 13/20 [00:01<00:00, 7.20it/s]
Total progress: 70%|███████ | 14/20 [00:01<00:00, 7.27it/s]
70%|███████ | 14/20 [00:01<00:00, 7.15it/s]
Total progress: 75%|███████▌ | 15/20 [00:01<00:00, 7.20it/s]
75%|███████▌ | 15/20 [00:02<00:00, 7.21it/s]
Total progress: 80%|████████ | 16/20 [00:02<00:00, 7.25it/s]
80%|████████ | 16/20 [00:02<00:00, 7.27it/s]
Total progress: 85%|████████▌ | 17/20 [00:02<00:00, 7.30it/s]
85%|████████▌ | 17/20 [00:02<00:00, 7.27it/s]
Total progress: 90%|█████████ | 18/20 [00:02<00:00, 7.26it/s]
90%|█████████ | 18/20 [00:02<00:00, 7.33it/s]
Total progress: 95%|█████████▌| 19/20 [00:02<00:00, 7.33it/s]
95%|█████████▌| 19/20 [00:02<00:00, 7.42it/s]
100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
Total progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
Total progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]
Total progress: 100%|██████████| 20/20 [00:02<00:00, 7.44it/s]