Room Design

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

Endpoint/generate_designs_for_room
Method
POST
Response Time10-20 seconds

When 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

ParameterTypeRequired
input_image_url

URL of your room photo to transform

string
Required
room_type

Type of room

string
Required
style_image_url

URL of the reference/inspiration image

string
Required
num_images

Number of variations (1-4)

integer
Optional
user_prompt

Additional guidance for the style transfer

string
Optional

See full parameter documentation →

Response Fields

FieldType
info.images

Array of generated design images

array
info.images[].url

URL of the styled room image

string

Pro Tips

Get the best results from this API

1

Use clear, well-lit reference images

2

Reference images with similar room types work best

3

Add a text prompt to emphasize specific elements you want transferred

4

High-quality reference images produce better results

Frequently Asked Questions

Related Capabilities

Other APIs that work well with Style Transfer

Ready to Get Started?

Integrate Style Transfer into your application today.