typefile
{
"condition_scale": 0.5,
"image": "https://replicate.delivery/pbxt/Lr31f1u9fSQOXojI42l74xdxQmPccTQkEhHWQOHeuqCyIEGI/demo1.jpg",
"negative_prompt": "low quality, bad quality, sketches, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
"num_inference_steps": 50,
"prompt": "scandinavian",
"seed": 0
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_MTP**********************************
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 remodela-ai/virtual_staging_iii using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"remodela-ai/virtual_staging_iii:fcd867b4a2ee938bea39e4b00cf5df63c9a54c1085be4e5eae61dda8eaa72ae5",
{
input: {
condition_scale: 0.5,
image: "https://replicate.delivery/pbxt/Lr31f1u9fSQOXojI42l74xdxQmPccTQkEhHWQOHeuqCyIEGI/demo1.jpg",
negative_prompt: "low quality, bad quality, sketches, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
num_inference_steps: 50,
prompt: "scandinavian",
seed: 0
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
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_MTP**********************************
This is your API token. Keep it to yourself.
import replicate
Run remodela-ai/virtual_staging_iii using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"remodela-ai/virtual_staging_iii:fcd867b4a2ee938bea39e4b00cf5df63c9a54c1085be4e5eae61dda8eaa72ae5",
input={
"condition_scale": 0.5,
"image": "https://replicate.delivery/pbxt/Lr31f1u9fSQOXojI42l74xdxQmPccTQkEhHWQOHeuqCyIEGI/demo1.jpg",
"negative_prompt": "low quality, bad quality, sketches, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
"num_inference_steps": 50,
"prompt": "scandinavian",
"seed": 0
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.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_MTP**********************************
This is your API token. Keep it to yourself.
Run remodela-ai/virtual_staging_iii 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": "remodela-ai/virtual_staging_iii:fcd867b4a2ee938bea39e4b00cf5df63c9a54c1085be4e5eae61dda8eaa72ae5",
"input": {
"condition_scale": 0.5,
"image": "https://replicate.delivery/pbxt/Lr31f1u9fSQOXojI42l74xdxQmPccTQkEhHWQOHeuqCyIEGI/demo1.jpg",
"negative_prompt": "low quality, bad quality, sketches, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
"num_inference_steps": 50,
"prompt": "scandinavian",
"seed": 0
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "6gq6ss13snrgj0cjr88tpxz3mc",
"model": "remodela-ai/virtual_staging_iii",
"version": "fcd867b4a2ee938bea39e4b00cf5df63c9a54c1085be4e5eae61dda8eaa72ae5",
"input": {
"condition_scale": 0.5,
"image": "https://replicate.delivery/pbxt/Lr31f1u9fSQOXojI42l74xdxQmPccTQkEhHWQOHeuqCyIEGI/demo1.jpg",
"negative_prompt": "low quality, bad quality, sketches, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
"num_inference_steps": 50,
"prompt": "scandinavian",
"seed": 0
},
"logs": "Using seed: 32760\nOriginal width:3000, height:2155\nAspect Ratio: 1.39\nnew_width:1152, new_height:832\n 0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:02<01:50, 2.25s/it]\n 4%|▍ | 2/50 [00:02<00:52, 1.09s/it]\n 6%|▌ | 3/50 [00:02<00:33, 1.39it/s]\n 8%|▊ | 4/50 [00:03<00:25, 1.84it/s]\n 10%|█ | 5/50 [00:03<00:20, 2.23it/s]\n 12%|█▏ | 6/50 [00:03<00:17, 2.55it/s]\n 14%|█▍ | 7/50 [00:03<00:15, 2.82it/s]\n 16%|█▌ | 8/50 [00:04<00:13, 3.03it/s]\n 18%|█▊ | 9/50 [00:04<00:12, 3.18it/s]\n 20%|██ | 10/50 [00:04<00:12, 3.30it/s]\n 22%|██▏ | 11/50 [00:05<00:11, 3.39it/s]\n 24%|██▍ | 12/50 [00:05<00:11, 3.44it/s]\n 26%|██▌ | 13/50 [00:05<00:10, 3.49it/s]\n 28%|██▊ | 14/50 [00:05<00:10, 3.52it/s]\n 30%|███ | 15/50 [00:06<00:09, 3.54it/s]\n 32%|███▏ | 16/50 [00:06<00:09, 3.55it/s]\n 34%|███▍ | 17/50 [00:06<00:09, 3.56it/s]\n 36%|███▌ | 18/50 [00:06<00:08, 3.57it/s]\n 38%|███▊ | 19/50 [00:07<00:08, 3.58it/s]\n 40%|████ | 20/50 [00:07<00:08, 3.58it/s]\n 42%|████▏ | 21/50 [00:07<00:08, 3.58it/s]\n 44%|████▍ | 22/50 [00:08<00:07, 3.58it/s]\n 46%|████▌ | 23/50 [00:08<00:07, 3.58it/s]\n 48%|████▊ | 24/50 [00:08<00:07, 3.57it/s]\n 50%|█████ | 25/50 [00:08<00:06, 3.58it/s]\n 52%|█████▏ | 26/50 [00:09<00:06, 3.57it/s]\n 54%|█████▍ | 27/50 [00:09<00:06, 3.57it/s]\n 56%|█████▌ | 28/50 [00:09<00:06, 3.57it/s]\n 58%|█████▊ | 29/50 [00:10<00:05, 3.57it/s]\n 60%|██████ | 30/50 [00:10<00:05, 3.57it/s]\n 62%|██████▏ | 31/50 [00:10<00:05, 3.57it/s]\n 64%|██████▍ | 32/50 [00:10<00:05, 3.57it/s]\n 66%|██████▌ | 33/50 [00:11<00:04, 3.57it/s]\n 68%|██████▊ | 34/50 [00:11<00:04, 3.57it/s]\n 70%|███████ | 35/50 [00:11<00:04, 3.57it/s]\n 72%|███████▏ | 36/50 [00:12<00:03, 3.57it/s]\n 74%|███████▍ | 37/50 [00:12<00:03, 3.57it/s]\n 76%|███████▌ | 38/50 [00:12<00:03, 3.57it/s]\n 78%|███████▊ | 39/50 [00:12<00:03, 3.57it/s]\n 80%|████████ | 40/50 [00:13<00:02, 3.57it/s]\n 82%|████████▏ | 41/50 [00:13<00:02, 3.57it/s]\n 84%|████████▍ | 42/50 [00:13<00:02, 3.57it/s]\n 86%|████████▌ | 43/50 [00:13<00:01, 3.57it/s]\n 88%|████████▊ | 44/50 [00:14<00:01, 3.57it/s]\n 90%|█████████ | 45/50 [00:14<00:01, 3.57it/s]\n 92%|█████████▏| 46/50 [00:14<00:01, 3.57it/s]\n 94%|█████████▍| 47/50 [00:15<00:00, 3.57it/s]\n 96%|█████████▌| 48/50 [00:15<00:00, 3.57it/s]\n 98%|█████████▊| 49/50 [00:15<00:00, 3.57it/s]\n100%|██████████| 50/50 [00:15<00:00, 3.57it/s]\n100%|██████████| 50/50 [00:15<00:00, 3.14it/s]",
"output": "https://replicate.delivery/pbxt/RxleKE1VjDRrAaj6sfWnsItw8USbKImZAY3hzuf43FgqNbUnA/output.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-10-25T05:05:56.173Z",
"started_at": "2024-10-25T05:07:46.463014Z",
"completed_at": "2024-10-25T05:08:06.006462Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/6gq6ss13snrgj0cjr88tpxz3mc/cancel",
"get": "https://api.replicate.com/v1/predictions/6gq6ss13snrgj0cjr88tpxz3mc",
"web": "https://replicate.com/p/6gq6ss13snrgj0cjr88tpxz3mc"
},
"metrics": {
"predict_time": 19.543447828,
"total_time": 129.833462
}
}
