typefile
{
"room_image": "https://replicate.delivery/pbxt/NgRuRw37YjDlq9Vwzd0nMm99N7wKmwn52P5JVtj4Ae2OczXF/living_room_2.jpg",
"room_type": "living_room",
"style": "coastal_beachy"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1Io**********************************
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 adirik/interior-design-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
room_image: "https://replicate.delivery/pbxt/NgRuRw37YjDlq9Vwzd0nMm99N7wKmwn52P5JVtj4Ae2OczXF/living_room_2.jpg",
room_type: "living_room",
style: "coastal_beachy"
};
const output = await replicate.run("adirik/interior-design-v2", { input });
// 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_1Io**********************************
This is your API token. Keep it to yourself.
import replicate
Run adirik/interior-design-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"adirik/interior-design-v2",
input={
"room_image": "https://replicate.delivery/pbxt/NgRuRw37YjDlq9Vwzd0nMm99N7wKmwn52P5JVtj4Ae2OczXF/living_room_2.jpg",
"room_type": "living_room",
"style": "coastal_beachy"
}
)
# 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_1Io**********************************
This is your API token. Keep it to yourself.
Run adirik/interior-design-v2 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 $'{
"input": {
"room_image": "https://replicate.delivery/pbxt/NgRuRw37YjDlq9Vwzd0nMm99N7wKmwn52P5JVtj4Ae2OczXF/living_room_2.jpg",
"room_type": "living_room",
"style": "coastal_beachy"
}
}' \
https://api.replicate.com/v1/models/adirik/interior-design-v2/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "3xywss8sw9rm80cs5xbarfnq5w",
"model": "adirik/interior-design-v2",
"version": "hidden",
"input": {
"room_image": "https://replicate.delivery/pbxt/NgRuRw37YjDlq9Vwzd0nMm99N7wKmwn52P5JVtj4Ae2OczXF/living_room_2.jpg",
"room_type": "living_room",
"style": "coastal_beachy"
},
"logs": "Generating Coastal Beachy style transformation for living_room...\nUsing prompt: Make this a coastal beachy style furnished living room with a white slipcovered sofa, rattan armchairs, a driftwood coffee table, jute area rug, white floating shelves with seashells, floor lamp with linen shade, throw pillows in blue and white stripes\n/app/.venv/lib/python3.13/site-packages/coglet/scope.py:36: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning.\n warnings.warn(",
"output": "https://replicate.delivery/xezq/mNiPIR4GbHZ8OxpQM29gNFFZjnheYyrHIYG5SdhvH1uPWwpKA/tmpewgbosqh.jpeg",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-09T16:36:35.938Z",
"started_at": "2025-09-09T16:42:58.517974Z",
"completed_at": "2025-09-09T16:43:11.581902Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/3xywss8sw9rm80cs5xbarfnq5w/cancel",
"children": "https://api.replicate.com/v1/predictions/3xywss8sw9rm80cs5xbarfnq5w/children",
"get": "https://api.replicate.com/v1/predictions/3xywss8sw9rm80cs5xbarfnq5w",
"root": "https://api.replicate.com/v1/predictions/3xywss8sw9rm80cs5xbarfnq5w",
"stream": "https://stream.replicate.com/v1/files/bcwr-cnng45wjrj7f3gc5lbvpfp3ugi5ug5vjevp4urhiqi6ctizlssmq",
"web": "https://replicate.com/p/3xywss8sw9rm80cs5xbarfnq5w"
},
"metrics": {
"predict_time": 13.063927567,
"total_time": 395.643902
}
}
