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 mattchu942/chewy-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"mattchu942/chewy-lora:500ce05299b16de20247a165e77a493b6f791cdaacbedcd108aae776df30f02f",
{
input: {
image: "https://replicate.delivery/pbxt/N5anS47yg1gq5Wg8nqR0lEuZRRa66mIuW4oDea4FOAOFvbfm/IMG_4082.jpeg",
model: "dev",
prompt: "Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt. ",
go_fast: false,
lora_scale: 0.85,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.91,
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 mattchu942/chewy-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"mattchu942/chewy-lora:500ce05299b16de20247a165e77a493b6f791cdaacbedcd108aae776df30f02f",
input={
"image": "https://replicate.delivery/pbxt/N5anS47yg1gq5Wg8nqR0lEuZRRa66mIuW4oDea4FOAOFvbfm/IMG_4082.jpeg",
"model": "dev",
"prompt": "Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt. ",
"go_fast": False,
"lora_scale": 0.85,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.91,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
# 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 mattchu942/chewy-lora 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": "mattchu942/chewy-lora:500ce05299b16de20247a165e77a493b6f791cdaacbedcd108aae776df30f02f",
"input": {
"image": "https://replicate.delivery/pbxt/N5anS47yg1gq5Wg8nqR0lEuZRRa66mIuW4oDea4FOAOFvbfm/IMG_4082.jpeg",
"model": "dev",
"prompt": "Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt. ",
"go_fast": false,
"lora_scale": 0.85,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.91,
"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-05-28T20:48:09.587751Z",
"created_at": "2025-05-28T20:47:55.645000Z",
"data_removed": false,
"error": null,
"id": "sgqfg36jznrmc0cq32k8jgvj0c",
"input": {
"image": "https://replicate.delivery/pbxt/N5anS47yg1gq5Wg8nqR0lEuZRRa66mIuW4oDea4FOAOFvbfm/IMG_4082.jpeg",
"model": "dev",
"prompt": "Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt. ",
"go_fast": false,
"lora_scale": 0.85,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.91,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "free=27977748533248\nDownloading weights\n2025-05-28T20:47:55Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpc8hzeoz8/weights url=https://replicate.delivery/xezq/6JwenAwJCkRRLCgTxPsKE4wJX9E2jhjR4Ii1WfUQofgeWmelC/trained_model.tar\n2025-05-28T20:47:55Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local\n2025-05-28T20:47:58Z | INFO | [ Complete ] dest=/tmp/tmpc8hzeoz8/weights size=\"172 MB\" total_elapsed=2.278s url=https://replicate.delivery/xezq/6JwenAwJCkRRLCgTxPsKE4wJX9E2jhjR4Ii1WfUQofgeWmelC/trained_model.tar\nDownloaded weights in 2.30s\nLoaded LoRAs in 2.89s\nUsing seed: 39022\nPrompt: Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt.\nInput image size: 1179x1191\n[!] Resizing input image from 1179x1191 to 1184x1200\n[!] img2img mode\n 0%| | 0/26 [00:00<?, ?it/s]\n 4%|▍ | 1/26 [00:00<00:07, 3.34it/s]\n 8%|▊ | 2/26 [00:00<00:07, 3.02it/s]\n 12%|█▏ | 3/26 [00:01<00:07, 2.92it/s]\n 15%|█▌ | 4/26 [00:01<00:07, 2.87it/s]\n 19%|█▉ | 5/26 [00:01<00:07, 2.85it/s]\n 23%|██▎ | 6/26 [00:02<00:07, 2.84it/s]\n 27%|██▋ | 7/26 [00:02<00:06, 2.83it/s]\n 31%|███ | 8/26 [00:02<00:06, 2.82it/s]\n 35%|███▍ | 9/26 [00:03<00:06, 2.82it/s]\n 38%|███▊ | 10/26 [00:03<00:05, 2.81it/s]\n 42%|████▏ | 11/26 [00:03<00:05, 2.81it/s]\n 46%|████▌ | 12/26 [00:04<00:04, 2.81it/s]\n 50%|█████ | 13/26 [00:04<00:04, 2.81it/s]\n 54%|█████▍ | 14/26 [00:04<00:04, 2.81it/s]\n 58%|█████▊ | 15/26 [00:05<00:03, 2.80it/s]\n 62%|██████▏ | 16/26 [00:05<00:03, 2.80it/s]\n 65%|██████▌ | 17/26 [00:05<00:03, 2.80it/s]\n 69%|██████▉ | 18/26 [00:06<00:02, 2.80it/s]\n 73%|███████▎ | 19/26 [00:06<00:02, 2.80it/s]\n 77%|███████▋ | 20/26 [00:07<00:02, 2.80it/s]\n 81%|████████ | 21/26 [00:07<00:01, 2.81it/s]\n 85%|████████▍ | 22/26 [00:07<00:01, 2.81it/s]\n 88%|████████▊ | 23/26 [00:08<00:01, 2.80it/s]\n 92%|█████████▏| 24/26 [00:08<00:00, 2.80it/s]\n 96%|█████████▌| 25/26 [00:08<00:00, 2.80it/s]\n100%|██████████| 26/26 [00:09<00:00, 2.81it/s]\n100%|██████████| 26/26 [00:09<00:00, 2.82it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 13.935513194,
"total_time": 13.942751
},
"output": [
"https://replicate.delivery/xezq/Y27mhf32krT0XyOWhdOXWty8laBd6bPKdne7xbNuESKJiSxUA/out-0.webp"
],
"started_at": "2025-05-28T20:47:55.652238Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-tduasb2icckjv4vuugapy6zwcq66r7463ixulaze6y4oh4hocfuq",
"get": "https://api.replicate.com/v1/predictions/sgqfg36jznrmc0cq32k8jgvj0c",
"cancel": "https://api.replicate.com/v1/predictions/sgqfg36jznrmc0cq32k8jgvj0c/cancel"
},
"version": "500ce05299b16de20247a165e77a493b6f791cdaacbedcd108aae776df30f02f"
}
free=27977748533248
Downloading weights
2025-05-28T20:47:55Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpc8hzeoz8/weights url=https://replicate.delivery/xezq/6JwenAwJCkRRLCgTxPsKE4wJX9E2jhjR4Ii1WfUQofgeWmelC/trained_model.tar
2025-05-28T20:47:55Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-05-28T20:47:58Z | INFO | [ Complete ] dest=/tmp/tmpc8hzeoz8/weights size="172 MB" total_elapsed=2.278s url=https://replicate.delivery/xezq/6JwenAwJCkRRLCgTxPsKE4wJX9E2jhjR4Ii1WfUQofgeWmelC/trained_model.tar
Downloaded weights in 2.30s
Loaded LoRAs in 2.89s
Using seed: 39022
Prompt: Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt.
Input image size: 1179x1191
[!] Resizing input image from 1179x1191 to 1184x1200
[!] img2img mode
0%| | 0/26 [00:00<?, ?it/s]
4%|▍ | 1/26 [00:00<00:07, 3.34it/s]
8%|▊ | 2/26 [00:00<00:07, 3.02it/s]
12%|█▏ | 3/26 [00:01<00:07, 2.92it/s]
15%|█▌ | 4/26 [00:01<00:07, 2.87it/s]
19%|█▉ | 5/26 [00:01<00:07, 2.85it/s]
23%|██▎ | 6/26 [00:02<00:07, 2.84it/s]
27%|██▋ | 7/26 [00:02<00:06, 2.83it/s]
31%|███ | 8/26 [00:02<00:06, 2.82it/s]
35%|███▍ | 9/26 [00:03<00:06, 2.82it/s]
38%|███▊ | 10/26 [00:03<00:05, 2.81it/s]
42%|████▏ | 11/26 [00:03<00:05, 2.81it/s]
46%|████▌ | 12/26 [00:04<00:04, 2.81it/s]
50%|█████ | 13/26 [00:04<00:04, 2.81it/s]
54%|█████▍ | 14/26 [00:04<00:04, 2.81it/s]
58%|█████▊ | 15/26 [00:05<00:03, 2.80it/s]
62%|██████▏ | 16/26 [00:05<00:03, 2.80it/s]
65%|██████▌ | 17/26 [00:05<00:03, 2.80it/s]
69%|██████▉ | 18/26 [00:06<00:02, 2.80it/s]
73%|███████▎ | 19/26 [00:06<00:02, 2.80it/s]
77%|███████▋ | 20/26 [00:07<00:02, 2.80it/s]
81%|████████ | 21/26 [00:07<00:01, 2.81it/s]
85%|████████▍ | 22/26 [00:07<00:01, 2.81it/s]
88%|████████▊ | 23/26 [00:08<00:01, 2.80it/s]
92%|█████████▏| 24/26 [00:08<00:00, 2.80it/s]
96%|█████████▌| 25/26 [00:08<00:00, 2.80it/s]
100%|██████████| 26/26 [00:09<00:00, 2.81it/s]
100%|██████████| 26/26 [00:09<00:00, 2.82it/s]
Total safe images: 1 out of 1
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 booted and ready for API calls.
This model runs on H100 hardware which costs $0.001525 per second
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=27977748533248
Downloading weights
2025-05-28T20:47:55Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpc8hzeoz8/weights url=https://replicate.delivery/xezq/6JwenAwJCkRRLCgTxPsKE4wJX9E2jhjR4Ii1WfUQofgeWmelC/trained_model.tar
2025-05-28T20:47:55Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-05-28T20:47:58Z | INFO | [ Complete ] dest=/tmp/tmpc8hzeoz8/weights size="172 MB" total_elapsed=2.278s url=https://replicate.delivery/xezq/6JwenAwJCkRRLCgTxPsKE4wJX9E2jhjR4Ii1WfUQofgeWmelC/trained_model.tar
Downloaded weights in 2.30s
Loaded LoRAs in 2.89s
Using seed: 39022
Prompt: Tok as a massive brute sitting behind a work desk in an office. His arm are muscular and beefy. Bulging out of hit short sleeve polo. His chest and belly spilling over the desk and he is way too big for the desk. His belly and shirt digging into the desk that is in front of him. Make his arms muscular and huge and beefy and strong and bulging out and stretching the fabric of his sleeves on his shirt.
Input image size: 1179x1191
[!] Resizing input image from 1179x1191 to 1184x1200
[!] img2img mode
0%| | 0/26 [00:00<?, ?it/s]
4%|▍ | 1/26 [00:00<00:07, 3.34it/s]
8%|▊ | 2/26 [00:00<00:07, 3.02it/s]
12%|█▏ | 3/26 [00:01<00:07, 2.92it/s]
15%|█▌ | 4/26 [00:01<00:07, 2.87it/s]
19%|█▉ | 5/26 [00:01<00:07, 2.85it/s]
23%|██▎ | 6/26 [00:02<00:07, 2.84it/s]
27%|██▋ | 7/26 [00:02<00:06, 2.83it/s]
31%|███ | 8/26 [00:02<00:06, 2.82it/s]
35%|███▍ | 9/26 [00:03<00:06, 2.82it/s]
38%|███▊ | 10/26 [00:03<00:05, 2.81it/s]
42%|████▏ | 11/26 [00:03<00:05, 2.81it/s]
46%|████▌ | 12/26 [00:04<00:04, 2.81it/s]
50%|█████ | 13/26 [00:04<00:04, 2.81it/s]
54%|█████▍ | 14/26 [00:04<00:04, 2.81it/s]
58%|█████▊ | 15/26 [00:05<00:03, 2.80it/s]
62%|██████▏ | 16/26 [00:05<00:03, 2.80it/s]
65%|██████▌ | 17/26 [00:05<00:03, 2.80it/s]
69%|██████▉ | 18/26 [00:06<00:02, 2.80it/s]
73%|███████▎ | 19/26 [00:06<00:02, 2.80it/s]
77%|███████▋ | 20/26 [00:07<00:02, 2.80it/s]
81%|████████ | 21/26 [00:07<00:01, 2.81it/s]
85%|████████▍ | 22/26 [00:07<00:01, 2.81it/s]
88%|████████▊ | 23/26 [00:08<00:01, 2.80it/s]
92%|█████████▏| 24/26 [00:08<00:00, 2.80it/s]
96%|█████████▌| 25/26 [00:08<00:00, 2.80it/s]
100%|██████████| 26/26 [00:09<00:00, 2.81it/s]
100%|██████████| 26/26 [00:09<00:00, 2.82it/s]
Total safe images: 1 out of 1