typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3.24,
"height": 1024,
"image": "https://replicate.delivery/pbxt/NtO13XZFtbQWQmEYlDfCl2x5P8oJylCXDoi88SlDBHx443c9/replicate-prediction-rqnshtcwy1rme0csxbtrfftnf0.webp",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "A pirate and crew ship driving forward though a rough storm. Bright vibrant colors in THE_COMIC_STYLE.",
"prompt_strength": 0.54,
"width": 1024
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_VQ6**********************************
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 justingirard/draft-ui-designer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"justingirard/draft-ui-designer:f1114b15c528a5d9e40b905a5138f6abdeecb91b57e33ddbb3a71ca10ac92b41",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
go_fast: false,
guidance_scale: 3.24,
height: 1024,
image: "https://replicate.delivery/pbxt/NtO13XZFtbQWQmEYlDfCl2x5P8oJylCXDoi88SlDBHx443c9/replicate-prediction-rqnshtcwy1rme0csxbtrfftnf0.webp",
lora_scale: 1,
megapixels: "1",
model: "dev",
num_inference_steps: 28,
num_outputs: 1,
output_format: "webp",
output_quality: 90,
prompt: "A pirate and crew ship driving forward though a rough storm. Bright vibrant colors in THE_COMIC_STYLE.",
prompt_strength: 0.54,
width: 1024
}
}
);
// 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_VQ6**********************************
This is your API token. Keep it to yourself.
import replicate
Run justingirard/draft-ui-designer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"justingirard/draft-ui-designer:f1114b15c528a5d9e40b905a5138f6abdeecb91b57e33ddbb3a71ca10ac92b41",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": False,
"guidance_scale": 3.24,
"height": 1024,
"image": "https://replicate.delivery/pbxt/NtO13XZFtbQWQmEYlDfCl2x5P8oJylCXDoi88SlDBHx443c9/replicate-prediction-rqnshtcwy1rme0csxbtrfftnf0.webp",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "A pirate and crew ship driving forward though a rough storm. Bright vibrant colors in THE_COMIC_STYLE.",
"prompt_strength": 0.54,
"width": 1024
}
)
# 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_VQ6**********************************
This is your API token. Keep it to yourself.
Run justingirard/draft-ui-designer 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": "justingirard/draft-ui-designer:f1114b15c528a5d9e40b905a5138f6abdeecb91b57e33ddbb3a71ca10ac92b41",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3.24,
"height": 1024,
"image": "https://replicate.delivery/pbxt/NtO13XZFtbQWQmEYlDfCl2x5P8oJylCXDoi88SlDBHx443c9/replicate-prediction-rqnshtcwy1rme0csxbtrfftnf0.webp",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "A pirate and crew ship driving forward though a rough storm. Bright vibrant colors in THE_COMIC_STYLE.",
"prompt_strength": 0.54,
"width": 1024
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "8aktfkxwd1rme0csxc4979g5e4",
"model": "justingirard/draft-ui-designer",
"version": "f1114b15c528a5d9e40b905a5138f6abdeecb91b57e33ddbb3a71ca10ac92b41",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"go_fast": false,
"guidance_scale": 3.24,
"height": 1024,
"image": "https://replicate.delivery/pbxt/NtO13XZFtbQWQmEYlDfCl2x5P8oJylCXDoi88SlDBHx443c9/replicate-prediction-rqnshtcwy1rme0csxbtrfftnf0.webp",
"lora_scale": 1,
"megapixels": "1",
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "A pirate and crew ship driving forward though a rough storm. Bright vibrant colors in THE_COMIC_STYLE.",
"prompt_strength": 0.54,
"width": 1024
},
"logs": "free=24631320211456\nDownloading weights\n2025-10-16T03:20:42Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpcuhfe7vj/weights url=https://replicate.delivery/xezq/V318QQMJCfTWLi9ho5Iuy6xx2dBmD1I57CYmOQ2aeNeU6MKqA/flux-lora.tar\n2025-10-16T03:20:42Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local\n2025-10-16T03:20:42Z | INFO | [ Cache URL Rewrite ] enabled=true target_url=http://hermes.services.svc.cluster.local/replicate.delivery/xezq/V318QQMJCfTWLi9ho5Iuy6xx2dBmD1I57CYmOQ2aeNeU6MKqA/flux-lora.tar url=https://replicate.delivery/xezq/V318QQMJCfTWLi9ho5Iuy6xx2dBmD1I57CYmOQ2aeNeU6MKqA/flux-lora.tar\n2025-10-16T03:20:42Z | INFO | [ Redirect ] redirect_url=http://r8-east4-loras-ric1.cwlota.com/d7f215f9fbaf696c6b7416bd86e58319531198637be66833dc48f169fac6fef9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Checksum-Mode=ENABLED&X-Amz-Credential=CWNZUVKLDHXVHEZN%2F20251016%2FUS-EAST-04A%2Fs3%2Faws4_request&X-Amz-Date=20251016T032042Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&x-id=GetObject&X-Amz-Signature=0c9e1406b6376ac5c07be8466b2246bb4b46d79d9386f3bf30c15f4ca3aac35d url=http://hermes.services.svc.cluster.local/replicate.delivery/xezq/V318QQMJCfTWLi9ho5Iuy6xx2dBmD1I57CYmOQ2aeNeU6MKqA/flux-lora.tar\n2025-10-16T03:20:43Z | INFO | [ Complete ] dest=/tmp/tmpcuhfe7vj/weights size=\"172 MB\" total_elapsed=0.442s url=https://replicate.delivery/xezq/V318QQMJCfTWLi9ho5Iuy6xx2dBmD1I57CYmOQ2aeNeU6MKqA/flux-lora.tar\nDownloaded weights in 0.51s\nLoaded LoRAs in 1.01s\nUsing seed: 25388\nPrompt: A pirate and crew ship driving forward though a rough storm. Bright vibrant colors in THE_COMIC_STYLE.\nInput image size: 1024x1024\n[!] Resizing input image from 1024x1024 to 1024x1024\n[!] img2img mode\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:03, 4.75it/s]\n 12%|█▎ | 2/16 [00:00<00:03, 4.16it/s]\n 19%|█▉ | 3/16 [00:00<00:03, 4.00it/s]\n 25%|██▌ | 4/16 [00:00<00:03, 3.93it/s]\n 31%|███▏ | 5/16 [00:01<00:02, 3.90it/s]\n 38%|███▊ | 6/16 [00:01<00:02, 3.88it/s]\n 44%|████▍ | 7/16 [00:01<00:02, 3.86it/s]\n 50%|█████ | 8/16 [00:02<00:02, 3.85it/s]\n 56%|█████▋ | 9/16 [00:02<00:01, 3.85it/s]\n 62%|██████▎ | 10/16 [00:02<00:01, 3.84it/s]\n 69%|██████▉ | 11/16 [00:02<00:01, 3.84it/s]\n 75%|███████▌ | 12/16 [00:03<00:01, 3.84it/s]\n 81%|████████▏ | 13/16 [00:03<00:00, 3.84it/s]\n 88%|████████▊ | 14/16 [00:03<00:00, 3.84it/s]\n 94%|█████████▍| 15/16 [00:03<00:00, 3.84it/s]\n100%|██████████| 16/16 [00:04<00:00, 3.83it/s]\n100%|██████████| 16/16 [00:04<00:00, 3.88it/s]\nTotal safe images: 1 out of 1",
"output": [
"https://replicate.delivery/xezq/pocZTr2J7t52MFYLO7r28RXXRuv8JHJkj959frK5HSUItwvKA/out-0.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-10-16T03:20:42.344Z",
"started_at": "2025-10-16T03:20:42.408774Z",
"completed_at": "2025-10-16T03:20:48.156368Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/8aktfkxwd1rme0csxc4979g5e4/cancel",
"get": "https://api.replicate.com/v1/predictions/8aktfkxwd1rme0csxc4979g5e4",
"stream": "https://stream.replicate.com/v1/files/bcwr-3wz3uep5cljkua7qurc2s6rxfitktagoewudavglg4qamyb2l6ia",
"web": "https://replicate.com/p/8aktfkxwd1rme0csxc4979g5e4"
},
"metrics": {
"predict_time": 5.747593748,
"total_time": 5.812368
}
}
