typefile
{
"room_image": "https://replicate.delivery/pbxt/NYwOQPT1M5OHDoZP7Usss8K4FdMKyVp2ozzn2wiZEWaN62yP/1101028.jpg",
"seed": 0,
"style": "rustic_bohemian"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_A0h**********************************
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 pipeline-examples/interior-designer 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/NYwOQPT1M5OHDoZP7Usss8K4FdMKyVp2ozzn2wiZEWaN62yP/1101028.jpg",
seed: 0,
style: "rustic_bohemian"
};
const output = await replicate.run("pipeline-examples/interior-designer", { 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_A0h**********************************
This is your API token. Keep it to yourself.
import replicate
Run pipeline-examples/interior-designer using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pipeline-examples/interior-designer",
input={
"room_image": "https://replicate.delivery/pbxt/NYwOQPT1M5OHDoZP7Usss8K4FdMKyVp2ozzn2wiZEWaN62yP/1101028.jpg",
"seed": 0,
"style": "rustic_bohemian"
}
)
# 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_A0h**********************************
This is your API token. Keep it to yourself.
Run pipeline-examples/interior-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 $'{
"input": {
"room_image": "https://replicate.delivery/pbxt/NYwOQPT1M5OHDoZP7Usss8K4FdMKyVp2ozzn2wiZEWaN62yP/1101028.jpg",
"seed": 0,
"style": "rustic_bohemian"
}
}' \
https://api.replicate.com/v1/models/pipeline-examples/interior-designer/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "yzxcn1raexrmc0crr9krc908k8",
"model": "pipeline-examples/interior-designer",
"version": "hidden",
"input": {
"room_image": "https://replicate.delivery/pbxt/NYwOQPT1M5OHDoZP7Usss8K4FdMKyVp2ozzn2wiZEWaN62yP/1101028.jpg",
"seed": 0,
"style": "rustic_bohemian"
},
"logs": "Generating Rustic Bohemian style transformation...",
"output": "https://replicate.delivery/xezq/AzrnZYNZSsIDBdYm8JEPoyncJKa737ymtNlJRYfLdBPDNRmKA/tmps9as1vu6.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-19T12:56:29.559Z",
"started_at": "2025-08-19T12:56:30.024529Z",
"completed_at": "2025-08-19T12:56:41.306123Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/yzxcn1raexrmc0crr9krc908k8/cancel",
"children": "https://api.replicate.com/v1/predictions/yzxcn1raexrmc0crr9krc908k8/children",
"get": "https://api.replicate.com/v1/predictions/yzxcn1raexrmc0crr9krc908k8",
"root": "https://api.replicate.com/v1/predictions/yzxcn1raexrmc0crr9krc908k8",
"stream": "https://stream.replicate.com/v1/files/bcwr-krshg7rugi26hc57ludpyse7bhyb4a7cp2phxcullm23osq7wa4a",
"web": "https://replicate.com/p/yzxcn1raexrmc0crr9krc908k8"
},
"metrics": {
"predict_time": 11.281594345,
"total_time": 11.747123
}
}
