Style Transfer
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.
API Details
/generate_designs_for_roomWhen to Use This API
- You have an inspiration image you want to recreate
- Client shows you a photo and says "I want this"
- Matching a specific aesthetic from Pinterest or Instagram
- Replicating a design from a magazine or catalog
Key Features
- Analyze any reference image for style elements
- Transfer color palettes and furniture styles
- Match the mood and aesthetic of inspirations
- Works with magazine photos, Pinterest pins, etc.
- Combine with text prompts for refinement
Use Cases
How businesses use this capability
Pinterest-to-Reality
Turn saved pins into actual designs for your space.
Design Matching
Match room styles across different areas of a home.
Catalog Integration
Let customers apply catalog room styles to their photos.
Mood Board Creation
Generate room designs from mood board images.
Code Examples
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"])Request Parameters
| 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 |
Response Fields
| Field | Type |
|---|---|
info.imagesArray of generated design images | array |
info.images[].urlURL of the styled room image | string |
Pro Tips
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
Related Capabilities
Other APIs that work well with Style Transfer
Ready to Get Started?
Integrate Style Transfer into your application today.