typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/NHu89dBMOF7yBLjCRzFuHF7RPWZL1ODOB3twQhUKuP0EVf03/Screenshot%202025-06-30%20at%2016.38.33.png",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a slipper UGH",
"prompt_strength": 0.91,
"seed": 20388
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_9yF**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run diazdiaz/uggator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"diazdiaz/uggator:68ffea686d4a8ca788feaee7bd46b6709948177e30516e0f5151dd20f2360800",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: false,
guidance_scale: 3,
image: "https://replicate.delivery/pbxt/NHu89dBMOF7yBLjCRzFuHF7RPWZL1ODOB3twQhUKuP0EVf03/Screenshot%202025-06-30%20at%2016.38.33.png",
lora_scale: 1,
megapixels: "1",
model: "dev",
num_inference_steps: 28,
num_outputs: 1,
output_format: "webp",
output_quality: 80,
prompt: "a slipper UGH",
prompt_strength: 0.91,
seed: 20388
}
}
);
// 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=r8_9yF**********************************
This is your API token. Keep it to yourself.
import replicate
Run diazdiaz/uggator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"diazdiaz/uggator:68ffea686d4a8ca788feaee7bd46b6709948177e30516e0f5151dd20f2360800",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": False,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/NHu89dBMOF7yBLjCRzFuHF7RPWZL1ODOB3twQhUKuP0EVf03/Screenshot%202025-06-30%20at%2016.38.33.png",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a slipper UGH",
"prompt_strength": 0.91,
"seed": 20388
}
)
# 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=r8_9yF**********************************
This is your API token. Keep it to yourself.
Run diazdiaz/uggator 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": "diazdiaz/uggator:68ffea686d4a8ca788feaee7bd46b6709948177e30516e0f5151dd20f2360800",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/NHu89dBMOF7yBLjCRzFuHF7RPWZL1ODOB3twQhUKuP0EVf03/Screenshot%202025-06-30%20at%2016.38.33.png",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a slipper UGH",
"prompt_strength": 0.91,
"seed": 20388
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "exhw3wms39rma0cqsd0t6k24xw",
"model": "diazdiaz/uggator",
"version": "68ffea686d4a8ca788feaee7bd46b6709948177e30516e0f5151dd20f2360800",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3,
"image": "https://replicate.delivery/pbxt/NHu89dBMOF7yBLjCRzFuHF7RPWZL1ODOB3twQhUKuP0EVf03/Screenshot%202025-06-30%20at%2016.38.33.png",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 80,
"prompt": "a slipper UGH",
"prompt_strength": 0.91,
"seed": 20388
},
"logs": "Loaded LoRAs in 0.53s\nUsing seed: 20388\nPrompt: a slipper UGH\nInput image size: 1930x1090\n[!] Resizing input image from 1930x1090 to 1440x816\n[!] img2img mode\n 0%| | 0/26 [00:00<?, ?it/s]\n 4%|▍ | 1/26 [00:00<00:05, 4.28it/s]\n 8%|▊ | 2/26 [00:00<00:06, 3.72it/s]\n 12%|█▏ | 3/26 [00:00<00:06, 3.56it/s]\n 15%|█▌ | 4/26 [00:01<00:06, 3.48it/s]\n 19%|█▉ | 5/26 [00:01<00:06, 3.45it/s]\n 23%|██▎ | 6/26 [00:01<00:05, 3.44it/s]\n 27%|██▋ | 7/26 [00:02<00:05, 3.42it/s]\n 31%|███ | 8/26 [00:02<00:05, 3.40it/s]\n 35%|███▍ | 9/26 [00:02<00:05, 3.40it/s]\n 38%|███▊ | 10/26 [00:02<00:04, 3.40it/s]\n 42%|████▏ | 11/26 [00:03<00:04, 3.39it/s]\n 46%|████▌ | 12/26 [00:03<00:04, 3.39it/s]\n 50%|█████ | 13/26 [00:03<00:03, 3.39it/s]\n 54%|█████▍ | 14/26 [00:04<00:03, 3.38it/s]\n 58%|█████▊ | 15/26 [00:04<00:03, 3.39it/s]\n 62%|██████▏ | 16/26 [00:04<00:02, 3.40it/s]\n 65%|██████▌ | 17/26 [00:04<00:02, 3.40it/s]\n 69%|██████▉ | 18/26 [00:05<00:02, 3.40it/s]\n 73%|███████▎ | 19/26 [00:05<00:02, 3.40it/s]\n 77%|███████▋ | 20/26 [00:05<00:01, 3.39it/s]\n 81%|████████ | 21/26 [00:06<00:01, 3.38it/s]\n 85%|████████▍ | 22/26 [00:06<00:01, 3.38it/s]\n 88%|████████▊ | 23/26 [00:06<00:00, 3.39it/s]\n 92%|█████████▏| 24/26 [00:07<00:00, 3.39it/s]\n 96%|█████████▌| 25/26 [00:07<00:00, 3.40it/s]\n100%|██████████| 26/26 [00:07<00:00, 3.41it/s]\n100%|██████████| 26/26 [00:07<00:00, 3.42it/s]\nTotal safe images: 1 out of 1",
"output": [
"https://replicate.delivery/xezq/L3Ojzb7hH4JwN96Y6g1sEyPf5VlfQHKLNOJqpdtf7TBZMc5pA/out-0.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-02T13:09:23.354Z",
"started_at": "2025-07-02T13:09:23.546494Z",
"completed_at": "2025-07-02T13:09:32.248479Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/exhw3wms39rma0cqsd0t6k24xw/cancel",
"get": "https://api.replicate.com/v1/predictions/exhw3wms39rma0cqsd0t6k24xw",
"stream": "https://stream.replicate.com/v1/files/bcwr-siypgwq3istxm6qhbdzpw3k37zji2mytoscorluibneogpa6vy2q",
"web": "https://replicate.com/p/exhw3wms39rma0cqsd0t6k24xw"
},
"metrics": {
"predict_time": 8.701985435,
"total_time": 8.894479
}
}
