Apply the style from any reference image to your room
Have a Pinterest image or magazine photo you love? Upload it as a reference and apply that exact style to your room. The AI analyzes the design elements, color palette, furniture style, and overall aesthetic from your reference and recreates it in your space.
How businesses use this capability
Turn saved pins into actual designs for your space.
Match room styles across different areas of a home.
Let customers apply catalog room styles to their photos.
Generate room designs from mood board images.
Ready-to-use code snippets
import requests
response = requests.post(
"https://api.decor8.ai/generate_designs_for_room",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input_image_url": "https://example.com/my-room.jpg",
"room_type": "livingroom",
"style_image_url": "https://example.com/pinterest-inspiration.jpg",
"num_images": 2
}
)
result = response.json()
for image in result["info"]["images"]:
print(image["url"])| Parameter | Type | Required |
|---|---|---|
input_image_urlURL of your room photo to transform | string | Required |
room_typeType of room | string | Required |
style_image_urlURL of the reference/inspiration image | string | Required |
num_imagesNumber of variations (1-4) | integer | Optional |
user_promptAdditional guidance for the style transfer | string | Optional |
| Field | Type |
|---|---|
info.imagesArray of generated design images | array |
info.images[].urlURL of the styled room image | string |
Get the best results from this API
Use clear, well-lit reference images
Reference images with similar room types work best
Add a text prompt to emphasize specific elements you want transferred
High-quality reference images produce better results
Other APIs that work well with Style Transfer
Integrate Style Transfer into your application today.