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.
subscriptions10x /sdxl-inpainting:733bba9b
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run subscriptions10x/sdxl-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"subscriptions10x/sdxl-inpainting:733bba9bba10b10225a23aae8d62a6d9752f3e89471c2650ec61e50c8c69fb23",
{
input: {
image: "https://replicate.delivery/pbxt/JTvN42RZrXZYc1ud4J1cCD1VQMJnENdRz4AGZ3XjiK4Lxpsg/9a0a1b126a676fb498f81da99c8dffe894ebfe28.png",
prompt: "modern bed with beige sheet and pillows",
n_prompt: "",
mask_image: "https://replicate.delivery/pbxt/JTvN4KptGqnSDtv3vaeiuMrNoODjUbgSbymY2wK7RFvcXxM1/465174ce5fa1120c42d2885789ebba0a2386d14d.png"
}
}
);
// 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 subscriptions10x/sdxl-inpainting using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"subscriptions10x/sdxl-inpainting:733bba9bba10b10225a23aae8d62a6d9752f3e89471c2650ec61e50c8c69fb23",
input={
"image": "https://replicate.delivery/pbxt/JTvN42RZrXZYc1ud4J1cCD1VQMJnENdRz4AGZ3XjiK4Lxpsg/9a0a1b126a676fb498f81da99c8dffe894ebfe28.png",
"prompt": "modern bed with beige sheet and pillows",
"n_prompt": "",
"mask_image": "https://replicate.delivery/pbxt/JTvN4KptGqnSDtv3vaeiuMrNoODjUbgSbymY2wK7RFvcXxM1/465174ce5fa1120c42d2885789ebba0a2386d14d.png"
}
)
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 subscriptions10x/sdxl-inpainting 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": "subscriptions10x/sdxl-inpainting:733bba9bba10b10225a23aae8d62a6d9752f3e89471c2650ec61e50c8c69fb23",
"input": {
"image": "https://replicate.delivery/pbxt/JTvN42RZrXZYc1ud4J1cCD1VQMJnENdRz4AGZ3XjiK4Lxpsg/9a0a1b126a676fb498f81da99c8dffe894ebfe28.png",
"prompt": "modern bed with beige sheet and pillows",
"n_prompt": "",
"mask_image": "https://replicate.delivery/pbxt/JTvN4KptGqnSDtv3vaeiuMrNoODjUbgSbymY2wK7RFvcXxM1/465174ce5fa1120c42d2885789ebba0a2386d14d.png"
}
}' \
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-09-06T18:08:45.827045Z",
"created_at": "2023-09-06T17:29:52.471679Z",
"data_removed": false,
"error": null,
"id": "d4yrjjdbr5pdnkrl4q2vu7mev4",
"input": {
"image": "https://replicate.delivery/pbxt/JTvN42RZrXZYc1ud4J1cCD1VQMJnENdRz4AGZ3XjiK4Lxpsg/9a0a1b126a676fb498f81da99c8dffe894ebfe28.png",
"prompt": "modern bed with beige sheet and pillows",
"mask_image": "https://replicate.delivery/pbxt/JTvN4KptGqnSDtv3vaeiuMrNoODjUbgSbymY2wK7RFvcXxM1/465174ce5fa1120c42d2885789ebba0a2386d14d.png"
},
"logs": "seed: 677567\noriginal_size (736, 512)\n 0%| | 0/27 [00:00<?, ?it/s]\n 4%|▎ | 1/27 [00:00<00:24, 1.04it/s]\n 7%|▋ | 2/27 [00:01<00:23, 1.04it/s]\n 11%|█ | 3/27 [00:03<00:25, 1.06s/it]\n 15%|█▍ | 4/27 [00:04<00:23, 1.02s/it]\n 19%|█▊ | 5/27 [00:05<00:21, 1.00it/s]\n 22%|██▏ | 6/27 [00:05<00:20, 1.02it/s]\n 26%|██▌ | 7/27 [00:06<00:19, 1.02it/s]\n 30%|██▉ | 8/27 [00:07<00:18, 1.03it/s]\n 33%|███▎ | 9/27 [00:08<00:17, 1.03it/s]\n 37%|███▋ | 10/27 [00:09<00:16, 1.03it/s]\n 41%|████ | 11/27 [00:10<00:15, 1.04it/s]\n 44%|████▍ | 12/27 [00:11<00:14, 1.04it/s]\n 48%|████▊ | 13/27 [00:12<00:13, 1.04it/s]\n 52%|█████▏ | 14/27 [00:13<00:12, 1.04it/s]\n 56%|█████▌ | 15/27 [00:14<00:11, 1.04it/s]\n 59%|█████▉ | 16/27 [00:15<00:10, 1.04it/s]\n 63%|██████▎ | 17/27 [00:16<00:09, 1.04it/s]\n 67%|██████▋ | 18/27 [00:17<00:08, 1.04it/s]\n 70%|███████ | 19/27 [00:18<00:07, 1.04it/s]\n 74%|███████▍ | 20/27 [00:19<00:06, 1.04it/s]\n 78%|███████▊ | 21/27 [00:20<00:05, 1.04it/s]\n 81%|████████▏ | 22/27 [00:21<00:04, 1.04it/s]\n 85%|████████▌ | 23/27 [00:22<00:03, 1.04it/s]\n 89%|████████▉ | 24/27 [00:23<00:02, 1.04it/s]\n 93%|█████████▎| 25/27 [00:24<00:01, 1.04it/s]\n 96%|█████████▋| 26/27 [00:25<00:00, 1.04it/s]\n100%|██████████| 27/27 [00:26<00:00, 1.04it/s]\n100%|██████████| 27/27 [00:26<00:00, 1.03it/s]",
"metrics": {
"predict_time": 32.055563,
"total_time": 2333.355366
},
"output": [
"https://replicate.delivery/pbxt/ssbICIQulZ6JGZmo3nNnRojHo1XyojSiLa9fkYfx3YasInhRA/output_0.png"
],
"started_at": "2023-09-06T18:08:13.771482Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/d4yrjjdbr5pdnkrl4q2vu7mev4",
"cancel": "https://api.replicate.com/v1/predictions/d4yrjjdbr5pdnkrl4q2vu7mev4/cancel"
},
"version": "733bba9bba10b10225a23aae8d62a6d9752f3e89471c2650ec61e50c8c69fb23"
}
seed: 677567
original_size (736, 512)
0%| | 0/27 [00:00<?, ?it/s]
4%|▎ | 1/27 [00:00<00:24, 1.04it/s]
7%|▋ | 2/27 [00:01<00:23, 1.04it/s]
11%|█ | 3/27 [00:03<00:25, 1.06s/it]
15%|█▍ | 4/27 [00:04<00:23, 1.02s/it]
19%|█▊ | 5/27 [00:05<00:21, 1.00it/s]
22%|██▏ | 6/27 [00:05<00:20, 1.02it/s]
26%|██▌ | 7/27 [00:06<00:19, 1.02it/s]
30%|██▉ | 8/27 [00:07<00:18, 1.03it/s]
33%|███▎ | 9/27 [00:08<00:17, 1.03it/s]
37%|███▋ | 10/27 [00:09<00:16, 1.03it/s]
41%|████ | 11/27 [00:10<00:15, 1.04it/s]
44%|████▍ | 12/27 [00:11<00:14, 1.04it/s]
48%|████▊ | 13/27 [00:12<00:13, 1.04it/s]
52%|█████▏ | 14/27 [00:13<00:12, 1.04it/s]
56%|█████▌ | 15/27 [00:14<00:11, 1.04it/s]
59%|█████▉ | 16/27 [00:15<00:10, 1.04it/s]
63%|██████▎ | 17/27 [00:16<00:09, 1.04it/s]
67%|██████▋ | 18/27 [00:17<00:08, 1.04it/s]
70%|███████ | 19/27 [00:18<00:07, 1.04it/s]
74%|███████▍ | 20/27 [00:19<00:06, 1.04it/s]
78%|███████▊ | 21/27 [00:20<00:05, 1.04it/s]
81%|████████▏ | 22/27 [00:21<00:04, 1.04it/s]
85%|████████▌ | 23/27 [00:22<00:03, 1.04it/s]
89%|████████▉ | 24/27 [00:23<00:02, 1.04it/s]
93%|█████████▎| 25/27 [00:24<00:01, 1.04it/s]
96%|█████████▋| 26/27 [00:25<00:00, 1.04it/s]
100%|██████████| 27/27 [00:26<00:00, 1.04it/s]
100%|██████████| 27/27 [00:26<00:00, 1.03it/s]